Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 8 |
1 files changed, 8 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 | |||
@@ -155,24 +155,26 @@ void MainWindow::initUI() { | |||
155 | m_keyBar->setHorizontalStretchable( TRUE ); | 155 | m_keyBar->setHorizontalStretchable( TRUE ); |
156 | m_keyBar->hide(); | 156 | m_keyBar->hide(); |
157 | 157 | ||
158 | m_kb = new FunctionKeyboard(m_keyBar); | 158 | m_kb = new FunctionKeyboard(m_keyBar); |
159 | 159 | ||
160 | /* | 160 | /* |
161 | * connect to the menu activation | 161 | * connect to the menu activation |
162 | */ | 162 | */ |
163 | connect( m_sessionsPop, SIGNAL(activated( int ) ), | 163 | connect( m_sessionsPop, SIGNAL(activated( int ) ), |
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 | } |
170 | 172 | ||
171 | ProfileManager* MainWindow::manager() { | 173 | ProfileManager* MainWindow::manager() { |
172 | return m_manager; | 174 | return m_manager; |
173 | } | 175 | } |
174 | TabWidget* MainWindow::tabWidget() { | 176 | TabWidget* MainWindow::tabWidget() { |
175 | return m_consoleWindow; | 177 | return m_consoleWindow; |
176 | } | 178 | } |
177 | void MainWindow::populateProfiles() { | 179 | void MainWindow::populateProfiles() { |
178 | m_sessionsPop->clear(); | 180 | m_sessionsPop->clear(); |
@@ -319,12 +321,18 @@ void MainWindow::slotTransfer() | |||
319 | //dlg.showMaximized(); | 321 | //dlg.showMaximized(); |
320 | dlg.exec(); | 322 | dlg.exec(); |
321 | } | 323 | } |
322 | } | 324 | } |
323 | 325 | ||
324 | 326 | ||
325 | void MainWindow::slotOpenKeb(bool state) { | 327 | void MainWindow::slotOpenKeb(bool state) { |
326 | 328 | ||
327 | if (state) m_keyBar->show(); | 329 | if (state) m_keyBar->show(); |
328 | else m_keyBar->hide(); | 330 | else m_keyBar->hide(); |
329 | 331 | ||
330 | } | 332 | } |
333 | void MainWindow::slotSessionChanged( Session* ses ) { | ||
334 | if ( ses ) { | ||
335 | qWarning("changing %s", ses->name().latin1() ); | ||
336 | m_curSession = ses; | ||
337 | } | ||
338 | } | ||