diff options
author | Arno <am@disconnect.de> | 2012-02-24 23:32:10 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-02-24 23:32:10 +0100 |
commit | dce686c895fce27cce1d8bf0247c692bd790f93a (patch) | |
tree | bed47f7bed845f88ce70a59729623430f8ad9baa /shemov.cpp | |
parent | b8e16c3bddb706ecc195e86eaafb89ed90f9bfc3 (diff) | |
download | SheMov-dce686c895fce27cce1d8bf0247c692bd790f93a.tar.gz SheMov-dce686c895fce27cce1d8bf0247c692bd790f93a.tar.bz2 SheMov-dce686c895fce27cce1d8bf0247c692bd790f93a.zip |
Implemented NewPicsDialog
Version 1 of NewPicsDialog. Just one single tab for adding files. Does
nothing yet besides adding and removing files.
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -54,6 +54,7 @@ #include "mappingtablemodel.h" #include "dbanalyzer.h" #include "mappingtreewidget.h" +#include "newpicsdialog.h" SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags), mOpenWithGroupFS(0), mOpenWithGroupAV(0) { //application icon @@ -331,6 +332,8 @@ void SheMov::createActions(){ connect(mAnalyzerA, SIGNAL(triggered()), this, SLOT(analyzeDb())); mMappingEditorA = new QAction(tr("Mapping editor..."), this); connect(mMappingEditorA, SIGNAL(triggered()), this, SLOT(mappingEditor())); + mNewPicsA = new QAction(tr("Archive pics...."), this); + connect(mNewPicsA, SIGNAL(triggered()), this, SLOT(newPicsDialog())); //connnect mQuitA = new QAction(tr("Quit"), this); @@ -613,6 +616,7 @@ void SheMov::createMenus(){ fileMenu->addAction(mConsistencyA); fileMenu->addAction(mAnalyzerA); fileMenu->addAction(mMappingEditorA); + fileMenu->addAction(mNewPicsA); //fileMenu->addAction(mShowNoCoverDialogA); fileMenu->addSeparator(); fileMenu->addAction(mQuitA); @@ -1029,3 +1033,12 @@ void SheMov::mappingEditor(){ dlg.setLayout(dlgLayout); dlg.exec(); } + +void SheMov::newPicsDialog(){ + QDialog dlg(this); + QHBoxLayout *dlgLayout = new QHBoxLayout; + NewPicsDialog *npd = new NewPicsDialog; + dlgLayout->addWidget(npd); + dlg.setLayout(dlgLayout); + dlg.exec(); +} |