-rw-r--r-- | noncore/apps/opie-console/.cvsignore | 4 | ||||
-rw-r--r-- | noncore/apps/opie-console/file_layer.h | 2 | ||||
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 21 | ||||
-rw-r--r-- | noncore/apps/opie-console/mainwindow.h | 6 | ||||
-rw-r--r-- | noncore/apps/opie-console/opie-console.pro | 3 | ||||
-rw-r--r-- | noncore/apps/opie-console/tabwidget.cpp | 22 | ||||
-rw-r--r-- | noncore/apps/opie-console/tabwidget.h | 4 |
7 files changed, 43 insertions, 19 deletions
diff --git a/noncore/apps/opie-console/.cvsignore b/noncore/apps/opie-console/.cvsignore index acc07da..41d9740 100644 --- a/noncore/apps/opie-console/.cvsignore +++ b/noncore/apps/opie-console/.cvsignore | |||
@@ -1 +1,5 @@ | |||
1 | configurebase.cpp | ||
2 | configurebase.h | ||
3 | editbase.cpp | ||
4 | editbase.h | ||
1 | moc*.cpp | 5 | moc*.cpp |
diff --git a/noncore/apps/opie-console/file_layer.h b/noncore/apps/opie-console/file_layer.h index 71a0c82..cfa149e 100644 --- a/noncore/apps/opie-console/file_layer.h +++ b/noncore/apps/opie-console/file_layer.h | |||
@@ -11,3 +11,5 @@ class QFile; | |||
11 | class FileTransferLayer : public QObject { | 11 | class FileTransferLayer : public QObject { |
12 | |||
12 | Q_OBJECT | 13 | Q_OBJECT |
14 | |||
13 | public: | 15 | public: |
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 88d5823..dce08ca 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -11,2 +11,3 @@ | |||
11 | #include "mainwindow.h" | 11 | #include "mainwindow.h" |
12 | #include "tabwidget.h" | ||
12 | 13 | ||
@@ -42,4 +43,2 @@ void MainWindow::initUI() { | |||
42 | 43 | ||
43 | |||
44 | |||
45 | /* | 44 | /* |
@@ -53,3 +52,2 @@ void MainWindow::initUI() { | |||
53 | 52 | ||
54 | |||
55 | /* | 53 | /* |
@@ -103,3 +101,7 @@ void MainWindow::initUI() { | |||
103 | 101 | ||
102 | m_consoleWindow = new TabWidget( this, "blah"); | ||
103 | setCentralWidget( m_consoleWindow ); | ||
104 | |||
104 | } | 105 | } |
106 | |||
105 | ProfileManager* MainWindow::manager() { | 107 | ProfileManager* MainWindow::manager() { |
@@ -107,2 +109,3 @@ ProfileManager* MainWindow::manager() { | |||
107 | } | 109 | } |
110 | |||
108 | void MainWindow::populateProfiles() { | 111 | void MainWindow::populateProfiles() { |
@@ -110,4 +113,3 @@ void MainWindow::populateProfiles() { | |||
110 | Profile::ValueList list = manager()->all(); | 113 | Profile::ValueList list = manager()->all(); |
111 | for (Profile::ValueList::Iterator it = list.begin(); it != list.end(); | 114 | for (Profile::ValueList::Iterator it = list.begin(); it != list.end(); ++it ) { |
112 | ++it ) { | ||
113 | m_sessionsPop->insertItem( (*it).name() ); | 115 | m_sessionsPop->insertItem( (*it).name() ); |
@@ -131,2 +133,3 @@ QList<Session> MainWindow::sessions() { | |||
131 | } | 133 | } |
134 | |||
132 | void MainWindow::slotNew() { | 135 | void MainWindow::slotNew() { |
@@ -134,2 +137,3 @@ void MainWindow::slotNew() { | |||
134 | } | 137 | } |
138 | |||
135 | void MainWindow::slotConnect() { | 139 | void MainWindow::slotConnect() { |
@@ -138,2 +142,3 @@ void MainWindow::slotConnect() { | |||
138 | } | 142 | } |
143 | |||
139 | void MainWindow::slotDisconnect() { | 144 | void MainWindow::slotDisconnect() { |
@@ -142,2 +147,3 @@ void MainWindow::slotDisconnect() { | |||
142 | } | 147 | } |
148 | |||
143 | void MainWindow::slotTerminate() { | 149 | void MainWindow::slotTerminate() { |
@@ -149,5 +155,6 @@ void MainWindow::slotTerminate() { | |||
149 | } | 155 | } |
156 | |||
150 | void MainWindow::slotConfigure() { | 157 | void MainWindow::slotConfigure() { |
151 | qWarning("configure"); | 158 | qWarning("configure"); |
152 | ConfigDialog conf( manager()->all() ); | 159 | ConfigDialog conf( manager()->all() ); |
153 | conf.showMaximized(); | 160 | conf.showMaximized(); |
@@ -161,2 +168,3 @@ void MainWindow::slotConfigure() { | |||
161 | } | 168 | } |
169 | |||
162 | void MainWindow::slotClose() { | 170 | void MainWindow::slotClose() { |
@@ -164,2 +172,3 @@ void MainWindow::slotClose() { | |||
164 | } | 172 | } |
173 | |||
165 | void MainWindow::slotProfile(int) { | 174 | void MainWindow::slotProfile(int) { |
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h index be4b469..36eb3a7 100644 --- a/noncore/apps/opie-console/mainwindow.h +++ b/noncore/apps/opie-console/mainwindow.h | |||
@@ -17,4 +17,5 @@ class QAction; | |||
17 | class MetaFactory; | 17 | class MetaFactory; |
18 | 18 | class TabWidget; | |
19 | class ProfileManager; | 19 | class ProfileManager; |
20 | |||
20 | class MainWindow : public QMainWindow { | 21 | class MainWindow : public QMainWindow { |
@@ -22,3 +23,3 @@ class MainWindow : public QMainWindow { | |||
22 | public: | 23 | public: |
23 | MainWindow( ); | 24 | MainWindow(); |
24 | ~MainWindow(); | 25 | ~MainWindow(); |
@@ -75,2 +76,3 @@ private: | |||
75 | 76 | ||
77 | TabWidget* m_consoleWindow; | ||
76 | QToolBar* m_tool; | 78 | QToolBar* m_tool; |
diff --git a/noncore/apps/opie-console/opie-console.pro b/noncore/apps/opie-console/opie-console.pro index 0b5df20..7abf385 100644 --- a/noncore/apps/opie-console/opie-console.pro +++ b/noncore/apps/opie-console/opie-console.pro | |||
@@ -1,3 +1,4 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | CONFIG = qt warn_on release | 2 | #CONFIG = qt warn_on release |
3 | CONFIG = qt debug | ||
3 | DESTDIR = $(OPIEDIR)/bin | 4 | DESTDIR = $(OPIEDIR)/bin |
diff --git a/noncore/apps/opie-console/tabwidget.cpp b/noncore/apps/opie-console/tabwidget.cpp index 6091aa2..783bf13 100644 --- a/noncore/apps/opie-console/tabwidget.cpp +++ b/noncore/apps/opie-console/tabwidget.cpp | |||
@@ -4,14 +4,16 @@ | |||
4 | TabWidget::TabWidget( QWidget* parent, const char* name ) | 4 | TabWidget::TabWidget( QWidget* parent, const char* name ) |
5 | : QTabWidget( parent, name ) | 5 | : OTabWidget( parent, name ) { |
6 | { | 6 | connect(this, SIGNAL( currentChanged(QWidget*) ), |
7 | connect(this, SIGNAL(currentChanged(QWidget*) ), | 7 | this, SLOT( slotCurChanged(QWidget*) ) ); |
8 | this, SLOT(slotCurChanged(QWidget*) ) ); | ||
9 | } | 8 | } |
9 | |||
10 | TabWidget::~TabWidget() { | 10 | TabWidget::~TabWidget() { |
11 | } | 11 | } |
12 | |||
12 | void TabWidget::add( Session* ses ) { | 13 | void TabWidget::add( Session* ses ) { |
13 | if ( !ses->widget() ) return; | 14 | if ( !ses->widget() ) return; |
14 | addTab( ses->widget(), ses->name() ); | 15 | addTab( ses->widget(), "console/konsole", ses->name() ); |
15 | m_map.insert( ses->widget(), ses ); | 16 | m_map.insert( ses->widget(), ses ); |
16 | } | 17 | } |
18 | |||
17 | void TabWidget::remove( Session* ses ) { | 19 | void TabWidget::remove( Session* ses ) { |
@@ -20,7 +22,9 @@ void TabWidget::remove( Session* ses ) { | |||
20 | } | 22 | } |
23 | |||
21 | void TabWidget::slotCurChanged( QWidget* wid ) { | 24 | void TabWidget::slotCurChanged( QWidget* wid ) { |
22 | QMap<QWidget*, Session*>::Iterator it; | 25 | QMap<QWidget*, Session*>::Iterator it; |
23 | it = m_map.find(wid ); | 26 | it = m_map.find( wid ); |
24 | if (it == m_map.end() ) | 27 | if ( it == m_map.end() ) { |
25 | return; | 28 | return; |
29 | } | ||
26 | 30 | ||
@@ -28 +32,3 @@ void TabWidget::slotCurChanged( QWidget* wid ) { | |||
28 | } | 32 | } |
33 | |||
34 | |||
diff --git a/noncore/apps/opie-console/tabwidget.h b/noncore/apps/opie-console/tabwidget.h index d5d4be3..a701488 100644 --- a/noncore/apps/opie-console/tabwidget.h +++ b/noncore/apps/opie-console/tabwidget.h | |||
@@ -4,3 +4,3 @@ | |||
4 | #include <qmap.h> | 4 | #include <qmap.h> |
5 | #include <qtabwidget.h> | 5 | #include <opie/otabwidget.h> |
6 | 6 | ||
@@ -11,3 +11,3 @@ | |||
11 | */ | 11 | */ |
12 | class TabWidget : QTabWidget{ | 12 | class TabWidget : public OTabWidget{ |
13 | Q_OBJECT | 13 | Q_OBJECT |