author | josef <josef> | 2002-10-12 18:16:45 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-12 18:16:45 (UTC) |
commit | 82b04543125d6d856df180c437c8d9f95f41e888 (patch) (side-by-side diff) | |
tree | b09807b9736d07d02dfa8a9dc79d385771be8c1a /noncore/apps/opie-console/mainwindow.cpp | |
parent | 9c983d273b055d847cf2d1fa4f5b6e082ce850c9 (diff) | |
download | opie-82b04543125d6d856df180c437c8d9f95f41e888.zip opie-82b04543125d6d856df180c437c8d9f95f41e888.tar.gz opie-82b04543125d6d856df180c437c8d9f95f41e888.tar.bz2 |
- embed transferdialog into menu
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 @@ #include "default.h" #include "metafactory.h" #include "profile.h" #include "profilemanager.h" #include "mainwindow.h" #include "tabwidget.h" +#include "transferdialog.h" MainWindow::MainWindow() { m_factory = new MetaFactory(); Default def(m_factory); m_sessions.setAutoDelete( TRUE ); m_curSession = 0; @@ -60,12 +61,18 @@ void MainWindow::initUI() { m_disconnect = new QAction(); m_disconnect->setText( tr("Disconnect") ); m_disconnect->addTo( m_console ); 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() ) ); + /* * terminate action */ m_terminate = new QAction(); m_terminate->setText( tr("Terminate") ); m_terminate->addTo( m_console ); @@ -211,7 +218,16 @@ void MainWindow::slotProfile( int id) { void MainWindow::create( const Profile& prof ) { Session *ses = manager()->fromProfile( prof, tabWidget() ); m_sessions.append( ses ); tabWidget()->add( ses ); m_curSession = ses; + } + +void MainWindow::slotTransfer() +{ + TransferDialog dlg(this); + dlg.showMaximized(); + dlg.exec(); +} + |