43 lines
1.1 KiB
C
43 lines
1.1 KiB
C
|
#ifndef SESSIONBINDER_H
|
||
|
#define SESSIONBINDER_H
|
||
|
|
||
|
#include "project_view.h"
|
||
|
|
||
|
#include <QList>
|
||
|
#include <QMainWindow>
|
||
|
#include <QStandardItemModel>
|
||
|
#include <libConfig.h>
|
||
|
#include <present_container.h>
|
||
|
#include <SplitWindow.h>
|
||
|
|
||
|
class MainWindow;
|
||
|
|
||
|
namespace Core {
|
||
|
class SessionBinder : public QObject {
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
SessionBinder(XApp *core);
|
||
|
|
||
|
void menus_refresh(QMenuBar *mbar, bool rebuild = false);
|
||
|
|
||
|
private:
|
||
|
split_window::SplitWindow *const bind_window;
|
||
|
Components::ProjectView *const pjt_manager;
|
||
|
Components::MessageView *const msg_present;
|
||
|
|
||
|
XApp *const bind_core;
|
||
|
|
||
|
QMenu *const project_op; // 项目文件管理
|
||
|
QMenu *const edit_op; // 单个文件编辑操作
|
||
|
QMenu *const view_op; // 窗口视图管理操作
|
||
|
QMenu *const build_op; // 编译服务
|
||
|
QMenu *const tool_op; // 拓展工具
|
||
|
QMenu *const system_op; // 系统菜单
|
||
|
|
||
|
QList<Components::ExtendView*> actived_views;
|
||
|
};
|
||
|
|
||
|
} // namespace Core
|
||
|
|
||
|
#endif // SESSIONBINDER_H
|