summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2003-03-03 23:54:03 (UTC)
committer mickeyl <mickeyl>2003-03-03 23:54:03 (UTC)
commit8173569e94a72051d80b8441e70fa1d99f79ef3e (patch) (unidiff)
tree725b67bbee90a0deebb5177f58329cf23ee21baf
parent3688aa2cd692e3226f67a599daea99e35a36036f (diff)
downloadopie-8173569e94a72051d80b8441e70fa1d99f79ef3e.zip
opie-8173569e94a72051d80b8441e70fa1d99f79ef3e.tar.gz
opie-8173569e94a72051d80b8441e70fa1d99f79ef3e.tar.bz2
add exit to file menu (not that someone would want to exit this fine app... :-D
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp
index 9065351..1185f84 100644
--- a/noncore/net/wellenreiter/gui/mainwindow.cpp
+++ b/noncore/net/wellenreiter/gui/mainwindow.cpp
@@ -94,48 +94,50 @@ WellenreiterMainWindow::WellenreiterMainWindow( QWidget * parent, const char * n
94 QToolButton* d = new QToolButton( 0 ); 94 QToolButton* d = new QToolButton( 0 );
95 #ifdef QWS 95 #ifdef QWS
96 d->setAutoRaise( true ); 96 d->setAutoRaise( true );
97 #endif 97 #endif
98 d->setIconSet( *settingsIconSet ); 98 d->setIconSet( *settingsIconSet );
99 connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) ); 99 connect( d, SIGNAL( clicked() ), this, SLOT( showConfigure() ) );
100 100
101 // setup menu bar 101 // setup menu bar
102 102
103 int id; 103 int id;
104 104
105 QMenuBar* mb = menuBar(); 105 QMenuBar* mb = menuBar();
106 106
107 QPopupMenu* fileSave = new QPopupMenu( mb ); 107 QPopupMenu* fileSave = new QPopupMenu( mb );
108 fileSave->insertItem( "&Session...", this, SLOT( fileSaveSession() ) ); 108 fileSave->insertItem( "&Session...", this, SLOT( fileSaveSession() ) );
109 fileSave->insertItem( "&Log...", this, SLOT( fileSaveLog() ) ); 109 fileSave->insertItem( "&Log...", this, SLOT( fileSaveLog() ) );
110 110
111 QPopupMenu* fileLoad = new QPopupMenu( mb ); 111 QPopupMenu* fileLoad = new QPopupMenu( mb );
112 fileLoad->insertItem( "&Session...", this, SLOT( fileLoadSession() ) ); 112 fileLoad->insertItem( "&Session...", this, SLOT( fileLoadSession() ) );
113 //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) ); 113 //fileLoad->insertItem( "&Log", this, SLOT( fileLoadLog() ) );
114 114
115 QPopupMenu* file = new QPopupMenu( mb ); 115 QPopupMenu* file = new QPopupMenu( mb );
116 id = file->insertItem( "&Load", fileLoad ); 116 id = file->insertItem( "&Load", fileLoad );
117 file->insertItem( "&Save", fileSave ); 117 file->insertItem( "&Save", fileSave );
118 file->insertSeparator();
119 file->insertItem( "&Exit", qApp, SLOT( quit() ) );
118 120
119 QPopupMenu* view = new QPopupMenu( mb ); 121 QPopupMenu* view = new QPopupMenu( mb );
120 view->insertItem( "&Configure..." ); 122 view->insertItem( "&Configure..." );
121 123
122 QPopupMenu* sniffer = new QPopupMenu( mb ); 124 QPopupMenu* sniffer = new QPopupMenu( mb );
123 sniffer->insertItem( "&Configure..." ); 125 sniffer->insertItem( "&Configure..." );
124 sniffer->insertSeparator(); 126 sniffer->insertSeparator();
125 127
126 QPopupMenu* demo = new QPopupMenu( mb ); 128 QPopupMenu* demo = new QPopupMenu( mb );
127 demo->insertItem( "&Add something", this, SLOT( demoAddStations() ) ); 129 demo->insertItem( "&Add something", this, SLOT( demoAddStations() ) );
128 130
129 id = mb->insertItem( "&File", file ); 131 id = mb->insertItem( "&File", file );
130 id = mb->insertItem( "&View", view ); 132 id = mb->insertItem( "&View", view );
131 mb->setItemEnabled( id, false ); 133 mb->setItemEnabled( id, false );
132 id = mb->insertItem( "&Sniffer", sniffer ); 134 id = mb->insertItem( "&Sniffer", sniffer );
133 mb->setItemEnabled( id, false ); 135 mb->setItemEnabled( id, false );
134 id = mb->insertItem( "&Demo", demo ); 136 id = mb->insertItem( "&Demo", demo );
135 mb->setItemEnabled( id, true ); 137 mb->setItemEnabled( id, true );
136 138
137 #ifdef QWS 139 #ifdef QWS
138 mb->insertItem( startStopButton ); 140 mb->insertItem( startStopButton );
139 mb->insertItem( c ); 141 mb->insertItem( c );
140 mb->insertItem( d ); 142 mb->insertItem( d );
141 #else // Qt3 changed the insertion order. It's now totally random :( 143 #else // Qt3 changed the insertion order. It's now totally random :(