/* 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 QModelIndex; class ArchiveItemInfoEdit : public QWidget { Q_OBJECT public: explicit ArchiveItemInfoEdit(QWidget *parent = 0); void setup(const QModelIndex &idx); const QString genre() const; const QString title() const; const QStringList actors() 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; }; #endif