-rw-r--r-- | noncore/apps/opie-console/BUGS | 3 | ||||
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 22 |
2 files changed, 22 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/BUGS b/noncore/apps/opie-console/BUGS index 8195dc5..694bc8b 100644 --- a/noncore/apps/opie-console/BUGS +++ b/noncore/apps/opie-console/BUGS | |||
@@ -24,9 +24,12 @@ connection its used on | |||
24 | 24 | ||
25 | - scripts need an extension and also an icon | 25 | - scripts need an extension and also an icon |
26 | 26 | ||
27 | - help documentation needs to be extended | 27 | - help documentation needs to be extended |
28 | - new connection and save connection | 28 | - new connection and save connection |
29 | - paste button | 29 | - paste button |
30 | - keys button | 30 | - keys button |
31 | 31 | ||
32 | - dial dialog - ugly , better use a qlineedit there to for showing or | ||
33 | disable | ||
34 | |||
32 | - exit / strg + d does not close conection / tab \ No newline at end of file | 35 | - exit / strg + d does not close conection / tab \ No newline at end of file |
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index c7750be..406586c 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -332,26 +332,32 @@ void MainWindow::slotConnect() { | |||
332 | bool ret = currentSession()->layer()->open(); | 332 | bool ret = currentSession()->layer()->open(); |
333 | if(!ret) QMessageBox::warning(currentSession()->widgetStack(), | 333 | if(!ret) QMessageBox::warning(currentSession()->widgetStack(), |
334 | QObject::tr("Failed"), | 334 | QObject::tr("Failed"), |
335 | QObject::tr("Connecting failed for this session.")); | 335 | QObject::tr("Connecting failed for this session.")); |
336 | else { | 336 | else { |
337 | m_connect->setEnabled( false ); | 337 | m_connect->setEnabled( false ); |
338 | m_disconnect->setEnabled( true ); | 338 | m_disconnect->setEnabled( true ); |
339 | m_transfer->setEnabled( true ); | 339 | m_transfer->setEnabled( true ); |
340 | m_recordScript->setEnabled( true ); | ||
341 | m_saveScript->setEnabled( true ); | ||
342 | m_runScript->setEnabled( true ); | ||
340 | } | 343 | } |
341 | } | 344 | } |
342 | } | 345 | } |
343 | 346 | ||
344 | void MainWindow::slotDisconnect() { | 347 | void MainWindow::slotDisconnect() { |
345 | if ( currentSession() ) { | 348 | if ( currentSession() ) { |
346 | currentSession()->layer()->close(); | 349 | currentSession()->layer()->close(); |
347 | m_connect->setEnabled( true ); | 350 | m_connect->setEnabled( true ); |
348 | m_disconnect->setEnabled( false ); | 351 | m_disconnect->setEnabled( false ); |
349 | m_transfer->setEnabled( false ); | 352 | m_transfer->setEnabled( false ); |
353 | m_recordScript->setEnabled( false); | ||
354 | m_saveScript->setEnabled( false ); | ||
355 | m_runScript->setEnabled( false ); | ||
350 | } | 356 | } |
351 | } | 357 | } |
352 | 358 | ||
353 | void MainWindow::slotTerminate() { | 359 | void MainWindow::slotTerminate() { |
354 | if ( currentSession() ) | 360 | if ( currentSession() ) |
355 | currentSession()->layer()->close(); | 361 | currentSession()->layer()->close(); |
356 | 362 | ||
357 | slotClose(); | 363 | slotClose(); |
@@ -428,22 +434,22 @@ void MainWindow::create( const Profile& prof ) { | |||
428 | tabWidget()->add( ses ); | 434 | tabWidget()->add( ses ); |
429 | tabWidget()->repaint(); | 435 | tabWidget()->repaint(); |
430 | m_curSession = ses; | 436 | m_curSession = ses; |
431 | 437 | ||
432 | // dicide if its a local term ( then no connction and no tranfer), maybe make a wrapper method out of it | 438 | // dicide if its a local term ( then no connction and no tranfer), maybe make a wrapper method out of it |
433 | m_connect->setEnabled( true ); | 439 | m_connect->setEnabled( true ); |
434 | m_disconnect->setEnabled( false ); | 440 | m_disconnect->setEnabled( false ); |
435 | m_terminate->setEnabled( true ); | 441 | m_terminate->setEnabled( true ); |
436 | m_recordScript->setEnabled( true ); | ||
437 | m_saveScript->setEnabled( true ); | ||
438 | m_runScript->setEnabled( true ); | ||
439 | m_fullscreen->setEnabled( true ); | 442 | m_fullscreen->setEnabled( true ); |
440 | m_closewindow->setEnabled( true ); | 443 | m_closewindow->setEnabled( true ); |
441 | m_transfer->setEnabled( false ); | 444 | m_transfer->setEnabled( false ); |
445 | m_recordScript->setEnabled( false ); | ||
446 | m_saveScript->setEnabled( false ); | ||
447 | m_runScript->setEnabled( false ); | ||
442 | 448 | ||
443 | // is io_layer wants direct connection, then autoconnect | 449 | // is io_layer wants direct connection, then autoconnect |
444 | //if ( ( m_curSession->layer() )->supports()[0] == 1 ) { | 450 | //if ( ( m_curSession->layer() )->supports()[0] == 1 ) { |
445 | if (prof.autoConnect()) { | 451 | if (prof.autoConnect()) { |
446 | slotConnect(); | 452 | slotConnect(); |
447 | } | 453 | } |
448 | 454 | ||
449 | 455 | ||
@@ -485,27 +491,37 @@ void MainWindow::slotOpenButtons( bool state ) { | |||
485 | void MainWindow::slotSessionChanged( Session* ses ) { | 491 | void MainWindow::slotSessionChanged( Session* ses ) { |
486 | qWarning("changed!"); | 492 | qWarning("changed!"); |
487 | if ( ses ) { | 493 | if ( ses ) { |
488 | m_curSession = ses; | 494 | m_curSession = ses; |
489 | qDebug(QString("is connected : %1").arg( m_curSession->layer()->isConnected() ) ); | 495 | qDebug(QString("is connected : %1").arg( m_curSession->layer()->isConnected() ) ); |
490 | if ( m_curSession->layer()->isConnected() ) { | 496 | if ( m_curSession->layer()->isConnected() ) { |
491 | m_connect->setEnabled( false ); | 497 | m_connect->setEnabled( false ); |
492 | m_disconnect->setEnabled( true ); | 498 | m_disconnect->setEnabled( true ); |
499 | m_recordScript->setEnabled( true ); | ||
500 | m_saveScript->setEnabled( true ); | ||
501 | m_runScript->setEnabled( true ); | ||
493 | } else { | 502 | } else { |
494 | m_connect->setEnabled( true ); | 503 | m_connect->setEnabled( true ); |
495 | m_disconnect->setEnabled( false ); | 504 | m_disconnect->setEnabled( false ); |
505 | m_recordScript->setEnabled( false ); | ||
506 | m_saveScript->setEnabled( false ); | ||
507 | m_runScript->setEnabled( false ); | ||
496 | } | 508 | } |
497 | 509 | ||
498 | if ( ( m_curSession->layer() )->supports()[1] == 0 ) { | 510 | if ( ( m_curSession->layer() )->supports()[1] == 0 ) { |
499 | m_transfer->setEnabled( false ); | 511 | m_transfer->setEnabled( false ); |
500 | } else { | 512 | } else { |
501 | m_transfer->setEnabled( true ); | 513 | m_transfer->setEnabled( true ); |
502 | } | 514 | } |
503 | 515 | ||
516 | |||
517 | |||
518 | |||
519 | |||
504 | QWidget *w = m_curSession->widget(); | 520 | QWidget *w = m_curSession->widget(); |
505 | if(w) w->setFocus(); | 521 | if(w) w->setFocus(); |
506 | } | 522 | } |
507 | } | 523 | } |
508 | 524 | ||
509 | void MainWindow::slotFullscreen() { | 525 | void MainWindow::slotFullscreen() { |
510 | 526 | ||
511 | 527 | ||