From d3c5cf915f71ada6324277bc427796b9739c6cb8 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 16 Dec 2011 11:52:56 +0100 Subject: DbAnalyzer first try Well, trying to join the consistencyChecker and the check for stray actors/genres. First try :) --- shemov.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index b1b8fbe..1837dac 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -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(object); if(action){ -- cgit v1.2.3-70-g09d2