Envision
A visual programming IDE for object-oriented languages
|
The EnvisionManager interface provides various information about the Envision system. More...
Public Types | |
using | EventPrePostAction = std::function< void(QObject *receiver, QEvent *event)> |
Public Member Functions | |
~EnvisionManager () | |
void | addPostEventAction (EventPrePostAction action) |
Adds action to the list of actions that will be executed after dispatching an event. More... | |
void | addPreEventAction (EventPrePostAction action) |
Adds action to the list of actions that will be executed prior to dispatching an event. More... | |
bool | areSelfTestsPending () const |
Returns true if there are any self tests that will be run after all plug-ins have been initialized. More... | |
void | exit () |
QList< PluginInfo > | getAllLoadedPluginsInfo () |
Returns a list of all the plug-ins currently loaded in the system. More... | |
QMainWindow * | getMainWindow () |
Returns the main window of the application. More... | |
Static Public Member Functions | |
static void | processPostEventActions (QObject *receiver, QEvent *event) |
static void | processPreEventActions (QObject *receiver, QEvent *event) |
Private Member Functions | |
void | setMainWindow (QMainWindow *mainWindow) |
void | setPluginManager (PluginManager *pm) |
void | setTestRunner (TestRunner *tr) |
Static Private Member Functions | |
static QList< EventPrePostAction > & | postEventActions () |
static QList< EventPrePostAction > & | preEventActions () |
Private Attributes | |
bool | exitSet_ {} |
QMainWindow * | mainWindow_ {} |
PluginManager * | pm_ {} |
TestRunner * | testRunner_ {} |
Friends | |
int | coreMain (int argc, char *argv[]) |
This function is executed when Envision is started. More... | |
The EnvisionManager interface provides various information about the Envision system.
An instance of an object implementing this interface is passed to each plug-in that is loaded in the system.
using Core::EnvisionManager::EventPrePostAction = std::function<void (QObject* receiver, QEvent* event)> |
Core::EnvisionManager::~EnvisionManager | ( | ) |
void Core::EnvisionManager::addPostEventAction | ( | EventPrePostAction | action | ) |
Adds action to the list of actions that will be executed after dispatching an event.
The provided action function will be called after any event for any object is dispatched.
void Core::EnvisionManager::addPreEventAction | ( | EventPrePostAction | action | ) |
Adds action to the list of actions that will be executed prior to dispatching an event.
The provided action function will be called before any event for any object is dispatched.
bool Core::EnvisionManager::areSelfTestsPending | ( | ) | const |
Returns true if there are any self tests that will be run after all plug-ins have been initialized.
void Core::EnvisionManager::exit | ( | ) |
QList< PluginInfo > Core::EnvisionManager::getAllLoadedPluginsInfo | ( | ) |
Returns a list of all the plug-ins currently loaded in the system.
If this method is called during the initialization phase of Envision, only the plug-ins loaded so far will be included in the list. If a list of all plug-ins is needed, make sure to call this method after Envision has been fully initialized.
QMainWindow * Core::EnvisionManager::getMainWindow | ( | ) |
Returns the main window of the application.
This can be used by visualization plug-ins to draw custom components.
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
private |
|
private |
|
private |
|
friend |
This function is executed when Envision is started.
It shows the main window, loads all plug-ins and starts the event loop.
|
private |
|
private |
|
private |
|
private |