#ifndef MAINWINDOW_H #define MAINWINDOW_H #include "DocsManager.h" #include "manager_docs.h" #include "messageview.h" #include "parsebridge.h" #include "presentcontainerview.h" #include "projectview.h" #include "tools.h" #include "viewsession.h" #include "viewstackedbar.h" #include "welcomepanel.h" #include #include #include #include #include #include #include class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(const QString &layout, QWidget *parent = nullptr); virtual ~MainWindow(); SplitFrame::ViewPresent *bindPresent() const; QString layoutName() const; private: QString layout_name_store; // model ============================================ Tools::StatusSyncCore *const sync_kernel; bridge::ParseBridge *const parse_service; Project::ProjectManager *const project_manager; Core::DocumentsManager *const active_docscollect; SplitFrame::ViewPresent *const present_host; Core::ViewSession *const session_service; // view ============================================= Components::ViewStackedBar *const views_bar; Components::PresentContainerView *const center_frame; Components::ProjectView *const project_present; // 内部逻辑 =========================================== void initial_menubar(QMenuBar *mbar); void initial_commandlist(Schedule::CommandsDispatcher *host); // QWidget interface protected: virtual void closeEvent(QCloseEvent *event) override; // QObject interface public: virtual bool eventFilter(QObject *watched, QEvent *event) override; }; #endif // MAINWINDOW_H