Diffstat (limited to 'noncore/settings/mediummount/mainwindow.cc') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/mediummount/mainwindow.cc | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/noncore/settings/mediummount/mainwindow.cc b/noncore/settings/mediummount/mainwindow.cc new file mode 100644 index 0000000..88f7c61 --- a/dev/null +++ b/noncore/settings/mediummount/mainwindow.cc @@ -0,0 +1,55 @@ + + +#include <qtabwidget.h> +#include <qlayout.h> + +#include <qpe/storage.h> + +#include "mediumwidget.h" +#include "mediumglobal.h" + +#include "mainwindow.h" + +using namespace MediumMountSetting; + + +MainWindow::MainWindow( QWidget *parent, const char *name ) + : QMainWindow( parent, name ) + +{ + // m_lay = new QVBoxLayout( this ); + m_tab = new QTabWidget( this ); + setCentralWidget( m_tab ); + init(); +} + +MainWindow::~MainWindow() +{ + +} +void MainWindow::init() +{ + m_global = new MediumGlobalWidget( m_tab, "test drive" ); + m_tab->addTab( m_global, tr("Global") ); + + StorageInfo storage; + const QList<FileSystem> &fs = storage.fileSystems(); + QListIterator<FileSystem> it( fs ); + MediumMountWidget *wid; + for( ; it.current(); ++it ){ + if( (*it)->isRemovable() ){ + wid = new MediumMountWidget((*it)->path(), QPixmap(), m_tab ); + m_mediums.append( wid ); + m_tab->addTab( wid, (*it)->name() ); + } + } +} + +void MainWindow::slotGlobalChanged(int ) +{ + +} +void MainWindow::slotCheckingChanged(int ) +{ + +} |