2022-11-06 00:37:50 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
2022-12-31 13:05:58 +00:00
|
|
|
#include "DocsManager.h"
|
2023-03-05 14:32:20 +00:00
|
|
|
#include "manager_docs.h"
|
2023-03-17 13:58:38 +00:00
|
|
|
#include "messagespresent.h"
|
2023-08-16 13:48:43 +00:00
|
|
|
#include "parsebridge.h"
|
2023-03-17 13:58:38 +00:00
|
|
|
#include "presentcontainer.h"
|
2023-03-11 07:01:28 +00:00
|
|
|
#include "projectpresent.h"
|
2022-12-01 13:54:04 +00:00
|
|
|
#include "tools.h"
|
2023-08-27 14:09:46 +00:00
|
|
|
#include "viewstackedbar.h"
|
2023-08-29 01:32:49 +00:00
|
|
|
#include "vsession.h"
|
2023-03-17 13:58:38 +00:00
|
|
|
#include "welcomepanel.h"
|
2023-03-11 07:01:28 +00:00
|
|
|
#include <QListView>
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QSplitter>
|
|
|
|
#include <QTableView>
|
|
|
|
#include <QTreeView>
|
|
|
|
#include <libProjectManager.h>
|
2023-08-27 14:09:46 +00:00
|
|
|
#include <splitpanel.h>
|
2022-11-18 23:47:32 +00:00
|
|
|
|
2023-08-27 14:09:46 +00:00
|
|
|
class MainWindow : public QMainWindow {
|
2022-11-06 00:37:50 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2023-03-11 07:01:28 +00:00
|
|
|
public:
|
2022-11-06 00:37:50 +00:00
|
|
|
MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
2022-11-11 14:38:52 +00:00
|
|
|
|
2023-08-15 14:40:40 +00:00
|
|
|
private:
|
2023-08-27 14:09:46 +00:00
|
|
|
// model ============================================
|
2022-12-01 13:54:04 +00:00
|
|
|
Tools::StatusSyncCore *const sync_kernel;
|
2023-08-16 13:48:43 +00:00
|
|
|
bridge::ParseBridge *const parse_service;
|
2022-11-15 08:07:02 +00:00
|
|
|
Project::ProjectManager *const project_manager;
|
2023-08-27 14:09:46 +00:00
|
|
|
Core::DocumentsManager *const active_docscollect;
|
2023-08-29 01:32:49 +00:00
|
|
|
SplitFrame::ViewPresent *const present_host;
|
|
|
|
Core::VSession *const session_service;
|
2023-03-17 13:58:38 +00:00
|
|
|
|
|
|
|
// view =============================================
|
2023-08-27 14:09:46 +00:00
|
|
|
Components::ViewStackedBar *const views_bar;
|
|
|
|
Components::PresentContainer *const center_frame;
|
2023-03-10 13:01:19 +00:00
|
|
|
Components::ProjectPresent *const project_present;
|
2022-11-17 08:16:54 +00:00
|
|
|
|
2022-11-15 12:58:12 +00:00
|
|
|
// 内部逻辑 ===========================================
|
2023-03-10 13:01:19 +00:00
|
|
|
void initial_menubar(QMenuBar *mbar);
|
2023-03-17 13:58:38 +00:00
|
|
|
void initial_commandlist(Schedule::CommandsDispatcher *host);
|
|
|
|
|
2022-11-17 08:16:54 +00:00
|
|
|
// QWidget interface
|
2023-03-11 07:01:28 +00:00
|
|
|
protected:
|
2022-11-17 08:16:54 +00:00
|
|
|
virtual void closeEvent(QCloseEvent *event) override;
|
2022-11-18 23:47:32 +00:00
|
|
|
|
|
|
|
// QObject interface
|
2023-03-11 07:01:28 +00:00
|
|
|
public:
|
2022-11-18 23:47:32 +00:00
|
|
|
virtual bool eventFilter(QObject *watched, QEvent *event) override;
|
2022-11-06 00:37:50 +00:00
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|