QtNovelUI/WordsIDE/xapp.h

44 lines
1.0 KiB
C
Raw Permalink Normal View History

2023-03-17 13:58:38 +00:00
#ifndef XAPPLICATION_H
#define XAPPLICATION_H
#include "manager_docs.h"
#include "parsebridge.h"
2023-03-17 13:58:38 +00:00
#include <QApplication>
#include <commandsdispatcher.h>
2023-08-27 14:09:46 +00:00
#include <libConfig.h>
#include <libProjectManager.h>
2023-03-17 13:58:38 +00:00
2024-02-14 05:27:15 +00:00
namespace Components {
class ExtendView;
}
2023-03-17 13:58:38 +00:00
class XApp : public QApplication {
public:
XApp(int argc, char **argv);
virtual bool notify(QObject *receiver, QEvent *event);
2024-02-14 05:27:15 +00:00
QList<Components::ExtendView*> viewTemplates() const;
bridge::ParseBridge *parseService() const;
Project::ProjectManager *pjtManager() const;
2024-02-14 05:27:15 +00:00
Core::DocumentsManager *docsPort() const;
Schedule::CommandsDispatcher *cmdsPort() const;
QStandardItemModel* messageModel() const;
private:
bridge::ParseBridge *const parse_service;
Project::ProjectManager *const project_manager;
Core::DocumentsManager *const active_docscollect;
2024-02-14 05:27:15 +00:00
Schedule::CommandsDispatcher *const disp_core;
Config::Configration *const gconfig;
void init_commands(Schedule::CommandsDispatcher *core);
2023-03-17 13:58:38 +00:00
};
#endif // XAPPLICATION_H