summaryrefslogtreecommitdiff
authorhash <hash>2002-10-24 08:17:22 (UTC)
committer hash <hash>2002-10-24 08:17:22 (UTC)
commit4e8f0ba4a0c43d3dc4f3c4f89f2d796c3f8e5990 (patch) (unidiff)
treef7c83378e657bcbae6ae505d25214bdac405641a
parent541035d4308ca1931d5068ced83b0cb5350b0766 (diff)
downloadopie-4e8f0ba4a0c43d3dc4f3c4f89f2d796c3f8e5990.zip
opie-4e8f0ba4a0c43d3dc4f3c4f89f2d796c3f8e5990.tar.gz
opie-4e8f0ba4a0c43d3dc4f3c4f89f2d796c3f8e5990.tar.bz2
commented out the other button bar.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 8e529a3..e2f4d12 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -143,71 +143,72 @@ void MainWindow::initUI() {
143 m_closewindow->addTo( m_console ); 143 m_closewindow->addTo( m_console );
144 connect( m_closewindow, SIGNAL(activated() ), 144 connect( m_closewindow, SIGNAL(activated() ),
145 this, SLOT(slotClose() ) ); 145 this, SLOT(slotClose() ) );
146 146
147 147
148 /* 148 /*
149 * script actions 149 * script actions
150 */ 150 */
151 m_recordScript = new QAction(tr("Record Script"), QString::null, 0, this, 0); 151 m_recordScript = new QAction(tr("Record Script"), QString::null, 0, this, 0);
152 m_recordScript->addTo(m_scripts); 152 m_recordScript->addTo(m_scripts);
153 connect(m_recordScript, SIGNAL(activated()), this, SLOT(slotRecordScript())); 153 connect(m_recordScript, SIGNAL(activated()), this, SLOT(slotRecordScript()));
154 154
155 m_saveScript = new QAction(tr("Save Script"), QString::null, 0, this, 0); 155 m_saveScript = new QAction(tr("Save Script"), QString::null, 0, this, 0);
156 m_saveScript->addTo(m_scripts); 156 m_saveScript->addTo(m_scripts);
157 connect(m_saveScript, SIGNAL(activated()), this, SLOT(slotSaveScript())); 157 connect(m_saveScript, SIGNAL(activated()), this, SLOT(slotSaveScript()));
158 158
159 m_runScript = new QAction(tr("Run Script"), QString::null, 0, this, 0); 159 m_runScript = new QAction(tr("Run Script"), QString::null, 0, this, 0);
160 m_runScript->addTo(m_scripts); 160 m_runScript->addTo(m_scripts);
161 connect(m_runScript, SIGNAL(activated()), this, SLOT(slotRunScript())); 161 connect(m_runScript, SIGNAL(activated()), this, SLOT(slotRunScript()));
162 162
163 /* 163 /*
164 * action that open/closes the keyboard 164 * action that open/closes the keyboard
165 */ 165 */
166 m_openKeys = new QAction (tr("Open Keyboard..."), 166 m_openKeys = new QAction (tr("Open Keyboard..."),
167 Resource::loadPixmap( "console/keyboard_icon.png" ), 167 Resource::loadPixmap( "down" ),
168 QString::null, 0, this, 0); 168 QString::null, 0, this, 0);
169 169
170 m_openKeys->setToggleAction(true); 170 m_openKeys->setToggleAction(true);
171 171
172 connect (m_openKeys, SIGNAL(toggled(bool)), 172 connect (m_openKeys, SIGNAL(toggled(bool)),
173 this, SLOT(slotOpenKeb(bool))); 173 this, SLOT(slotOpenKeb(bool)));
174 m_openKeys->addTo(m_icons); 174 m_openKeys->addTo(m_icons);
175 175
176 176
177 /* 177 /*
178 * action that open/closes the keyboard 178 * action that open/closes the keyboard
179 */ 179
180 m_openButtons = new QAction ( tr( "Open Buttons..." ), 180 m_openButtons = new QAction ( tr( "Open Buttons..." ),
181 Resource::loadPixmap( "down" ), 181 Resource::loadPixmap( "" ),
182 QString::null, 0, this, 0 ); 182 QString::null, 0, this, 0 );
183 183
184 m_openButtons->setToggleAction( true ); 184 m_openButtons->setToggleAction( true );
185 185
186 connect ( m_openButtons, SIGNAL( toggled( bool ) ), 186 connect ( m_openButtons, SIGNAL( toggled( bool ) ),
187 this, SLOT( slotOpenButtons( bool ) ) ); 187 this, SLOT( slotOpenButtons( bool ) ) );
188 m_openButtons->addTo( m_icons ); 188 m_openButtons->addTo( m_icons );
189 189
190 */
190 191
191 /* insert the submenu */ 192 /* insert the submenu */
192 m_console->insertItem(tr("New from Profile"), m_sessionsPop, 193 m_console->insertItem(tr("New from Profile"), m_sessionsPop,
193 -1, 0); 194 -1, 0);
194 195
195 /* insert the connection menu */ 196 /* insert the connection menu */
196 m_bar->insertItem( tr("Connection"), m_console ); 197 m_bar->insertItem( tr("Connection"), m_console );
197 198
198 /* the scripts menu */ 199 /* the scripts menu */
199 m_bar->insertItem( tr("Scripts"), m_scripts ); 200 m_bar->insertItem( tr("Scripts"), m_scripts );
200 201
201 /* the settings menu */ 202 /* the settings menu */
202 // m_bar->insertItem( tr("Settings"), m_settings ); 203 // m_bar->insertItem( tr("Settings"), m_settings );
203 204
204 /* and the keyboard */ 205 /* and the keyboard */
205 m_keyBar = new QToolBar(this); 206 m_keyBar = new QToolBar(this);
206 addToolBar( m_keyBar, "Keyboard", QMainWindow::Top, TRUE ); 207 addToolBar( m_keyBar, "Keyboard", QMainWindow::Top, TRUE );
207 m_keyBar->setHorizontalStretchable( TRUE ); 208 m_keyBar->setHorizontalStretchable( TRUE );
208 m_keyBar->hide(); 209 m_keyBar->hide();
209 210
210 m_kb = new FunctionKeyboard(m_keyBar); 211 m_kb = new FunctionKeyboard(m_keyBar);
211 connect(m_kb, SIGNAL(keyPressed(FKey, ushort, ushort, bool)), 212 connect(m_kb, SIGNAL(keyPressed(FKey, ushort, ushort, bool)),
212 this, SLOT(slotKeyReceived(FKey, ushort, ushort, bool))); 213 this, SLOT(slotKeyReceived(FKey, ushort, ushort, bool)));
213 214