diff options
Diffstat (limited to 'examples/canvas')
-rw-r--r-- | examples/canvas/canvas.cpp | 56 | ||||
-rw-r--r-- | examples/canvas/main.cpp | 2 |
2 files changed, 29 insertions, 29 deletions
diff --git a/examples/canvas/canvas.cpp b/examples/canvas/canvas.cpp index 7e78c7ceb..24744693b 100644 --- a/examples/canvas/canvas.cpp +++ b/examples/canvas/canvas.cpp @@ -313,52 +313,52 @@ Main::Main(TQCanvas& c, TQWidget* parent, const char* name, WFlags f) : TQMenuBar* menu = menuBar(); TQPopupMenu* file = new TQPopupMenu( menu ); - file->insertItem("&Fill canvas", this, SLOT(init()), CTRL+Key_F); - file->insertItem("&Erase canvas", this, SLOT(clear()), CTRL+Key_E); - file->insertItem("&New view", this, SLOT(newView()), CTRL+Key_N); + file->insertItem("&Fill canvas", this, TQ_SLOT(init()), CTRL+Key_F); + file->insertItem("&Erase canvas", this, TQ_SLOT(clear()), CTRL+Key_E); + file->insertItem("&New view", this, TQ_SLOT(newView()), CTRL+Key_N); file->insertSeparator(); - file->insertItem("&Print...", this, SLOT(print()), CTRL+Key_P); + file->insertItem("&Print...", this, TQ_SLOT(print()), CTRL+Key_P); file->insertSeparator(); - file->insertItem("E&xit", tqApp, SLOT(quit()), CTRL+Key_Q); + file->insertItem("E&xit", tqApp, TQ_SLOT(quit()), CTRL+Key_Q); menu->insertItem("&File", file); TQPopupMenu* edit = new TQPopupMenu( menu ); - edit->insertItem("Add &Circle", this, SLOT(addCircle()), ALT+Key_C); - edit->insertItem("Add &Hexagon", this, SLOT(addHexagon()), ALT+Key_H); - edit->insertItem("Add &Polygon", this, SLOT(addPolygon()), ALT+Key_P); - edit->insertItem("Add Spl&ine", this, SLOT(addSpline()), ALT+Key_I); - edit->insertItem("Add &Text", this, SLOT(addText()), ALT+Key_T); - edit->insertItem("Add &Line", this, SLOT(addLine()), ALT+Key_L); - edit->insertItem("Add &Rectangle", this, SLOT(addRectangle()), ALT+Key_R); - edit->insertItem("Add &Sprite", this, SLOT(addSprite()), ALT+Key_S); - edit->insertItem("Create &Mesh", this, SLOT(addMesh()), ALT+Key_M ); - edit->insertItem("Add &Alpha-blended image", this, SLOT(addButterfly()), ALT+Key_A); + edit->insertItem("Add &Circle", this, TQ_SLOT(addCircle()), ALT+Key_C); + edit->insertItem("Add &Hexagon", this, TQ_SLOT(addHexagon()), ALT+Key_H); + edit->insertItem("Add &Polygon", this, TQ_SLOT(addPolygon()), ALT+Key_P); + edit->insertItem("Add Spl&ine", this, TQ_SLOT(addSpline()), ALT+Key_I); + edit->insertItem("Add &Text", this, TQ_SLOT(addText()), ALT+Key_T); + edit->insertItem("Add &Line", this, TQ_SLOT(addLine()), ALT+Key_L); + edit->insertItem("Add &Rectangle", this, TQ_SLOT(addRectangle()), ALT+Key_R); + edit->insertItem("Add &Sprite", this, TQ_SLOT(addSprite()), ALT+Key_S); + edit->insertItem("Create &Mesh", this, TQ_SLOT(addMesh()), ALT+Key_M ); + edit->insertItem("Add &Alpha-blended image", this, TQ_SLOT(addButterfly()), ALT+Key_A); menu->insertItem("&Edit", edit); TQPopupMenu* view = new TQPopupMenu( menu ); - view->insertItem("&Enlarge", this, SLOT(enlarge()), SHIFT+CTRL+Key_Plus); - view->insertItem("Shr&ink", this, SLOT(shrink()), SHIFT+CTRL+Key_Minus); + view->insertItem("&Enlarge", this, TQ_SLOT(enlarge()), SHIFT+CTRL+Key_Plus); + view->insertItem("Shr&ink", this, TQ_SLOT(shrink()), SHIFT+CTRL+Key_Minus); view->insertSeparator(); - view->insertItem("&Rotate clockwise", this, SLOT(rotateClockwise()), CTRL+Key_PageDown); - view->insertItem("Rotate &counterclockwise", this, SLOT(rotateCounterClockwise()), CTRL+Key_PageUp); - view->insertItem("&Zoom in", this, SLOT(zoomIn()), CTRL+Key_Plus); - view->insertItem("Zoom &out", this, SLOT(zoomOut()), CTRL+Key_Minus); - view->insertItem("Translate left", this, SLOT(moveL()), CTRL+Key_Left); - view->insertItem("Translate right", this, SLOT(moveR()), CTRL+Key_Right); - view->insertItem("Translate up", this, SLOT(moveU()), CTRL+Key_Up); - view->insertItem("Translate down", this, SLOT(moveD()), CTRL+Key_Down); - view->insertItem("&Mirror", this, SLOT(mirror()), CTRL+Key_Home); + view->insertItem("&Rotate clockwise", this, TQ_SLOT(rotateClockwise()), CTRL+Key_PageDown); + view->insertItem("Rotate &counterclockwise", this, TQ_SLOT(rotateCounterClockwise()), CTRL+Key_PageUp); + view->insertItem("&Zoom in", this, TQ_SLOT(zoomIn()), CTRL+Key_Plus); + view->insertItem("Zoom &out", this, TQ_SLOT(zoomOut()), CTRL+Key_Minus); + view->insertItem("Translate left", this, TQ_SLOT(moveL()), CTRL+Key_Left); + view->insertItem("Translate right", this, TQ_SLOT(moveR()), CTRL+Key_Right); + view->insertItem("Translate up", this, TQ_SLOT(moveU()), CTRL+Key_Up); + view->insertItem("Translate down", this, TQ_SLOT(moveD()), CTRL+Key_Down); + view->insertItem("&Mirror", this, TQ_SLOT(mirror()), CTRL+Key_Home); menu->insertItem("&View", view); options = new TQPopupMenu( menu ); - dbf_id = options->insertItem("Double buffer", this, SLOT(toggleDoubleBuffer())); + dbf_id = options->insertItem("Double buffer", this, TQ_SLOT(toggleDoubleBuffer())); options->setItemChecked(dbf_id, TRUE); menu->insertItem("&Options",options); menu->insertSeparator(); TQPopupMenu* help = new TQPopupMenu( menu ); - help->insertItem("&About", this, SLOT(help()), Key_F1); + help->insertItem("&About", this, TQ_SLOT(help()), Key_F1); help->setItemChecked(dbf_id, TRUE); menu->insertItem("&Help",help); diff --git a/examples/canvas/main.cpp b/examples/canvas/main.cpp index 92c720d7b..aad94c54d 100644 --- a/examples/canvas/main.cpp +++ b/examples/canvas/main.cpp @@ -36,7 +36,7 @@ int main(int argc, char** argv) else m.showMaximized(); - TQObject::connect( tqApp, SIGNAL(lastWindowClosed()), tqApp, SLOT(quit()) ); + TQObject::connect( tqApp, TQ_SIGNAL(lastWindowClosed()), tqApp, TQ_SLOT(quit()) ); return app.exec(); } |