summaryrefslogtreecommitdiffstats
path: root/covereditor.h
diff options
context:
space:
mode:
authoram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-20 17:37:08 +0000
committeram <am@f440f766-f032-0410-8965-dc7d17de2ca0>2009-07-20 17:37:08 +0000
commitec3418479b28ca8e162f84d76c2eed78c27a114c (patch)
treea947550fc9821999baf728dbf33adef71fa67576 /covereditor.h
parentd2b854121266e32164290ee4e683c0c8388d7d41 (diff)
downloadSheMov-ec3418479b28ca8e162f84d76c2eed78c27a114c.tar.gz
SheMov-ec3418479b28ca8e162f84d76c2eed78c27a114c.tar.bz2
SheMov-ec3418479b28ca8e162f84d76c2eed78c27a114c.zip
-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
Diffstat (limited to 'covereditor.h')
-rw-r--r--covereditor.h10
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;
};