1 #ifndef FILETABLEVIEW_H
\r
2 #define FILETABLEVIEW_H
\r
6 #include <QFileInfoList>
\r
7 #include <QTableView>
\r
9 class FileTableView : public QTableView
\r
13 explicit FileTableView(QWidget *parent = 0);
\r
16 QString side() const;
\r
17 void setSide(const QString &side);
\r
19 History* history() { return &m_history; }
\r
21 void setRootPath(const QString &path, bool addHistory);
\r
26 QPoint m_dragStartPos;
\r
29 QFileInfoList selectedItems() const;
\r
33 void indexChanged(const QString &text);
\r
34 void filterChanged();
\r
35 void openRequested(const QFileInfo &info);
\r
39 void openUrl(const QModelIndex &index = QModelIndex());
\r
40 void openEditor(const QString &path = QString());
\r
41 void openTerminal(const QString &path = QString());
\r
44 void toggleChecked();
\r
45 void checkAllItems();
\r
46 void checkAllFiles();
\r
47 void uncheckAllItems();
\r
48 void invertAllChecked();
\r
50 void setPathFromOther();
\r
51 void setPathToOther();
\r
53 void showHiddenFiles(bool show);
\r
54 void showSystemFiles(bool show);
\r
63 void jumpToParent();
\r
68 void cursorToBegin();
\r
77 void copyFilenameToClipboard();
\r
78 void copyFullpathToClipboard();
\r
83 void askOverWrite(bool *bOk, int *prevCopyMethod, int *copyMethod,
\r
84 QString *alias, const QString &srcPath,
\r
85 const QString &tgtPath);
\r
86 void onDoubleClick(const QModelIndex &index);
\r
87 void contextMenuRequested(const QPoint & pos);
\r
89 // QAbstractItemView interface
\r
91 void setRootIndex(const QModelIndex &index);
\r
93 // QWidget interface
\r
95 void keyPressEvent(QKeyEvent *event);
\r
96 void focusInEvent(QFocusEvent *event);
\r
97 void dropEvent(QDropEvent *event);
\r
98 void dragEnterEvent(QDragEnterEvent *event);
\r
99 void mousePressEvent(QMouseEvent *event);
\r
100 void mouseMoveEvent(QMouseEvent *event);
\r
102 // QAbstractItemView interface
\r
104 void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
\r
107 #endif // FILETABLEVIEW_H
\r