-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index ddaaf1b..c7750be 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -183,20 +183,4 @@ void MainWindow::initUI() { | |||
183 | m_openKeys->addTo(m_icons); | 183 | m_openKeys->addTo(m_icons); |
184 | 184 | ||
185 | |||
186 | /* | ||
187 | * action that open/closes the keyboard | ||
188 | |||
189 | m_openButtons = new QAction ( tr( "Open Buttons..." ), | ||
190 | Resource::loadPixmap( "" ), | ||
191 | QString::null, 0, this, 0 ); | ||
192 | |||
193 | m_openButtons->setToggleAction( true ); | ||
194 | |||
195 | connect ( m_openButtons, SIGNAL( toggled( bool ) ), | ||
196 | this, SLOT( slotOpenButtons( bool ) ) ); | ||
197 | m_openButtons->addTo( m_icons ); | ||
198 | |||
199 | */ | ||
200 | |||
201 | /* insert the submenu */ | 185 | /* insert the submenu */ |
202 | m_console->insertItem(tr("New from Profile"), m_sessionsPop, | 186 | m_console->insertItem(tr("New from Profile"), m_sessionsPop, |
@@ -353,4 +337,5 @@ void MainWindow::slotConnect() { | |||
353 | m_connect->setEnabled( false ); | 337 | m_connect->setEnabled( false ); |
354 | m_disconnect->setEnabled( true ); | 338 | m_disconnect->setEnabled( true ); |
339 | m_transfer->setEnabled( true ); | ||
355 | } | 340 | } |
356 | } | 341 | } |
@@ -362,4 +347,5 @@ void MainWindow::slotDisconnect() { | |||
362 | m_connect->setEnabled( true ); | 347 | m_connect->setEnabled( true ); |
363 | m_disconnect->setEnabled( false ); | 348 | m_disconnect->setEnabled( false ); |
349 | m_transfer->setEnabled( false ); | ||
364 | } | 350 | } |
365 | } | 351 | } |
@@ -448,5 +434,4 @@ void MainWindow::create( const Profile& prof ) { | |||
448 | m_disconnect->setEnabled( false ); | 434 | m_disconnect->setEnabled( false ); |
449 | m_terminate->setEnabled( true ); | 435 | m_terminate->setEnabled( true ); |
450 | m_transfer->setEnabled( true ); | ||
451 | m_recordScript->setEnabled( true ); | 436 | m_recordScript->setEnabled( true ); |
452 | m_saveScript->setEnabled( true ); | 437 | m_saveScript->setEnabled( true ); |
@@ -454,5 +439,5 @@ void MainWindow::create( const Profile& prof ) { | |||
454 | m_fullscreen->setEnabled( true ); | 439 | m_fullscreen->setEnabled( true ); |
455 | m_closewindow->setEnabled( true ); | 440 | m_closewindow->setEnabled( true ); |
456 | 441 | m_transfer->setEnabled( false ); | |
457 | 442 | ||
458 | // is io_layer wants direct connection, then autoconnect | 443 | // is io_layer wants direct connection, then autoconnect |
@@ -462,4 +447,6 @@ void MainWindow::create( const Profile& prof ) { | |||
462 | } | 447 | } |
463 | 448 | ||
449 | |||
450 | |||
464 | QWidget *w = currentSession()->widget(); | 451 | QWidget *w = currentSession()->widget(); |
465 | if(w) w->setFocus(); | 452 | if(w) w->setFocus(); |
@@ -509,4 +496,10 @@ void MainWindow::slotSessionChanged( Session* ses ) { | |||
509 | } | 496 | } |
510 | 497 | ||
498 | if ( ( m_curSession->layer() )->supports()[1] == 0 ) { | ||
499 | m_transfer->setEnabled( false ); | ||
500 | } else { | ||
501 | m_transfer->setEnabled( true ); | ||
502 | } | ||
503 | |||
511 | QWidget *w = m_curSession->widget(); | 504 | QWidget *w = m_curSession->widget(); |
512 | if(w) w->setFocus(); | 505 | if(w) w->setFocus(); |