From 130ae6144e031b4de2244990c53df8654bd840ae Mon Sep 17 00:00:00 2001 From: zecke Date: Sun, 13 Oct 2002 19:01:50 +0000 Subject: keep track of the current session --- (limited to 'noncore') 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 @@ -75,11 +75,11 @@ void MainWindow::initUI() { connect(m_disconnect, SIGNAL(activated() ), this, SLOT(slotDisconnect() ) ); - m_transfer = new QAction(); - m_transfer->setText( tr("Transfer file...") ); - m_transfer->addTo( m_console ); - connect(m_transfer, SIGNAL(activated() ), - this, SLOT(slotTransfer() ) ); + m_transfer = new QAction(); + m_transfer->setText( tr("Transfer file...") ); + m_transfer->addTo( m_console ); + connect(m_transfer, SIGNAL(activated() ), + this, SLOT(slotTransfer() ) ); /* * terminate action @@ -164,6 +164,8 @@ void MainWindow::initUI() { this, SLOT(slotProfile( int ) ) ); m_consoleWindow = new TabWidget( this, "blah"); + connect(m_consoleWindow, SIGNAL(activated(Session*) ), + this, SLOT(slotSessionChanged(Session*) ) ); setCentralWidget( m_consoleWindow ); } @@ -328,3 +330,9 @@ void MainWindow::slotOpenKeb(bool state) { else m_keyBar->hide(); } +void MainWindow::slotSessionChanged( Session* ses ) { + if ( ses ) { + qWarning("changing %s", ses->name().latin1() ); + m_curSession = ses; + } +} 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: void slotRecordScript(); void slotSaveScript(); void slotRunScript(); + void slotSessionChanged( Session* ); private: void initUI(); void populateProfiles(); -- cgit v0.9.0.2