OSDN Git Service

Ver0.26
[gefu/Gefu.git] / folderview_private.h
1 #ifndef FOLDERVIEW_PRIVATE_H
2 #define FOLDERVIEW_PRIVATE_H
3
4 #include <QObject>
5 #include <QAbstractItemView>
6
7 class FolderView_Private : public QObject
8 {
9     Q_OBJECT
10 public:
11     explicit FolderView_Private(QAbstractItemView *parent = 0);
12
13 private:
14     QAbstractItemView*  m_view;
15     QPoint              m_dragStartPos;
16     bool                m_dragging;
17     int                 m_saveRow;
18     QString             m_savePath;
19     QString             m_saveName;
20
21     bool    onDragEnter(QObject *obj, QDragEnterEvent *e);
22     bool    onDrop(QObject *obj, QDropEvent *e);
23     bool    onMouseMove(QObject *obj, QMouseEvent *e);
24     bool    onMousePress(QObject *obj, QMouseEvent *e);
25
26 signals:
27     void    copyItems(const QStringList &list, const QString &tgtDir);
28     void    moveItems(const QStringList &list, const QString &tgtDir);
29
30 public slots:
31     void    model_PostReset();
32     void    model_PreReset();
33
34     // QObject interface
35 public:
36     bool eventFilter(QObject *obj, QEvent *e);
37 };
38
39 #endif // FOLDERVIEW_PRIVATE_H