1 #ifndef FOLDERPANEL_H
\r
2 #define FOLDERPANEL_H
\r
6 #include <QTableWidget>
\r
7 #include <QFileIconProvider>
\r
8 #include <QFileSystemWatcher>
\r
9 #include "filetableview.h"
\r
16 class FolderPanel : public QWidget
\r
21 explicit FolderPanel(QWidget *parent = 0);
\r
24 QTableView *fileTable();
\r
25 const QTableView* fileTable() const;
\r
27 QDir* dir() { return &m_dir; }
\r
28 const QDir* dir() const { return &m_dir; }
\r
30 void setCurrentFolder(const QString &path);
\r
31 void InstallWatcher();
\r
32 void UninstallWatcher();
\r
34 void beginUpdate() {
\r
36 // setUpdatesEnabled(false);
\r
39 m_bUpdating = false;
\r
40 // setUpdatesEnabled(true);
\r
41 //onUpdateMark(0, 0);
\r
43 bool isUpdating() const { return m_bUpdating; }
\r
45 const QString side() const;
\r
46 void setSide(const QString &side);
\r
49 Ui::FolderPanel *ui;
\r
51 QFileIconProvider m_IconFactory;
\r
52 QFileSystemWatcher *m_fsWatcher;
\r
56 void onStateChanged(int checkedFolders, int checkedFiles, quint64 totalSize);
\r
57 void on_locationField_editingFinished();
\r
58 void on_directoryChanged(QString);
\r
59 // void on_fileTable_itemSelectionChanged();
\r
62 #endif // FOLDERPANEL_H
\r