summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2011-01-23 11:51:31 +0100
committerArno <am@disconnect.de>2011-01-23 11:51:31 +0100
commite4718ab079f4a4eba4a47fb75992b977a787f369 (patch)
tree9b0529d4d5cc015880951e0f0a6337a3e59dc9b7 /newmoviewizard.h
parent6c1a89feb8e8178b02adfa8b4fdc0eb8ef0e78c1 (diff)
downloadSheMov-e4718ab079f4a4eba4a47fb75992b977a787f369.tar.gz
SheMov-e4718ab079f4a4eba4a47fb75992b977a787f369.tar.bz2
SheMov-e4718ab079f4a4eba4a47fb75992b977a787f369.zip
Implement metadata
Added a WizardPage to add metadata like releaseyear, releasegroup, newsgroup subject and such. Metadata can't be displayed at the moment and needs to be revameped seriously. I guess it's time for another model keeping the metadata. Created a new table in the database for this.
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: