diff -r eacf1b165d2d -r f19bbd639726 mainwindow.cpp --- a/mainwindow.cpp Wed Jun 20 11:58:47 2007 +0000 +++ b/mainwindow.cpp Thu Jun 21 14:27:46 2007 +0000 @@ -1466,11 +1466,18 @@ QMenu *testMenu = menuBar()->addMenu( tr( "&Test" )); QAction *a; - a = new QAction( "Test function" , this); - a->setStatusTip( "Call test function" ); + a = new QAction( "Test function 1" , this); + a->setStatusTip( "Call test function 1" ); + testMenu->addAction (a); //a->setShortcut (Qt::Key_F4 ); - connect( a, SIGNAL( triggered() ), this, SLOT( testFunction() ) ); + connect( a, SIGNAL( triggered() ), this, SLOT( testFunction1() ) ); + + a = new QAction( "Test function 2" , this); + a->setStatusTip( "Call test function 2" ); + //a->setShortcut (Qt::Key_F4 ); testMenu->addAction (a); + connect( a, SIGNAL( triggered() ), this, SLOT( testFunction2() ) ); + a = new QAction( "Command" , this); a->setStatusTip( "Enter command to call in editor" ); //a->setShortcut (Qt::Key_F5 ); @@ -3581,10 +3588,16 @@ currentMapEditor()->toggleStandardFlag(sender()->name()); } -void Main::testFunction() +void Main::testFunction1() { if (!currentMapEditor()) return; - currentMapEditor()->testFunction(); + currentMapEditor()->testFunction1(); +} + +void Main::testFunction2() +{ + if (!currentMapEditor()) return; + currentMapEditor()->testFunction2(); } void Main::testCommand()