2016-08-25 00:45:32 +02:00
|
|
|
#ifndef DIRVIEW_H
|
|
|
|
#define DIRVIEW_H
|
|
|
|
|
|
|
|
#include <QTreeView>
|
|
|
|
|
2016-09-21 21:09:12 +02:00
|
|
|
namespace Data {
|
|
|
|
struct SyncthingDir;
|
|
|
|
}
|
|
|
|
|
2016-08-25 00:45:32 +02:00
|
|
|
namespace QtGui {
|
|
|
|
|
|
|
|
class DirView : public QTreeView
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
DirView(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
2016-09-21 21:09:12 +02:00
|
|
|
void openDir(const Data::SyncthingDir &dir);
|
|
|
|
void scanDir(const Data::SyncthingDir &dir);
|
2016-08-25 00:45:32 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void showContextMenu();
|
|
|
|
void copySelectedItem();
|
2016-08-30 20:01:07 +02:00
|
|
|
void copySelectedItemPath();
|
2016-08-25 00:45:32 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // DIRVIEW_H
|