diff options
author | Arno <am@disconnect.de> | 2013-07-12 11:44:04 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-07-12 11:44:04 +0200 |
commit | 11032ae73ea103d97d9fefb1375b957fa505eeaa (patch) | |
tree | e890ca63bbe7f79f5f659e6e14e7fa534e29c51e /archiveview.h | |
parent | cbba8c474d5e90c4af05783e012415102f162c0e (diff) | |
download | SheMov-11032ae73ea103d97d9fefb1375b957fa505eeaa.tar.gz SheMov-11032ae73ea103d97d9fefb1375b957fa505eeaa.tar.bz2 SheMov-11032ae73ea103d97d9fefb1375b957fa505eeaa.zip |
Split MetadataEditor
Again, split the editor into a widget and a dialog, so we can use the
widget in NewMovieWizard.
Diffstat (limited to 'archiveview.h')
-rw-r--r-- | archiveview.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/archiveview.h b/archiveview.h index ed19e4e..41c86c3 100644 --- a/archiveview.h +++ b/archiveview.h @@ -179,15 +179,18 @@ class MappingEditor : public QDialog { MappingEditorWidget *mWidget; }; -class MetadataEditor : public QDialog { +class MetadataEditorWidget : public QWidget { Q_OBJECT public: - explicit MetadataEditor(QWidget *parent = 0, Qt::WindowFlags f = 0); + explicit MetadataEditorWidget(QWidget *parent = 0); void setSources(const QStringList &sources); void setReleaseGroups(const QStringList &relGroups); void setMetadata(const QList<QVariant> &data); QList<QVariant> metadata() const; + public slots: + void setEnabledAll(bool enabled); + private: QSpinBox *mReleaseYear; QComboBox *mSource; @@ -196,9 +199,21 @@ class MetadataEditor : public QDialog { QLineEdit *mEncoderOpts; QSpinBox *mPasses; QTextEdit *mComment; + QDate mAdded; + QList<QWidget*> mWidgets; +}; + +class MetadataEditor : public QDialog { + Q_OBJECT + public: + explicit MetadataEditor(QWidget *parent = 0, Qt::WindowFlags f = 0); + MetadataEditorWidget *widget() { return mWidget; } + + private: + MetadataEditorWidget *mWidget; QPushButton *mCancel; QPushButton *mAccept; - QDate mAdded; + }; class FileNoDelegate : public QStyledItemDelegate { |