summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp39
-rw-r--r--noncore/apps/opie-console/mainwindow.h3
2 files changed, 40 insertions, 2 deletions
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 <qlabel.h>
#include <qpopupmenu.h>
#include <qtoolbar.h>
+#include <qmessagebox.h>
+
#include <qpe/resource.h>
#include <opie/ofiledialog.h>
-#include <qmessagebox.h>
+
#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;