summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 895fa9e..888ab90 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -155,96 +155,95 @@ void MainWindow::initUI() {
155 155
156 m_bar = new QMenuBar( m_tool ); 156 m_bar = new QMenuBar( m_tool );
157 m_console = new QPopupMenu( this ); 157 m_console = new QPopupMenu( this );
158 m_scripts = new QPopupMenu( this ); 158 m_scripts = new QPopupMenu( this );
159 m_sessionsPop= new QPopupMenu( this ); 159 m_sessionsPop= new QPopupMenu( this );
160 m_scriptsPop = new QPopupMenu( this ); 160 m_scriptsPop = new QPopupMenu( this );
161 161
162 /* add a toolbar for icons */ 162 /* add a toolbar for icons */
163 m_icons = new QToolBar(this); 163 m_icons = new QToolBar(this);
164 164
165 /* 165 /*
166 * the settings action 166 * the settings action
167 */ 167 */
168 m_setProfiles = new QAction(tr("Configure Profiles"), 168 m_setProfiles = new QAction(tr("Configure Profiles"),
169 Resource::loadPixmap( "SettingsIcon" ), 169 Resource::loadPixmap( "SettingsIcon" ),
170 QString::null, 0, this, 0); 170 QString::null, 0, this, 0);
171 m_setProfiles->addTo( m_console ); 171 m_setProfiles->addTo( m_console );
172 connect( m_setProfiles, SIGNAL(activated() ), 172 connect( m_setProfiles, SIGNAL(activated() ),
173 this, SLOT(slotConfigure() ) ); 173 this, SLOT(slotConfigure() ) );
174 174
175 m_console->insertSeparator(); 175 m_console->insertSeparator();
176 /* 176 /*
177 * new Action for new sessions 177 * new Action for new sessions
178 */ 178 */
179 QAction* newCon = new QAction(tr("New Connection"), 179 QAction* newCon = new QAction(tr("New Connection"),
180 Resource::loadPixmap( "new" ), 180 Resource::loadPixmap( "new" ),
181 QString::null, 0, this, 0); 181 QString::null, 0, this, 0);
182 newCon->addTo( m_console ); 182 newCon->addTo( m_console );
183 connect( newCon, SIGNAL(activated() ), 183 connect( newCon, SIGNAL(activated() ),
184 this, SLOT(slotNew() ) ); 184 this, SLOT(slotNew() ) );
185 185
186 m_console->insertSeparator(); 186 m_console->insertSeparator();
187 /* save icon is not available */
188 187
189 QAction *saveCon = new QAction(tr("Save Connection"), 188 QAction *saveCon = new QAction(tr("Save Connection"),
190 QPixmap( ( const char** ) filesave_xpm ) , QString::null, 189 QPixmap( ( const char** ) filesave_xpm ) , QString::null,
191 0, this, 0 ); 190 0, this, 0 );
192 saveCon->addTo( m_console ); 191 saveCon->addTo( m_console );
193 connect( saveCon, SIGNAL(activated() ), 192 connect( saveCon, SIGNAL(activated() ),
194 this, SLOT(slotSaveSession() ) ); 193 this, SLOT(slotSaveSession() ) );
195 m_console->insertSeparator(); 194 m_console->insertSeparator();
196 195
197 /* 196 /*
198 * connect action 197 * connect action
199 */ 198 */
200 m_connect = new QAction(); 199 m_connect = new QAction( tr("Connect"), Resource::loadPixmap("console/connected"),
201 m_connect->setText( tr("Connect") ); 200 QString::null, 0, this, 0 );
202 m_connect->addTo( m_console ); 201 m_connect->addTo( m_console );
203 connect(m_connect, SIGNAL(activated() ), 202 connect(m_connect, SIGNAL(activated() ),
204 this, SLOT(slotConnect() ) ); 203 this, SLOT(slotConnect() ) );
205 204
206 /* 205 /*
207 * disconnect action 206 * disconnect action
208 */ 207 */
209 m_disconnect = new QAction(); 208 m_disconnect = new QAction( tr("Disconnect"), Resource::loadPixmap("console/notconnected"),
210 m_disconnect->setText( tr("Disconnect") ); 209 QString::null, 0, this, 0 );
211 m_disconnect->addTo( m_console ); 210 m_disconnect->addTo( m_console );
212 connect(m_disconnect, SIGNAL(activated() ), 211 connect(m_disconnect, SIGNAL(activated() ),
213 this, SLOT(slotDisconnect() ) ); 212 this, SLOT(slotDisconnect() ) );
214 213
215 m_console->insertSeparator(); 214 m_console->insertSeparator();
216 215
217 m_transfer = new QAction(); 216 m_transfer = new QAction( tr("Transfer file..."), Resource::loadPixmap("pass") , QString::null,
218 m_transfer->setText( tr("Transfer file...") ); 217 0, this, 0 );
219 m_transfer->addTo( m_console ); 218 m_transfer->addTo( m_console );
220 connect(m_transfer, SIGNAL(activated() ), 219 connect(m_transfer, SIGNAL(activated() ),
221 this, SLOT(slotTransfer() ) ); 220 this, SLOT(slotTransfer() ) );
222 221
223 222
224 /* 223 /*
225 * fullscreen 224 * fullscreen
226 */ 225 */
227 m_isFullscreen = false; 226 m_isFullscreen = false;
228 227
229 m_fullscreen = new QAction( tr("Full screen"), Resource::loadPixmap( "fullscreen" ) 228 m_fullscreen = new QAction( tr("Full screen"), Resource::loadPixmap( "fullscreen" )
230 , QString::null, 0, this, 0); 229 , QString::null, 0, this, 0);
231 m_fullscreen->addTo( m_console ); 230 m_fullscreen->addTo( m_console );
232 connect( m_fullscreen, SIGNAL( activated() ), 231 connect( m_fullscreen, SIGNAL( activated() ),
233 this, SLOT( slotFullscreen() ) ); 232 this, SLOT( slotFullscreen() ) );
234 233
235 m_console->insertSeparator(); 234 m_console->insertSeparator();
236 /* 235 /*
237 * terminate action 236 * terminate action
238 */ 237 */
239 m_terminate = new QAction(); 238 m_terminate = new QAction();
240 m_terminate->setText( tr("Terminate") ); 239 m_terminate->setText( tr("Terminate") );
241 m_terminate->addTo( m_console ); 240 m_terminate->addTo( m_console );
242 connect(m_terminate, SIGNAL(activated() ), 241 connect(m_terminate, SIGNAL(activated() ),
243 this, SLOT(slotTerminate() ) ); 242 this, SLOT(slotTerminate() ) );
244 243
245 m_closewindow = new QAction(); 244 m_closewindow = new QAction();
246 m_closewindow->setText( tr("Close Window") ); 245 m_closewindow->setText( tr("Close Window") );
247 m_closewindow->addTo( m_console ); 246 m_closewindow->addTo( m_console );
248 connect( m_closewindow, SIGNAL(activated() ), 247 connect( m_closewindow, SIGNAL(activated() ),
249 this, SLOT(slotClose() ) ); 248 this, SLOT(slotClose() ) );
250 249