From 49f7d6121cd99a679a7e43e086cf3662a15336fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=89=E5=AE=87=E6=B8=85=E9=9F=B3?= <2422523675@qq.com> Date: Sat, 11 Mar 2023 12:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WordsIDE/mainwindow.cpp | 18 +++++++----------- WordsIDE/mainwindow.h | 2 +- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/WordsIDE/mainwindow.cpp b/WordsIDE/mainwindow.cpp index cf2292e..358795d 100644 --- a/WordsIDE/mainwindow.cpp +++ b/WordsIDE/mainwindow.cpp @@ -32,26 +32,22 @@ using namespace Tools; using namespace CommandList; MainWindow::MainWindow(QWidget *parent) - : QMainWindow(parent), - app_core(new AppCore(this, true, this)), + : QMainWindow(parent), app_core(new AppCore(this, true, this)), sync_kernel(new StatusSyncCore(this)), horizontal_split(new QSplitter(Qt::Horizontal, this)), vertical_split(new QSplitter(Qt::Vertical, this)), - left_funcs(new QTabWidget(this)), - right_funcs(new QTabWidget(this)), - center_funcs(new QTabWidget(this)), - bottom_funcs(new QTabWidget(this)), + left_funcs(new QTabWidget(this)), right_funcs(new QTabWidget(this)), + center_funcs(new QTabWidget(this)), bottom_funcs(new QTabWidget(this)), project_manager(new XMLProjectManager(this)), welcome_list(new QListView(this)), project_present(new ProjectPresent(app_core, this)), docs_container(new DocumentsManager(app_core, project_manager, this)), - chains_view(new StorychainsPresent(app_core, this)), - units_view(new StoryunitsPresent(app_core, this)), + chains_view(new StorychainsPresent(app_core->disp_core, this)), + units_view(new StoryunitsPresent(app_core->disp_core, this)), errors_present(new MessagePresent(app_core->getMakeCore(), this)), boards_view(new StoryBoardsPresent(app_core, this)), - concept_view(new StoryConceptsPresent(app_core, this)), - fragments_order(new FragmentsOrderView(app_core, this)) -{ + concept_view(new StoryconceptsPresent(app_core, this)), + fragments_order(new FragmentsOrderView(app_core, this)) { QApplication::instance()->installEventFilter(this); this->app_core->setCurrentProject(project_manager); this->app_core->disp_core->registerMember(docs_container); diff --git a/WordsIDE/mainwindow.h b/WordsIDE/mainwindow.h index 5166fb1..c24bfcb 100644 --- a/WordsIDE/mainwindow.h +++ b/WordsIDE/mainwindow.h @@ -50,7 +50,7 @@ private: Components::StoryunitsPresent *const units_view; Components::MessagePresent *const errors_present; Components::StoryBoardsPresent *const boards_view; - Components::StoryConceptsPresent *const concept_view; + Components::StoryconceptsPresent *const concept_view; Components::FragmentsOrderView *const fragments_order; // 内部逻辑 ===========================================