dRonin
adbada4
dRonin GCS
|
The ICore class allows access to the different part that make up the basic functionality of the GCS. More...
#include <icore.h>
Signals | |
void | coreAboutToOpen () |
void | coreOpened () |
Emitted after all plugins have been loaded and the main window shown. More... | |
void | saveSettingsRequested () |
Emitted to signal that the user has requested that the global settings should be saved to disk. More... | |
void | optionsDialogRequested () |
Signal that allows plugins to perform actions just before the {Tools|Options} dialog is shown. More... | |
void | coreAboutToClose () |
Plugins can do some pre-end-of-life actions when they get this signal. More... | |
void | contextAboutToChange (Core::IContext *context) |
Sent just before a new context becomes the current context (meaning that its widget got focus). More... | |
void | contextChanged (Core::IContext *context) |
Sent just after a new context became the current context (meaning that its widget got focus). More... | |
Public Member Functions | |
ICore () | |
virtual | ~ICore () |
virtual bool | showOptionsDialog (const QString &group=QString(), const QString &page=QString(), QWidget *parent=nullptr)=0 |
Opens the application options/preferences dialog with preselected page in a specified group. More... | |
virtual ActionManager * | actionManager () const =0 |
Returns the application's action manager. More... | |
virtual UniqueIDManager * | uniqueIDManager () const =0 |
Returns the application's id manager. More... | |
virtual ModeManager * | modeManager () const =0 |
Returns the application's mode manager. More... | |
virtual ConnectionManager * | connectionManager () const =0 |
virtual GlobalMessaging * | globalMessaging () const =0 |
virtual BoardManager * | boardManager () const =0 |
virtual UAVGadgetInstanceManager * | uavGadgetInstanceManager () const =0 |
virtual QSettings * | settings (QSettings::Scope scope=QSettings::UserScope) const =0 |
Returns the application's main settings object. More... | |
virtual void | readMainSettings (QSettings *qs, bool workspaceDiffOnly=false)=0 |
virtual void | saveMainSettings (QSettings *qs)=0 |
virtual void | readSettings (IConfigurablePlugin *plugin, QSettings *qs=nullptr)=0 |
virtual void | saveSettings (IConfigurablePlugin *plugin, QSettings *qs=nullptr)=0 |
virtual void | deleteSettings ()=0 |
virtual QString | resourcePath () const =0 |
Returns the absolute path that is used for resources like project templates and the debugger macros. More... | |
virtual QMainWindow * | mainWindow () const =0 |
Returns the main application window. More... | |
virtual IContext * | currentContextObject () const =0 |
Returns the context object of the current main context. More... | |
virtual void | addAdditionalContext (int context)=0 |
Register additional context to be currently active. More... | |
virtual void | removeAdditionalContext (int context)=0 |
Removes the given context from the list of currently active contexts. More... | |
virtual bool | hasContext (int context) const =0 |
Returns if the given context is currently one of the active contexts. More... | |
virtual void | addContextObject (IContext *context)=0 |
Registers an additional context object. More... | |
virtual void | removeContextObject (IContext *context)=0 |
Unregisters a context object from the list of know contexts. More... | |
virtual void | updateContext ()=0 |
Update the list of active contexts after adding or removing additional ones. More... | |
virtual void | openFiles (const QStringList &fileNames)=0 |
Open all files from a list of fileNames like it would be done if they were given to the GCS on the command line, or they were opened via {File|Open}. More... | |
Static Public Member Functions | |
static ICore * | instance () |
The ICore class allows access to the different part that make up the basic functionality of the GCS.
You should never create a subclass of this interface. The one and only instance is created by the Core plugin. You can access this instance from your plugin through {Core::instance()}.