summaryrefslogtreecommitdiffstats
path: root/shemov.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2011-12-16 11:52:56 +0100
committerArno <am@disconnect.de>2011-12-16 11:52:56 +0100
commitd3c5cf915f71ada6324277bc427796b9739c6cb8 (patch)
tree641ebcce1606d0e0c8b05b4486757b58e0c51857 /shemov.cpp
parentb0ed5d04a5934be074383541026d49afc0804adb (diff)
downloadSheMov-d3c5cf915f71ada6324277bc427796b9739c6cb8.tar.gz
SheMov-d3c5cf915f71ada6324277bc427796b9739c6cb8.tar.bz2
SheMov-d3c5cf915f71ada6324277bc427796b9739c6cb8.zip
DbAnalyzer first try
Well, trying to join the consistencyChecker and the check for stray actors/genres. First try :)
Diffstat (limited to 'shemov.cpp')
-rw-r--r--shemov.cpp11
1 files changed, 11 insertions, 0 deletions
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<QAction*>(object);
if(action){