summaryrefslogtreecommitdiffstats
path: root/filestreewidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'filestreewidget.h')
-rw-r--r--filestreewidget.h121
1 files changed, 0 insertions, 121 deletions
diff --git a/filestreewidget.h b/filestreewidget.h
deleted file mode 100644
index abb2872..0000000
--- a/filestreewidget.h
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- 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 FILESTREEWIDGET_H
-#define FILESTREEWIDGET_H
-
-#include <QtWidgets/QWidget>
-#include <QtWidgets/QDialog>
-#include <QPersistentModelIndex>
-#include <QSortFilterProxyModel>
-
-#include "smtreeview.h"
-
-typedef QList<QPersistentModelIndex> PersistenModelIndexList;
-
-class FilesTreeView;
-class FilesTreeModel;
-class FilePropertiesDialog;
-class FilesTreeSortModel;
-class SeriesTreeModel;
-class PictureViewer2;
-class HoverWindow;
-class QContextMenuEvent;
-class QSpinBox;
-class QPushButton;
-class QEvent;
-
-class FilesTreeWidget : public QWidget {
- Q_OBJECT
- public:
- explicit FilesTreeWidget(QWidget *parent = 0);
- FilesTreeView *filesTree() { return mView; }
- void resetSize();
-
- public slots:
- void moveToBurn();
- void removeFiles();
- void moveToDirectory();
- void fileProperties();
- void edit(int column);
- void suggest();
- void playSelected();
- void moveToSeries();
-
- private slots:
- void fileSelectionChanged();
- void itemDoubleClicked(const QModelIndex &index);
-
- signals:
- void selectedSize(qint64);
- void numSelected(int);
- void statusMessage(QString);
-
- private:
- void playItems(const QStringList &paths);
- FilesTreeView *mView;
- FilesTreeModel *mModel;
- FilesTreeSortModel *mProxy;
- SeriesTreeModel *mSeriesModel;
- PictureViewer2 *mPictureViewer;
- QModelIndexList mSelectedFiles;
- FilePropertiesDialog *mPropDlg;
- qint64 mSelectedSize;
-};
-
-class FilesTreeView : public SmTreeView {
- Q_OBJECT
- public:
- explicit FilesTreeView(QWidget *parent = 0);
-
- public slots:
- void readSettings();
- void writeSettings();
-
- protected:
- virtual void contextMenuEvent(QContextMenuEvent *event);
- virtual bool event(QEvent *event);
-
- private:
- bool exitHover(bool exitVal = true);
- void doHover(const QModelIndex &idx);
- const QString fileNameText(const QModelIndex &idx) const;
- const QString metaDataText(const QModelIndex &idx) const;
- const QPixmap annotateHover(const QPixmap &hoverImage, const QString &text) const;
- QModelIndex mCurHover;
- HoverWindow *mHoverWin;
- bool mHoverPics;
- bool mHoverMovies;
- qint16 mCursorOffest;
-};
-
-class FilesTreeSortModel : public QSortFilterProxyModel {
- Q_OBJECT
- public:
- FilesTreeSortModel(QObject *parent = 0);
- ~FilesTreeSortModel() {}
-
- protected:
- virtual bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
-};
-
-class FileMoveDialog : public QDialog {
- Q_OBJECT
- public:
- explicit FileMoveDialog(QPersistentModelIndex selected, QList<QPersistentModelIndex> files, QWidget *parent = 0, Qt::WindowFlags f = 0);
-
- public slots:
- virtual void accept();
-
- private:
- QPushButton *mOk;
- QPushButton *mCancel;
- SmTreeView *mTree;
- SeriesTreeModel *mModel;
- QList<QPersistentModelIndex> mFiles;
-};
-#endif