summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.h
diff options
context:
space:
mode:
Diffstat (limited to 'newmoviewizard.h')
-rw-r--r--newmoviewizard.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/newmoviewizard.h b/newmoviewizard.h
index abcf977..639a710 100644
--- a/newmoviewizard.h
+++ b/newmoviewizard.h
@@ -11,6 +11,7 @@
#include <QWizard>
#include <QWizardPage>
#include <QHash>
+#include <QList>
#include "smtreemodel.h"
#include "mappingtablewidget.h"
@@ -22,10 +23,12 @@ class QPushButton;
class QComboBox;
class QCheckBox;
class QStringListModel;
+class QPlainTextEdit;
class WizardTreeModel;
class SmTreeItem;
class MovieInfoPage;
class MovieMappingPage;
+class MovieMetadataPage;
class PictureViewer;
class NewMovieWizard : public QWizard {
@@ -41,9 +44,11 @@ class NewMovieWizard : public QWizard {
void seriesAdded(const QString series, int seriesPart);
private:
+ void doMetadata(const QModelIndex &idx);
MovieInfoPage *mInfoPage;
MovieMappingPage *mActorPage;
MovieMappingPage *mGenrePage;
+ MovieMetadataPage *mMetadataPage;
};
@@ -97,6 +102,29 @@ class MovieMappingPage : public QWizardPage {
MappingTableWidget *mWidget;
};
+class MovieMetadataPage : public QWizardPage {
+ Q_OBJECT
+ public:
+ explicit MovieMetadataPage(QWidget *parent = 0);
+ virtual ~MovieMetadataPage() {}
+ virtual void initializePage();
+
+ private slots:
+ void toggleMetadata(int state);
+
+ private:
+ void setupGui();
+ QSpinBox *mReleaseYear;
+ QComboBox *mSourceMedium;
+ QComboBox *mReleaseGroup;
+ QLineEdit *mSubject;
+ QLineEdit *mEncoderOpts;
+ QSpinBox *mPasses;
+ QPlainTextEdit *mComment;
+ QCheckBox *mMetadataEnabled;
+ QList<QWidget*> mWidgets;
+};
+
class WizardTreeModel : public SmTreeModel {
Q_OBJECT
public: