summaryrefslogtreecommitdiffstats
path: root/editarchiveitemdialog.h
diff options
context:
space:
mode:
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
+