From f5d1ce4b3887e0f09704abad5b9414c9cd90be4b Mon Sep 17 00:00:00 2001 From: harlekin Date: Mon, 14 Oct 2002 21:59:07 +0000 Subject: enable some entries not before a profile is loaded --- diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index b143361..89cdf51 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp @@ -7,9 +7,11 @@ #include #include #include +#include + #include #include -#include + #include "keytrans.h" #include "profileeditordialog.h" @@ -167,6 +169,16 @@ void MainWindow::initUI() { m_kb = new FunctionKeyboard(m_keyBar); + + + m_connect->setEnabled( false ); + m_disconnect->setEnabled( false ); + m_terminate->setEnabled( false ); + m_transfer->setEnabled( false ); + m_recordScript->setEnabled( false ); + m_saveScript->setEnabled( false ); + m_runScript->setEnabled( false ); + /* * connect to the menu activation */ @@ -340,6 +352,16 @@ void MainWindow::create( const Profile& prof ) { tabWidget()->add( ses ); m_curSession = ses; + // dicide if its a local term ( then no connction and no tranfer) + m_connect->setEnabled( true ); + m_disconnect->setEnabled( true ); + m_terminate->setEnabled( true ); + m_transfer->setEnabled( true ); + m_recordScript->setEnabled( true ); + m_saveScript->setEnabled( true ); + m_runScript->setEnabled( true ); + + } void MainWindow::slotTransfer() @@ -364,3 +386,18 @@ void MainWindow::slotSessionChanged( Session* ses ) { m_curSession = ses; } } + +void MainWindow::setOn() { + +/* + m_connect + m_disconnect + m_terminate + m_transfer + m_recordScript + m_saveScript + m_runScript +*/ + + +} diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h index d16d6af..378870a 100644 --- a/noncore/apps/opie-console/mainwindow.h +++ b/noncore/apps/opie-console/mainwindow.h @@ -62,6 +62,7 @@ private slots: void slotRecordScript(); void slotSaveScript(); void slotRunScript(); + void setOn(); void slotSessionChanged( Session* ); private: void initUI(); @@ -95,7 +96,7 @@ private: QAction* m_connect; QAction* m_disconnect; QAction* m_terminate; - QAction* m_transfer; + QAction* m_transfer; QAction* m_setProfiles; QAction* m_openKeys; QAction* m_recordScript; -- cgit v0.9.0.2