QtNovelUI/WordsIDE/xapp.h

35 lines
861 B
C
Raw 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
class XApp : public QApplication {
public:
XApp(int argc, char **argv);
virtual bool notify(QObject *receiver, QEvent *event);
bridge::ParseBridge *parseService() const;
Project::ProjectManager *pjtManager() const;
Core::DocumentsManager *docsManager() const;
public:
2023-03-17 13:58:38 +00:00
static Schedule::CommandsDispatcher *const disp_core;
static Config::Configration *const gconfig;
private:
bridge::ParseBridge *const parse_service;
Project::ProjectManager *const project_manager;
Core::DocumentsManager *const active_docscollect;
void init_commands(Schedule::CommandsDispatcher *core);
2023-03-17 13:58:38 +00:00
};
#endif // XAPPLICATION_H