summaryrefslogtreecommitdiffstats
path: root/addmoviewizard.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-05-22 19:06:43 +0200
committerArno <am@disconnect.de>2010-05-22 19:06:43 +0200
commit8ea5721547c90eee695ed91c31908c31f643eabd (patch)
tree596c0f52c0ba76b26717741580b98914087c555b /addmoviewizard.h
parent1ec8aa7048416a3267ee3ff654d078739644296c (diff)
downloadSheMov-8ea5721547c90eee695ed91c31908c31f643eabd.tar.gz
SheMov-8ea5721547c90eee695ed91c31908c31f643eabd.tar.bz2
SheMov-8ea5721547c90eee695ed91c31908c31f643eabd.zip
Wizard for adding movies manually
Created a QWizard for adding movies manually. Works as expected, but cover management has to be added as last page.
Diffstat (limited to 'addmoviewizard.h')
-rw-r--r--addmoviewizard.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/addmoviewizard.h b/addmoviewizard.h
new file mode 100644
index 0000000..adc293c
--- /dev/null
+++ b/addmoviewizard.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 ADDMOVIEWIZARD_H
+#define ADDMOVIEWIZARD_H
+
+#include <QWizard>
+#include <QWizardPage>
+
+class QLineEdit;
+class QSpinBox;
+class QComboBox;
+class ActorWidget;
+
+class AddMovieWizard : public QWizard {
+ Q_OBJECT
+ public:
+ explicit AddMovieWizard(QWidget *parent = 0);
+ void accept();
+};
+
+class MovieNamePage : public QWizardPage {
+ Q_OBJECT
+ public:
+ explicit MovieNamePage(QWidget *parent = 0);
+
+ private:
+ QLineEdit *mMovieName;
+ QSpinBox *mSeriesNo;
+ QSpinBox *mPartNo;
+ QSpinBox *mQuality;
+ QSpinBox *mDvdNo;
+};
+
+class MovieActorPage : public QWizardPage {
+ Q_OBJECT
+ public:
+ explicit MovieActorPage(QWidget *parent = 0);
+
+ private slots:
+ void addActor(const QString &actor);
+
+ private:
+ ActorWidget *mActorWidget;
+
+};
+
+class MovieGenrePage : public QWizardPage {
+ Q_OBJECT
+ public:
+ explicit MovieGenrePage(QWidget *parent = 0);
+
+ private:
+ QComboBox *mGenre;
+};
+
+#endif