initial commit
This commit is contained in:
+31
-8
@@ -3,10 +3,12 @@
|
||||
|
||||
|
||||
#include "cfile.h"
|
||||
#include "csortfilterproxymodel.h"
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QTreeView>
|
||||
#include <QStandardItemModel>
|
||||
#include <QProgressBar>
|
||||
|
||||
|
||||
namespace Ui {
|
||||
@@ -22,17 +24,38 @@ public:
|
||||
~cMainWindow();
|
||||
|
||||
private slots:
|
||||
void on_m_lpLoadListFromFileLeft_clicked();
|
||||
void on_m_lpLoadListFromFileRight_clicked();
|
||||
void onLoadListFromFileLeft();
|
||||
void onLoadListFromFileRight();
|
||||
|
||||
void onLeftListSelected(const QItemSelection& selection, const QItemSelection& previous);
|
||||
void onRightListSelected(const QItemSelection& selection, const QItemSelection& previous);
|
||||
|
||||
void onMatchDirChecked(bool checked);
|
||||
void onMatchFileChecked(bool checked);
|
||||
void onMatchDateTimeChecked(bool checked);
|
||||
void onMatchSizeChecked(bool checked);
|
||||
|
||||
private:
|
||||
Ui::cMainWindow* ui;
|
||||
QStandardItemModel* m_lpLeftListModel;
|
||||
QStandardItemModel* m_lpRightListModel;
|
||||
cFileList m_listLeft;
|
||||
cFileList m_listRight;
|
||||
Ui::cMainWindow* ui;
|
||||
QStandardItemModel* m_lpLeftListModel;
|
||||
QStandardItemModel* m_lpRightListModel;
|
||||
cSortFilterProxyModel* m_lpLeftListProxyModel;
|
||||
cSortFilterProxyModel* m_lpRightListProxyModel;
|
||||
cFileList m_listLeft;
|
||||
cFileList m_listRight;
|
||||
QProgressBar* m_lpProgressBar;
|
||||
|
||||
void displayList(QStandardItemModel* lpModel, cFileList& fileList);
|
||||
bool m_initializing;
|
||||
bool m_loading;
|
||||
|
||||
void initUI();
|
||||
void displayList(QTreeView* lpView, QStandardItemModel* lpModel, cFileList& fileList);
|
||||
void createActions();
|
||||
void createFileActions();
|
||||
void createContextActions();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent* event);
|
||||
};
|
||||
|
||||
#endif // CMAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user