QCAD
Open Source 2D CAD
|
Interface for all C++ QCAD plugins. More...
#include <RPluginInterface.h>
Public Types | |
enum | InitStatus { GotSplashWindow, AddOnsInitialized, ActionsAdded, GotMainWindowBeforeShow, GotMainWindow, LoadedFiles, ScriptsExecuted, AllDone } |
Public Member Functions | |
virtual bool | checkLicense ()=0 |
virtual RPluginInfo | getPluginInfo ()=0 |
virtual bool | init ()=0 |
Called immediately after the plugin has been loaded, directly after starting the application. More... | |
virtual void | initScriptExtensions (QScriptEngine &engine)=0 |
Called whenever a new script engine is instantiated. More... | |
virtual void | initTranslations ()=0 |
Called when the user chosen language changed. More... | |
virtual void | postInit (RPluginInterface::InitStatus status)=0 |
Called after the application has been fully loaded, directly before entering the main event loop. More... | |
virtual void | uninit (bool remove=false)=0 |
Called before a plugin is removed / unloaded. More... | |
virtual | ~RPluginInterface () |
Interface for all C++ QCAD plugins.
|
inlinevirtual |
|
pure virtual |
Implemented in RDxfPlugin, and RScriptsPlugin.
|
pure virtual |
This is typically used by an about dialog or debugging / developer tools.
Implemented in RDxfPlugin, and RScriptsPlugin.
|
pure virtual |
Called immediately after the plugin has been loaded, directly after starting the application.
Implementations typically perform plugin initialization, registration of file importers, exporter, etc.
Implemented in RDxfPlugin, and RScriptsPlugin.
|
pure virtual |
Called whenever a new script engine is instantiated.
Implementations may register their own script extensions by making C / C++ code scriptable.
Implemented in RScriptsPlugin, and RDxfPlugin.
|
pure virtual |
Called when the user chosen language changed.
Implemented in RDxfPlugin, and RScriptsPlugin.
|
pure virtual |
Called after the application has been fully loaded, directly before entering the main event loop.
Implementations typically perform initialization that depends on the application being up and running.
Implemented in RDxfPlugin, and RScriptsPlugin.
|
pure virtual |
Called before a plugin is removed / unloaded.
Implemented in RDxfPlugin, and RScriptsPlugin.