From 98903de8351e1f78a057febe0bb996223a238d56 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 28 May 2010 21:32:54 +0200 Subject: Redesign of editing archive items Added new widget to edit movies already in archive. ArchiveItemInfoEdit is designed to be part of a QTabWidget. --- archiveiteminfoedit.h | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 archiveiteminfoedit.h (limited to 'archiveiteminfoedit.h') 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 + +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 -- cgit v1.2.3-70-g09d2