diff options
Diffstat (limited to 'shemov.cpp')
-rw-r--r-- | shemov.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -51,6 +51,7 @@ #include "filestreemodel.h" #include "consistencycheck.h" #include "mappingtableeditor.h" +#include "dbanalyzer.h" SheMov::SheMov(QWidget *parent, Qt::WindowFlags flags) : QMainWindow(parent, flags), mOpenWithGroupFS(0), mOpenWithGroupAV(0) { //application icon @@ -333,6 +334,9 @@ void SheMov::createActions(){ mCleanupGroup->addAction(cleanup2); mConsistencyA = new QAction(tr("Check consisteny..."), this); connect(mConsistencyA, SIGNAL(triggered()), this, SLOT(checkConsistency())); + mAnalyzerA = new QAction(tr("Analyze Db..."), this); + connect(mAnalyzerA, SIGNAL(triggered()), this, SLOT(analyzeDb())); + //connnect mQuitA = new QAction(tr("Quit"), this); mQuitA->setShortcut(tr("CTRL+q")); @@ -620,6 +624,7 @@ void SheMov::createMenus(){ cleanupMenu->addActions(mCleanupGroup->actions()); fileMenu->addMenu(cleanupMenu); fileMenu->addAction(mConsistencyA); + fileMenu->addAction(mAnalyzerA); fileMenu->addAction(mShowNoCoverDialogA); fileMenu->addSeparator(); fileMenu->addAction(mQuitA); @@ -978,6 +983,12 @@ void SheMov::checkConsistency(){ c.exec(); } +void SheMov::analyzeDb(){ + DbAnalyzerDialog d(this); + connect(&d, SIGNAL(partClicked(int, int)), mATree, SLOT(selectMoviePart(int, int))); + d.exec(); +} + void SheMov::toggleHover(QObject *object){ QAction *action = qobject_cast<QAction*>(object); if(action){ |