initial commit

This commit is contained in:
2019-08-14 15:50:33 +02:00
parent 4e16931354
commit c6cf86927e
10 changed files with 616 additions and 81 deletions
+31 -8
View File
@@ -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