2022-11-06 00:37:50 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2022-11-15 08:07:02 +00:00
|
|
|
#include <QSplitter>
|
|
|
|
#include <QTableView>
|
|
|
|
#include <ProjectManager.h>
|
2022-11-15 12:58:12 +00:00
|
|
|
#include <StoryTool.h>
|
2022-11-15 08:07:02 +00:00
|
|
|
#include <QTreeView>
|
2022-11-18 05:43:27 +00:00
|
|
|
#include <QListView>
|
2022-11-17 08:16:54 +00:00
|
|
|
#include "SensitiveCore.h"
|
|
|
|
#include "messagepresent.h"
|
2022-11-18 05:43:27 +00:00
|
|
|
#include "storychainspresent.h"
|
2022-11-17 08:16:54 +00:00
|
|
|
#include "projectview.h"
|
2022-11-06 00:37:50 +00:00
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
2022-11-11 14:38:52 +00:00
|
|
|
|
2022-11-15 08:07:02 +00:00
|
|
|
private:
|
|
|
|
QSplitter *const horizontal_split;
|
|
|
|
QSplitter *const vertical_split;
|
|
|
|
|
|
|
|
QTabWidget *const left_funcs;
|
|
|
|
QTabWidget *const right_funcs;
|
|
|
|
QTabWidget *const center_funcs;
|
|
|
|
QTabWidget *const bottom_funcs;
|
|
|
|
|
|
|
|
|
|
|
|
Project::ProjectManager *const project_manager;
|
2022-11-18 05:43:27 +00:00
|
|
|
Parse::Result::ParseCore *const parse_core;
|
2022-11-17 08:16:54 +00:00
|
|
|
MakeTools::StoryTool *const make_tool;
|
|
|
|
|
2022-11-18 05:43:27 +00:00
|
|
|
QListView *const project_list;
|
2022-11-17 08:16:54 +00:00
|
|
|
Components::ProjectView *const project_view;
|
2022-11-18 05:43:27 +00:00
|
|
|
Components::StoryChainsPresent *const chains_view;
|
2022-11-17 08:16:54 +00:00
|
|
|
Components::MessagePresent *const errors_present;
|
|
|
|
|
|
|
|
MakeTools::SensitiveCore *const framework;
|
2022-11-15 12:58:12 +00:00
|
|
|
|
|
|
|
// 内部逻辑 ===========================================
|
2022-11-17 08:16:54 +00:00
|
|
|
void build_internal(bool all_from_disk = false);
|
2022-11-15 12:58:12 +00:00
|
|
|
|
2022-11-17 08:16:54 +00:00
|
|
|
// QWidget interface
|
|
|
|
protected:
|
|
|
|
virtual void closeEvent(QCloseEvent *event) override;
|
2022-11-06 00:37:50 +00:00
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|