From e4718ab079f4a4eba4a47fb75992b977a787f369 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 23 Jan 2011 11:51:31 +0100 Subject: 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. --- newmoviewizard.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'newmoviewizard.h') diff --git a/newmoviewizard.h b/newmoviewizard.h index abcf977..639a710 100644 --- a/newmoviewizard.h +++ b/newmoviewizard.h @@ -11,6 +11,7 @@ #include #include #include +#include #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 mWidgets; +}; + class WizardTreeModel : public SmTreeModel { Q_OBJECT public: -- cgit v1.2.3-70-g09d2