diff options
author | Arno Moeller <arno.moeller@bit.bremerhaven.de> | 2013-07-18 16:23:22 +0200 |
---|---|---|
committer | Arno Moeller <arno.moeller@bit.bremerhaven.de> | 2013-07-19 13:02:51 +0200 |
commit | 536643c36b61ddbce1a1b3efb70488ad83f7ae7b (patch) | |
tree | 69756bfa3cd37a5edc782db87e13829c3cf0c3ef /shemov.h | |
parent | 057da448ad06de20b8054ae1ba5ed7f6fb656c1b (diff) | |
download | SheMov-536643c36b61ddbce1a1b3efb70488ad83f7ae7b.tar.gz SheMov-536643c36b61ddbce1a1b3efb70488ad83f7ae7b.tar.bz2 SheMov-536643c36b61ddbce1a1b3efb70488ad83f7ae7b.zip |
Clean up the db analyzer mess
I guess I was quite drunk when I designed this overengineered,
multithreaded monstrosity. Replace it with 4 nifty dialogs.
Diffstat (limited to 'shemov.h')
-rw-r--r-- | shemov.h | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -8,7 +8,7 @@ #ifndef SHEMOV_H #define SHEMOV_H -#include <QtWidgets/QMainWindow> +#include <QMainWindow> #include <QVariant> class QTabWidget; @@ -18,7 +18,6 @@ class QSignalMapper; class QActionGroup; class ArchiveTreeView; class NewMovieWizard; -class DbAnalyzerDialog; class PicturesWidget; class SmTreeModel; class NewPicsDialog; @@ -48,8 +47,6 @@ class SheMov : public QMainWindow { void setSize(qint64 size); void setDuration(const QVariant dur); void checkConsistency(); - void analyzeDb(); - void analyzeDelete(int mode, QList<int> &ids); void toggleHover(QObject *object); void checkMount(bool mounted); void toggleFilterGroup(bool checked); @@ -58,6 +55,11 @@ class SheMov : public QMainWindow { void newPicsDialogWithFiles(); void rebuildFrameCache(); + void analyzeActors(); + void analyzeGenres(); + void analyzeSeries(); + void analyzeParts(); + signals: void configChanged(); @@ -107,7 +109,6 @@ class SheMov : public QMainWindow { QAction *mArchiveSelectedMovsA; QAction *mArchiveSelectedPicsA; QAction *mConsistencyA; - QAction *mAnalyzerA; QAction *mNewPicsA; QAction *mHoverDirectoriesA; QAction *mRebuildFrameCacheA; @@ -202,6 +203,12 @@ class SheMov : public QMainWindow { QAction *mArchiveFilesTypeA; QAction *mArchiveFilesFileNoA; + //DB analyze actions + QAction *mAnalyzeActorsA; + QAction *mAnalyzeGenresA; + QAction *mAnalyzeSeriesA; + QAction *mAnalyzePartsA; + QSignalMapper *mOpenWithMapperFS; QSignalMapper *mOpenWithMapperAV; QSignalMapper *mFilterMapper; @@ -234,7 +241,6 @@ class SheMov : public QMainWindow { ArchiveTreeView *mATree; NewMovieWizard *mNewMovieWizard; NewPicsDialog *mNewPicsDialog; - DbAnalyzerDialog *mDbAnalyzerDialog; PicturesWidget *mPicWidget; ArchiveView *mArchive; }; |