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
@@ -9,5 +9,7 @@
#include <qtoolbar.h>
+#include <qmessagebox.h>
+
#include <qpe/resource.h>
#include <opie/ofiledialog.h>
-#include <qmessagebox.h>
+
@@ -169,2 +171,12 @@ void MainWindow::initUI() {
+
+
+ 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 );
+
/*
@@ -342,2 +354,12 @@ void MainWindow::create( const Profile& prof ) {
+ // 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 );
+
+
}
@@ -366 +388,16 @@ void MainWindow::slotSessionChanged( Session* 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
@@ -64,2 +64,3 @@ private slots:
void slotRunScript();
+ void setOn();
void slotSessionChanged( Session* );
@@ -97,3 +98,3 @@ private:
QAction* m_terminate;
- QAction* m_transfer;
+ QAction* m_transfer;
QAction* m_setProfiles;