Mercurial > dedupe
comparison DataController.hpp @ 0:a3834af36579
Working with memory backend.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 20 Aug 2012 15:49:48 +0200 |
| parents | |
| children | aae83c0a771d |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:a3834af36579 |
|---|---|
| 1 #ifndef DATACONTROLLER_HPP | |
| 2 #define DATACONTROLLER_HPP | |
| 3 | |
| 4 #include <QtCore/QObject> | |
| 5 | |
| 6 #include "FileDbLink.hpp" | |
| 7 | |
| 8 class QMainWindow; | |
| 9 class QTreeWidget; | |
| 10 class QTreeWidgetItem; | |
| 11 class QAction; | |
| 12 class QSpinBox; | |
| 13 class QTimer; | |
| 14 | |
| 15 class DataController : QObject { | |
| 16 private: | |
| 17 Q_OBJECT | |
| 18 | |
| 19 public: | |
| 20 DataController(); | |
| 21 ~DataController(); | |
| 22 | |
| 23 public slots: | |
| 24 //void cellClicked(int row, int column); | |
| 25 void cellDoubleClicked(int row, int column); | |
| 26 bool toggleShowFullPath(); | |
| 27 void setShowFullPath(bool); | |
| 28 void populate(); | |
| 29 void delayPopulate(); | |
| 30 | |
| 31 | |
| 32 signals: | |
| 33 void populateProgress(int); | |
| 34 | |
| 35 private: | |
| 36 void populate(bool showNameDups, bool showSizeDups, | |
| 37 bool showMTimeDups, bool showCheckSumDups, | |
| 38 float editDistanceCutoff); | |
| 39 | |
| 40 QTreeWidgetItem* createItem(const FileDbLink::DBInfo& info); | |
| 41 | |
| 42 bool showFullPath; | |
| 43 QMainWindow* mw; | |
| 44 QTreeWidget* tw; | |
| 45 | |
| 46 FileDbLink* dblink; | |
| 47 | |
| 48 QAction* nameFilter; | |
| 49 QAction* sizeFilter; | |
| 50 QAction* mtimeFilter; | |
| 51 QAction* checksumFilter; | |
| 52 QSpinBox* editCutoffSpin; | |
| 53 | |
| 54 QTimer* populateDelay; | |
| 55 }; | |
| 56 | |
| 57 #endif //DATACONTROLLER_HPP |
