1.1 --- a/mainwindow.cpp Wed Jun 20 11:58:47 2007 +0000
1.2 +++ b/mainwindow.cpp Thu Jun 21 14:27:46 2007 +0000
1.3 @@ -1466,11 +1466,18 @@
1.4 QMenu *testMenu = menuBar()->addMenu( tr( "&Test" ));
1.5
1.6 QAction *a;
1.7 - a = new QAction( "Test function" , this);
1.8 - a->setStatusTip( "Call test function" );
1.9 + a = new QAction( "Test function 1" , this);
1.10 + a->setStatusTip( "Call test function 1" );
1.11 + testMenu->addAction (a);
1.12 //a->setShortcut (Qt::Key_F4 );
1.13 - connect( a, SIGNAL( triggered() ), this, SLOT( testFunction() ) );
1.14 + connect( a, SIGNAL( triggered() ), this, SLOT( testFunction1() ) );
1.15 +
1.16 + a = new QAction( "Test function 2" , this);
1.17 + a->setStatusTip( "Call test function 2" );
1.18 + //a->setShortcut (Qt::Key_F4 );
1.19 testMenu->addAction (a);
1.20 + connect( a, SIGNAL( triggered() ), this, SLOT( testFunction2() ) );
1.21 +
1.22 a = new QAction( "Command" , this);
1.23 a->setStatusTip( "Enter command to call in editor" );
1.24 //a->setShortcut (Qt::Key_F5 );
1.25 @@ -3581,10 +3588,16 @@
1.26 currentMapEditor()->toggleStandardFlag(sender()->name());
1.27 }
1.28
1.29 -void Main::testFunction()
1.30 +void Main::testFunction1()
1.31 {
1.32 if (!currentMapEditor()) return;
1.33 - currentMapEditor()->testFunction();
1.34 + currentMapEditor()->testFunction1();
1.35 +}
1.36 +
1.37 +void Main::testFunction2()
1.38 +{
1.39 + if (!currentMapEditor()) return;
1.40 + currentMapEditor()->testFunction2();
1.41 }
1.42
1.43 void Main::testCommand()