summaryrefslogtreecommitdiffstats
path: root/editarchiveitemdialog.h
blob: 2cf4a2a6d09e4174734849be0465efb492e31452 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
  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 EDITARCHIVEITEMDIALOG_H
#define EDITARCHIVEITEMDIALOG_H

#include <QDialog>
#include <QHash>
#include <QVariant>

class ListModel;
class MovieModel;
class QLineEdit;
class QComboBox;
class QSpinBox;
class QTextEdit;
class QPushButton;
class QModelIndex;
class QTreeView;
class FileInfoModel;
class ActorWidget;
class ActorModel;

class EditArchiveItemDialog : public QDialog {
	Q_OBJECT
	public:
		EditArchiveItemDialog(ListModel *genre, ListModel *actors, MovieModel *movies, QWidget *parent = 0, Qt::WindowFlags f = 0);
		~EditArchiveItemDialog() {};
		void setMovie(const QModelIndex &movie);

	private slots:
		void addActor(const QString &actor);
		void updateMovie();

	private:
		void setMovieInfo(const QModelIndex &movie);
		ListModel *mGenreModel;
		ListModel *mActorsModel;
		ActorModel *mCurrentActors;
		FileInfoModel *mFileInfoModel;
		MovieModel *mMovieModel;
		QComboBox *mGenre;
		QComboBox *mActors;
		QTreeView *mMovieInfo;
		ActorWidget *mActorsDisplay;	
		QSpinBox *mQuality;
		QSpinBox *mSeriesNo;
		QSpinBox *mPartNo;
		QSpinBox *mDvd;
		QPushButton *mUpdate;
		QPushButton *mClose;
		QLineEdit *mTitle;
		QList<QVariant> mCovers;
		int mMovieId;
};

#endif