From 6ca8a6fab443c0b4ac7f6249c9ef02457ddf4f55 Mon Sep 17 00:00:00 2001 From: Arno Date: Sun, 30 Dec 2012 13:42:35 +0100 Subject: Allow moving files from one Series to another Allow moving files from one SeriesPart to another. Had to add another global variable for this. --- filestreewidget.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'filestreewidget.h') diff --git a/filestreewidget.h b/filestreewidget.h index 73f5d72..036ee0e 100644 --- a/filestreewidget.h +++ b/filestreewidget.h @@ -10,6 +10,8 @@ #include #include +#include +#include #include typedef QList PersistenModelIndexList; @@ -40,6 +42,7 @@ class FilesTreeWidget : public QWidget { void edit(int column); void suggest(); void playSelected(); + void moveToSeries(); private slots: void fileSelectionChanged(); @@ -99,4 +102,20 @@ class FilesTreeSortModel : public QSortFilterProxyModel { protected: virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const; }; + +class FileMoveDialog : public QDialog { + Q_OBJECT + public: + explicit FileMoveDialog(QPersistentModelIndex selected, QList files, QWidget *parent = 0, Qt::WindowFlags f = 0); + + public slots: + virtual void accept(); + + private: + QPushButton *mOk; + QPushButton *mCancel; + QTreeView *mTree; + SeriesTreeModel *mModel; + QList mFiles; +}; #endif -- cgit v1.2.3-70-g09d2