diff options
Diffstat (limited to 'covereditor.h')
-rw-r--r-- | covereditor.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/covereditor.h b/covereditor.h index c702ef8..1c0fb93 100644 --- a/covereditor.h +++ b/covereditor.h @@ -12,11 +12,14 @@ class QComboBox; class QStringList; +class QPushButton; class CoverEditor : public QWidget { Q_OBJECT + Q_ENUMS(Mode); public: - CoverEditor(QWidget *parent = 0, Qt::WindowFlags f = 0); + enum Mode { Archive, Update }; + CoverEditor(Mode mode = Archive, QWidget *parent = 0, Qt::WindowFlags f = 0); ~CoverEditor() {}; void setCovers(const QStringList &covers); const QString frontCover() const; @@ -24,12 +27,17 @@ class CoverEditor : public QWidget { const QString covers() const; const QString movie() const; + private slots: + void addFile(); + private: const QString findPath(const QString &name) const; QComboBox *mFrontCover; QComboBox *mBackCover; QComboBox *mCovers; QComboBox *mMovie; + QPushButton *mAddFile; + Mode mMode; QStringList mCoverPaths; }; |