summaryrefslogtreecommitdiffstats
path: root/editarchiveitemdialog.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 /editarchiveitemdialog.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 'editarchiveitemdialog.h')
-rw-r--r--editarchiveitemdialog.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/editarchiveitemdialog.h b/editarchiveitemdialog.h
new file mode 100644
index 0000000..529b446
--- /dev/null
+++ b/editarchiveitemdialog.h
@@ -0,0 +1,61 @@
+/*
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+*/
+
+#ifndef EDITARCHIVEITEMDIALOG_H
+#define EDITARCHIVEITEMDIALOG_H
+
+#include <QDialog>
+#include <QHash>
+#include <QVariant>
+
+class ListModel;
+class MovieModel;
+class QLineEdit;
+class QComboBox;
+class QSpinBox;
+class QTextEdit;
+class QPushButton;
+class QModelIndex;
+class CoverEditor;
+
+class EditArchiveItemDialog : public QDialog {
+ Q_OBJECT
+ public:
+ EditArchiveItemDialog(ListModel *genre, ListModel *actors, MovieModel *movies, QWidget *parent = 0, Qt::WindowFlags f = 0);
+ ~EditArchiveItemDialog() {};
+ void setMovie(const QModelIndex &movie);
+
+ private:
+ void setActors();
+ void setMovieInfo(const QModelIndex &movie);
+ void setCovers(const QModelIndex &movie);
+ void addActor();
+ void removeActor();
+ void updateMovie();
+ void updateCovers();
+ ListModel *mGenreModel;
+ ListModel *mActorsModel;
+ MovieModel *mMovieModel;
+ QComboBox *mGenre;
+ QComboBox *mActors;
+ QTextEdit *mMovieInfo;
+ QTextEdit *mActorsDisplay;
+ QSpinBox *mQuality;
+ QSpinBox *mDvd;
+ QPushButton *mUpdate;
+ QPushButton *mClose;
+ QPushButton *mAddActor;
+ QPushButton *mRemoveActor;
+ QLineEdit *mTitle;
+ QHash<QString, QVariant> mActorMap;
+ QList<QVariant> mCovers;
+ CoverEditor *mCoverEditor;
+ int mMovieId;
+};
+
+#endif
+