From dce686c895fce27cce1d8bf0247c692bd790f93a Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 24 Feb 2012 23:32:10 +0100 Subject: Implemented NewPicsDialog Version 1 of NewPicsDialog. Just one single tab for adding files. Does nothing yet besides adding and removing files. --- shemov.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 213e528..09d4f03 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -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(); +} -- cgit v1.2.3-70-g09d2