From ec3418479b28ca8e162f84d76c2eed78c27a114c Mon Sep 17 00:00:00 2001 From: am Date: Mon, 20 Jul 2009 17:37:08 +0000 Subject: -started on editing the archive -big probs with the covers, I'll stop for now, can't think straight any more -changes to MovieModel -changes to MovieItem -modified CoverEditor to allow adding files (untested) git-svn-id: file:///var/svn/repos2/shemov/trunk@392 f440f766-f032-0410-8965-dc7d17de2ca0 --- covereditor.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'covereditor.h') 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; }; -- cgit v1.2.3-70-g09d2