1 #ifndef FOLDERPANEL_H
\r
2 #define FOLDERPANEL_H
\r
6 #include <QTableWidget>
\r
7 #include <QFileIconProvider>
\r
8 #include <QFileSystemWatcher>
\r
9 #include "filetablewidget.h"
\r
16 class FolderPanel : public QWidget
\r
21 explicit FolderPanel(QWidget *parent = 0);
\r
24 FileTableWidget* fileTable();
\r
25 const FileTableWidget* 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() { m_bUpdating = true; }
\r
35 void endUpdate() { m_bUpdating = false; onUpdateMark(0, 0);}
\r
36 bool isUpdating() const { return m_bUpdating; }
\r
39 Ui::FolderPanel *ui;
\r
41 QFileIconProvider m_IconFactory;
\r
42 QFileSystemWatcher *m_fsWatcher;
\r
46 void onUpdateMark(int, int);
\r
47 void on_locationField_editingFinished();
\r
48 void on_directoryChanged(QString);
\r
49 void on_fileTable_itemSelectionChanged();
\r
52 #endif // FOLDERPANEL_H
\r