summaryrefslogtreecommitdiffstats
path: root/newmoviewizard.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-10-03 11:51:29 +0200
committerArno <am@disconnect.de>2010-10-03 11:51:29 +0200
commit0861ec020923ff8a1549f6c4a3f5437ce62573b5 (patch)
tree9c60034f8077a00b5c97b0effaf0d9785a11a871 /newmoviewizard.h
parent3c86ae36f5048929ed43e1d49060d45e927953e8 (diff)
downloadSheMov-0861ec020923ff8a1549f6c4a3f5437ce62573b5.tar.gz
SheMov-0861ec020923ff8a1549f6c4a3f5437ce62573b5.tar.bz2
SheMov-0861ec020923ff8a1549f6c4a3f5437ce62573b5.zip
Implemented "Archive selected" action
New context menu entry in FSWidget: archive selected. The selected files will be inserted into the MovieInfoPage when archiving a movie.
Diffstat (limited to 'newmoviewizard.h')
-rw-r--r--newmoviewizard.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/newmoviewizard.h b/newmoviewizard.h
index 9f476ed..93da626 100644
--- a/newmoviewizard.h
+++ b/newmoviewizard.h
@@ -24,16 +24,26 @@ class QCheckBox;
class QStringListModel;
class WizardTreeModel;
class SmTreeItem;
+class MovieInfoPage;
+class MovieMappingPage;
class NewMovieWizard : public QWizard {
Q_OBJECT
public:
explicit NewMovieWizard(QWidget *parent = 0);
void accept();
+ MovieInfoPage *infoPage() { return mInfoPage; }
+ MovieMappingPage *actorPage() { return mActorPage; }
+ MovieMappingPage *genrePage() { return mGenrePage; }
signals:
void seriesAdded(const QString series, int seriesPart);
+ private:
+ MovieInfoPage *mInfoPage;
+ MovieMappingPage *mActorPage;
+ MovieMappingPage *mGenrePage;
+
};
class MovieInfoPage : public QWizardPage {
@@ -42,6 +52,7 @@ class MovieInfoPage : public QWizardPage {
explicit MovieInfoPage(QWidget *parent = 0);
WizardTreeModel *model() { return mFileModel; }
virtual void initializePage();
+ void addFile(const QString &file);
private slots:
void addFiles();
@@ -54,6 +65,7 @@ class MovieInfoPage : public QWizardPage {
void fileSelectionChanged(const QModelIndex &current, const QModelIndex &previous);
private:
+ void setupGui();
QTreeView *mFileView;
QLineEdit *mTitle;
QSpinBox *mSeriesNo;