summaryrefslogtreecommitdiff
path: root/noncore
authorzecke <zecke>2002-10-13 19:01:50 (UTC)
committer zecke <zecke>2002-10-13 19:01:50 (UTC)
commit130ae6144e031b4de2244990c53df8654bd840ae (patch) (unidiff)
treedf4a5660fffd733064758cf346894269ca000cdc /noncore
parent495abbf351f29328b52cb055566ef8bec6f466f0 (diff)
downloadopie-130ae6144e031b4de2244990c53df8654bd840ae.zip
opie-130ae6144e031b4de2244990c53df8654bd840ae.tar.gz
opie-130ae6144e031b4de2244990c53df8654bd840ae.tar.bz2
keep track of the current session
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp8
-rw-r--r--noncore/apps/opie-console/mainwindow.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 0a58b6c..bfd1c2e 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -164,6 +164,8 @@ void MainWindow::initUI() {
164 this, SLOT(slotProfile( int ) ) ); 164 this, SLOT(slotProfile( int ) ) );
165 165
166 m_consoleWindow = new TabWidget( this, "blah"); 166 m_consoleWindow = new TabWidget( this, "blah");
167 connect(m_consoleWindow, SIGNAL(activated(Session*) ),
168 this, SLOT(slotSessionChanged(Session*) ) );
167 setCentralWidget( m_consoleWindow ); 169 setCentralWidget( m_consoleWindow );
168 170
169} 171}
@@ -328,3 +330,9 @@ void MainWindow::slotOpenKeb(bool state) {
328 else m_keyBar->hide(); 330 else m_keyBar->hide();
329 331
330} 332}
333void MainWindow::slotSessionChanged( Session* ses ) {
334 if ( ses ) {
335 qWarning("changing %s", ses->name().latin1() );
336 m_curSession = ses;
337 }
338}
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h
index 94144a4..d16d6af 100644
--- a/noncore/apps/opie-console/mainwindow.h
+++ b/noncore/apps/opie-console/mainwindow.h
@@ -62,6 +62,7 @@ private slots:
62 void slotRecordScript(); 62 void slotRecordScript();
63 void slotSaveScript(); 63 void slotSaveScript();
64 void slotRunScript(); 64 void slotRunScript();
65 void slotSessionChanged( Session* );
65private: 66private:
66 void initUI(); 67 void initUI();
67 void populateProfiles(); 68 void populateProfiles();