summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/shemov.cpp b/shemov.cpp
index 9dbebe1..213e528 100644
--- a/shemov.cpp
+++ b/shemov.cpp
@@ -53,6 +53,7 @@
#include "mappingtableeditor.h"
#include "mappingtablemodel.h"
#include "dbanalyzer.h"
+#include "mappingtreewidget.h"
SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags), mOpenWithGroupFS(0), mOpenWithGroupAV(0) {
//application icon
@@ -328,6 +329,9 @@ void SheMov::createActions(){
connect(mConsistencyA, SIGNAL(triggered()), this, SLOT(checkConsistency()));
mAnalyzerA = new QAction(QIcon(":/higheels.png"), tr("Analyze Db..."), this);
connect(mAnalyzerA, SIGNAL(triggered()), this, SLOT(analyzeDb()));
+ mMappingEditorA = new QAction(tr("Mapping editor..."), this);
+ connect(mMappingEditorA, SIGNAL(triggered()), this, SLOT(mappingEditor()));
+
//connnect
mQuitA = new QAction(tr("Quit"), this);
mQuitA->setShortcut(tr("CTRL+q"));
@@ -608,6 +612,7 @@ void SheMov::createMenus(){
fileMenu->addAction(mNewMovieWizardA);
fileMenu->addAction(mConsistencyA);
fileMenu->addAction(mAnalyzerA);
+ fileMenu->addAction(mMappingEditorA);
//fileMenu->addAction(mShowNoCoverDialogA);
fileMenu->addSeparator();
fileMenu->addAction(mQuitA);
@@ -1015,3 +1020,12 @@ void SheMov::editMappings(QString table){
MappingTableEditor ed(table, this);
ed.exec();
}
+
+void SheMov::mappingEditor(){
+ QDialog dlg(this);
+ QHBoxLayout *dlgLayout = new QHBoxLayout;
+ MappingTreeWidget *mtw = new MappingTreeWidget;
+ dlgLayout->addWidget(mtw);
+ dlg.setLayout(dlgLayout);
+ dlg.exec();
+}