summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp13
1 files changed, 13 insertions, 0 deletions
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();
+}