Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index bfd1c2e..27bcc09 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -255,84 +255,84 @@ void MainWindow::slotDisconnect() { | |||
255 | if ( currentSession() ) | 255 | if ( currentSession() ) |
256 | currentSession()->layer()->close(); | 256 | currentSession()->layer()->close(); |
257 | } | 257 | } |
258 | 258 | ||
259 | void MainWindow::slotTerminate() { | 259 | void MainWindow::slotTerminate() { |
260 | if ( currentSession() ) | 260 | if ( currentSession() ) |
261 | currentSession()->layer()->close(); | 261 | currentSession()->layer()->close(); |
262 | 262 | ||
263 | slotClose(); | 263 | slotClose(); |
264 | /* FIXME move to the next session */ | 264 | /* FIXME move to the next session */ |
265 | } | 265 | } |
266 | 266 | ||
267 | void MainWindow::slotConfigure() { | 267 | void MainWindow::slotConfigure() { |
268 | qWarning("configure"); | 268 | qWarning("configure"); |
269 | ConfigDialog conf( manager()->all(), factory() ); | 269 | ConfigDialog conf( manager()->all(), factory() ); |
270 | conf.showMaximized(); | 270 | conf.showMaximized(); |
271 | 271 | ||
272 | int ret = conf.exec(); | 272 | int ret = conf.exec(); |
273 | 273 | ||
274 | if ( QDialog::Accepted == ret ) { | 274 | if ( QDialog::Accepted == ret ) { |
275 | qWarning("conf %d", conf.list().count() ); | 275 | qWarning("conf %d", conf.list().count() ); |
276 | manager()->setProfiles( conf.list() ); | 276 | manager()->setProfiles( conf.list() ); |
277 | populateProfiles(); | 277 | populateProfiles(); |
278 | } | 278 | } |
279 | } | 279 | } |
280 | /* | 280 | /* |
281 | * we will remove | 281 | * we will remove |
282 | * this window from the tabwidget | 282 | * this window from the tabwidget |
283 | * remove it from the list | 283 | * remove it from the list |
284 | * delete it | 284 | * delete it |
285 | * and set the currentSession() | 285 | * and set the currentSession() |
286 | */ | 286 | */ |
287 | void MainWindow::slotClose() { | 287 | void MainWindow::slotClose() { |
288 | qWarning("close"); | 288 | qWarning("close"); |
289 | if (!currentSession() ) | 289 | if (!currentSession() ) |
290 | return; | 290 | return; |
291 | 291 | ||
292 | tabWidget()->remove( currentSession() ); | 292 | tabWidget()->remove( currentSession() ); |
293 | /*it's autodelete */ | 293 | /*it's autodelete */ |
294 | m_sessions.remove( m_curSession ); | 294 | m_sessions.remove( m_curSession ); |
295 | m_curSession = m_sessions.first(); | 295 | m_curSession = m_sessions.first(); |
296 | tabWidget()->setCurrent( m_curSession ); | 296 | tabWidget()->setCurrent( m_curSession ); |
297 | } | 297 | } |
298 | 298 | ||
299 | /* | 299 | /* |
300 | * We will get the name | 300 | * We will get the name |
301 | * Then the profile | 301 | * Then the profile |
302 | * and then we will make a profile | 302 | * and then we will make a profile |
303 | */ | 303 | */ |
304 | void MainWindow::slotProfile( int id) { | 304 | void MainWindow::slotProfile( int id) { |
305 | Profile prof = manager()->profile( m_sessionsPop->text( id) ); | 305 | Profile prof = manager()->profile( m_sessionsPop->text( id) ); |
306 | create( prof ); | 306 | create( prof ); |
307 | } | 307 | } |
308 | void MainWindow::create( const Profile& prof ) { | 308 | void MainWindow::create( const Profile& prof ) { |
309 | Session *ses = manager()->fromProfile( prof, tabWidget() ); | 309 | Session *ses = manager()->fromProfile( prof, tabWidget() ); |
310 | 310 | ||
311 | m_sessions.append( ses ); | 311 | m_sessions.append( ses ); |
312 | tabWidget()->add( ses ); | 312 | tabWidget()->add( ses ); |
313 | m_curSession = ses; | 313 | m_curSession = ses; |
314 | 314 | ||
315 | } | 315 | } |
316 | 316 | ||
317 | void MainWindow::slotTransfer() | 317 | void MainWindow::slotTransfer() |
318 | { | 318 | { |
319 | if ( currentSession() ) { | 319 | // if ( currentSession() ) { |
320 | TransferDialog dlg(this); | 320 | TransferDialog dlg(this); |
321 | //dlg.showMaximized(); | 321 | dlg.showMaximized(); |
322 | dlg.exec(); | 322 | dlg.exec(); |
323 | } | 323 | // } |
324 | } | 324 | } |
325 | 325 | ||
326 | 326 | ||
327 | void MainWindow::slotOpenKeb(bool state) { | 327 | void MainWindow::slotOpenKeb(bool state) { |
328 | 328 | ||
329 | if (state) m_keyBar->show(); | 329 | if (state) m_keyBar->show(); |
330 | else m_keyBar->hide(); | 330 | else m_keyBar->hide(); |
331 | 331 | ||
332 | } | 332 | } |
333 | void MainWindow::slotSessionChanged( Session* ses ) { | 333 | void MainWindow::slotSessionChanged( Session* ses ) { |
334 | if ( ses ) { | 334 | if ( ses ) { |
335 | qWarning("changing %s", ses->name().latin1() ); | 335 | qWarning("changing %s", ses->name().latin1() ); |
336 | m_curSession = ses; | 336 | m_curSession = ses; |
337 | } | 337 | } |
338 | } | 338 | } |