summaryrefslogtreecommitdiffstats
path: root/archiveiteminfoedit.h
diff options
context:
space:
mode:
Diffstat (limited to 'archiveiteminfoedit.h')
-rw-r--r--archiveiteminfoedit.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/archiveiteminfoedit.h b/archiveiteminfoedit.h
new file mode 100644
index 0000000..d06fa0a
--- /dev/null
+++ b/archiveiteminfoedit.h
@@ -0,0 +1,59 @@
+/*
+ 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 ARCHIVEITEMINFOEDIT_H
+#define ARCHIVEITEMINFOEDIT_H
+
+#include <QWidget>
+
+class QTreeView;
+class QComboBox;
+class QSpinBox;
+class QLineEdit;
+class FileInfoModel;
+class ActorWidget;
+class ListModel;
+class MovieModel;
+
+class ArchiveItemInfoEdit : public QWidget {
+ Q_OBJECT
+ public:
+ explicit ArchiveItemInfoEdit(QWidget *parent = 0);
+ const QString genre() const;
+ const QString title() const;
+ int quality() const;
+ int dvd() const;
+ int series() const;
+ int part() const;
+
+ public slots:
+ void setGenre(const QString &genre);
+ void setTitle(const QString &title);
+ void setQuality(int quality);
+ void setDvd(int dvd);
+ void setSeries(int series);
+ void setPart(int part);
+
+ private slots:
+ void addActor(const QString &actor);
+
+ private:
+ QTreeView *mInfoView;
+ QComboBox *mGenre;
+ QSpinBox *mQuality;
+ QSpinBox *mDvd;
+ QSpinBox *mSeries;
+ QSpinBox *mPart;
+ QLineEdit *mTitle;
+ ActorWidget *mActorView;
+ FileInfoModel *mInfoModel;
+ ListModel *mGenreModel;
+ ListModel *mActorModel;
+ MovieModel *mMovieModel;
+};
+
+#endif