summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-11-03 08:44:27 +0100
committerArno <arno@disconnect.de>2018-11-03 08:44:27 +0100
commit349fab04ee6b4864a5cc0b103196d8e49e359889 (patch)
treeab5e6e99c2b874325a62b4f624e722eea8872e9d /newmoviewizard.h
parent88848813dacfc02c060bf9fdb7863c2f9b4de6bb (diff)
downloadSheMov-349fab04ee6b4864a5cc0b103196d8e49e359889.tar.gz
SheMov-349fab04ee6b4864a5cc0b103196d8e49e359889.tar.bz2
SheMov-349fab04ee6b4864a5cc0b103196d8e49e359889.zip
Put MovieInfoPage into separate file
Lots of code shuffle and headers cleanup, but no functional changes.
Diffstat (limited to 'newmoviewizard.h')
-rw-r--r--newmoviewizard.h65
1 files changed, 1 insertions, 64 deletions
diff --git a/newmoviewizard.h b/newmoviewizard.h
index cd739bf..5d84928 100644
--- a/newmoviewizard.h
+++ b/newmoviewizard.h
@@ -8,26 +8,11 @@
#ifndef NEWMOVIEWIZARD_H
#define NEWMOVIEWIZARD_H
-#include <QWizardPage>
-#include <QStyledItemDelegate>
+#include <QWizard>
-#include "smtreemodel.h"
-#include "mappingtablewidget.h"
-
-class QSpinBox;
-class QComboBox;
-class QCheckBox;
-class QPlainTextEdit;
-class QSortFilterProxyModel;
-class WizardTreeModel;
class MovieInfoPage;
class MovieMappingPage;
class MovieMetadataPage;
-class PictureViewer2;
-class QCompleter;
-class QStringListModel;
-class MappingEditorWidget;
-class MetadataEditorWidget;
class NewMovieWizard : public QWizard {
Q_OBJECT
@@ -46,52 +31,4 @@ class NewMovieWizard : public QWizard {
MovieMetadataPage *mMetadataPage;
};
-class MovieInfoPage : public QWizardPage {
- Q_OBJECT
- public:
- explicit MovieInfoPage(QWidget *parent = nullptr);
- WizardTreeModel *model() { return mFileModel; }
- virtual void initializePage();
- void addFile(const QString &file);
- void setCurrentDir(const QString &dir) { mCurrentDir = dir; }
- void selectFirst();
- void saveData();
- void restoreData();
- const QStringList &origins() const { return mOrigins; }
-
- public slots:
- void initCompleters();
- void guessOld(const QString &fullPath);
-
- private slots:
- void extractTitle();
- void addOld();
- void addFiles();
- void removeFile();
-
- private:
- void setupGui();
- SmTreeView *mFileView;
- QLineEdit *mTitle;
- QLineEdit *mSubtitle;
- QSpinBox *mSeriesNo;
- QSpinBox *mQuality;
- QPushButton *mExtractTitle;
- QPushButton *mAddOld;
- QPushButton *mAddFile;
- QPushButton *mRemoveFile;
- WizardTreeModel *mFileModel;
- SmTreeItem *mMoviesItem;
- SmTreeItem *mCoversItem;
- QCompleter *mSeriesCompleter;
- QStringListModel *mSeriesCompleterModel;
- QSortFilterProxyModel *mProxy;
- QString mCurrentDir;
- QString mCurTitle;
- QString mCurSubtitle;
- QStringList mOrigins;
- int mCurSeriesno;
- int mCurQuality;
-};
-
#endif