| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #pragma once
- #include <QStandardItemModel>
- #include <QStandardItem>
- #include <QMainWindow>
- #include <QObject>
- #include "IEngine.h"
- class Ui_MainWindow;
- namespace craftlab::fakeraid
- {
- struct DiffResult;
- }
- namespace craftlab::fakeraid::ui
- {
- class MainWindow : public QObject
- {
- Q_OBJECT
- public:
- MainWindow();
- ~MainWindow();
- public:
- void DisplaySourceWindow(bool canCancel, const std::vector<std::string>& previousPaths);
- void DisplaySourceWindow(bool canCancel);
- private Q_SLOTS:
- void MenuBarActionTrigerred(bool checked =false);
- private:
- bool PathExists(const IEngine& engine) const;
- void OnEngineUpdated();
- void ListFiles();
- void OnListViewDoubleClick(const FileAndSum& filename);
- void FileEdit(const File& f);
- bool IsFileCorrent(const File& file) const;
- void UpdateFileList();
- std::unique_ptr<QStandardItemModel> fileListItemModel;
- std::unique_ptr<QMainWindow> window;
- std::unique_ptr<IEngine> engine;
- std::unique_ptr<DiffResult> currentDiffResult;
- std::unique_ptr<Ui_MainWindow> ui;
- };
- }
|