Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 0bd6a13..fbeaa74 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -10,12 +10,13 @@ | |||
10 | #include "default.h" | 10 | #include "default.h" |
11 | #include "metafactory.h" | 11 | #include "metafactory.h" |
12 | #include "profile.h" | 12 | #include "profile.h" |
13 | #include "profilemanager.h" | 13 | #include "profilemanager.h" |
14 | #include "mainwindow.h" | 14 | #include "mainwindow.h" |
15 | #include "tabwidget.h" | 15 | #include "tabwidget.h" |
16 | #include "transferdialog.h" | ||
16 | 17 | ||
17 | MainWindow::MainWindow() { | 18 | MainWindow::MainWindow() { |
18 | m_factory = new MetaFactory(); | 19 | m_factory = new MetaFactory(); |
19 | Default def(m_factory); | 20 | Default def(m_factory); |
20 | m_sessions.setAutoDelete( TRUE ); | 21 | m_sessions.setAutoDelete( TRUE ); |
21 | m_curSession = 0; | 22 | m_curSession = 0; |
@@ -60,12 +61,18 @@ void MainWindow::initUI() { | |||
60 | m_disconnect = new QAction(); | 61 | m_disconnect = new QAction(); |
61 | m_disconnect->setText( tr("Disconnect") ); | 62 | m_disconnect->setText( tr("Disconnect") ); |
62 | m_disconnect->addTo( m_console ); | 63 | m_disconnect->addTo( m_console ); |
63 | connect(m_disconnect, SIGNAL(activated() ), | 64 | connect(m_disconnect, SIGNAL(activated() ), |
64 | this, SLOT(slotDisconnect() ) ); | 65 | this, SLOT(slotDisconnect() ) ); |
65 | 66 | ||
67 | m_transfer = new QAction(); | ||
68 | m_transfer->setText( tr("Transfer file...") ); | ||
69 | m_transfer->addTo( m_console ); | ||
70 | connect(m_transfer, SIGNAL(activated() ), | ||
71 | this, SLOT(slotTransfer() ) ); | ||
72 | |||
66 | /* | 73 | /* |
67 | * terminate action | 74 | * terminate action |
68 | */ | 75 | */ |
69 | m_terminate = new QAction(); | 76 | m_terminate = new QAction(); |
70 | m_terminate->setText( tr("Terminate") ); | 77 | m_terminate->setText( tr("Terminate") ); |
71 | m_terminate->addTo( m_console ); | 78 | m_terminate->addTo( m_console ); |
@@ -211,7 +218,16 @@ void MainWindow::slotProfile( int id) { | |||
211 | void MainWindow::create( const Profile& prof ) { | 218 | void MainWindow::create( const Profile& prof ) { |
212 | Session *ses = manager()->fromProfile( prof, tabWidget() ); | 219 | Session *ses = manager()->fromProfile( prof, tabWidget() ); |
213 | 220 | ||
214 | m_sessions.append( ses ); | 221 | m_sessions.append( ses ); |
215 | tabWidget()->add( ses ); | 222 | tabWidget()->add( ses ); |
216 | m_curSession = ses; | 223 | m_curSession = ses; |
224 | |||
217 | } | 225 | } |
226 | |||
227 | void MainWindow::slotTransfer() | ||
228 | { | ||
229 | TransferDialog dlg(this); | ||
230 | dlg.showMaximized(); | ||
231 | dlg.exec(); | ||
232 | } | ||
233 | |||