blob: 29abec026ddd54c336355cda0fdc367483bd5add (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef MOVIEPROPERTIESDIALOG_H
#define MOVIEPROPERTIESDIALOG_H
#include <QDialog>
class QLineEdit;
class QRadioButton;
class SmView;
class QStandardItemModel;
class SmInputDialog;
class MoviePropertiesDialog : public QDialog {
public:
enum CustomRoles { ActorIdRole = Qt::UserRole + 1, GenreIdRole = Qt::UserRole + 2 };
explicit MoviePropertiesDialog(QWidget *parent = nullptr);
public slots:
void init(int seriesPartsId);
virtual void accept();
private:
void setupDialog();
void addItem(SmInputDialog *dlg, QStandardItemModel *model, QIcon icon);
void removeItem(SmView *view);
QLineEdit *mSeriesNameLE;
QLineEdit *mSubtitleLE;
QLineEdit *mCommentLE;
QLineEdit *mSubjectLE;
QLineEdit *mReleaseYearLE;
QLineEdit *mSeriesPartLE;
QRadioButton *mTorrentRB;
QRadioButton *mUsenetRB;
SmView *mActorV;
QStandardItemModel *mActorM;
SmView *mGenreV;
QStandardItemModel *mGenreM;
int mSeriesPartsId;
SmInputDialog *mActorDlg;
SmInputDialog *mGenreDlg;
};
#endif // MOVIEPROPERTIESDIALOG_H
|