2022-09-23 13:13:41 +08:00
|
|
|
#ifndef DIDMAINWINDOW_H
|
|
|
|
|
#define DIDMAINWINDOW_H
|
2022-09-21 08:52:11 +08:00
|
|
|
|
2022-09-23 13:13:41 +08:00
|
|
|
#include <QMainWindow>
|
2022-09-21 08:52:11 +08:00
|
|
|
|
2022-09-23 13:13:41 +08:00
|
|
|
namespace Ui {
|
|
|
|
|
class DIDMainWindow;
|
|
|
|
|
}
|
2022-09-21 08:52:11 +08:00
|
|
|
|
2022-09-23 13:13:41 +08:00
|
|
|
class QTreeView;
|
|
|
|
|
class QTableView;
|
|
|
|
|
class FileModel;
|
|
|
|
|
class PropertyTableModel;
|
2022-09-21 08:52:11 +08:00
|
|
|
|
2022-09-23 13:13:41 +08:00
|
|
|
class DIDMainWindow : public QMainWindow
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2022-09-21 08:52:11 +08:00
|
|
|
|
2022-09-23 13:13:41 +08:00
|
|
|
public:
|
|
|
|
|
explicit DIDMainWindow(QWidget *aParent = nullptr);
|
|
|
|
|
~DIDMainWindow();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void initMenu();
|
|
|
|
|
void initFileWidget();
|
|
|
|
|
void loadPropertyTable(bool loadSuccess);
|
2022-09-21 08:52:11 +08:00
|
|
|
|
2022-09-23 13:13:41 +08:00
|
|
|
private:
|
|
|
|
|
Ui::DIDMainWindow *mUI;
|
|
|
|
|
QTreeView* mTreeView;
|
|
|
|
|
PropertyTableModel* mTableModel;
|
|
|
|
|
FileModel* mTreeModel;
|
|
|
|
|
QTableView* mTableView;
|
|
|
|
|
|
|
|
|
|
void initTable() const;
|
|
|
|
|
};
|
2022-09-21 08:52:11 +08:00
|
|
|
|
2022-09-23 13:13:41 +08:00
|
|
|
#endif // DIDMAINWINDOW_H
|