summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp21
1 files changed, 15 insertions, 6 deletions
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
@@ -10,4 +10,5 @@
#include "profilemanager.h"
#include "mainwindow.h"
+#include "tabwidget.h"
MainWindow::MainWindow() {
@@ -41,6 +42,4 @@ void MainWindow::initUI() {
this, SLOT(slotNew() ) );
-
-
/*
* connect action
@@ -52,5 +51,4 @@ void MainWindow::initUI() {
this, SLOT(slotConnect() ) );
-
/*
* disconnect action
@@ -102,13 +100,17 @@ void MainWindow::initUI() {
this, SLOT(slotProfile(int) ) );
+ m_consoleWindow = new TabWidget( this, "blah");
+ setCentralWidget( m_consoleWindow );
+
}
+
ProfileManager* MainWindow::manager() {
return m_manager;
}
+
void MainWindow::populateProfiles() {
m_sessionsPop->clear();
Profile::ValueList list = manager()->all();
- for (Profile::ValueList::Iterator it = list.begin(); it != list.end();
- ++it ) {
+ for (Profile::ValueList::Iterator it = list.begin(); it != list.end(); ++it ) {
m_sessionsPop->insertItem( (*it).name() );
}
@@ -130,15 +132,19 @@ QList<Session> MainWindow::sessions() {
return m_sessions;
}
+
void MainWindow::slotNew() {
qWarning("New Connection");
}
+
void MainWindow::slotConnect() {
if ( currentSession() )
currentSession()->layer()->open();
}
+
void MainWindow::slotDisconnect() {
if ( currentSession() )
currentSession()->layer()->close();
}
+
void MainWindow::slotTerminate() {
if ( currentSession() )
@@ -148,7 +154,8 @@ void MainWindow::slotTerminate() {
/* FIXME move to the next session */
}
+
void MainWindow::slotConfigure() {
qWarning("configure");
- ConfigDialog conf( manager()->all() );
+ ConfigDialog conf( manager()->all() );
conf.showMaximized();
@@ -160,7 +167,9 @@ void MainWindow::slotConfigure() {
}
}
+
void MainWindow::slotClose() {
}
+
void MainWindow::slotProfile(int) {