dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
BaseMode Class Reference

A base implementation of the mode interface IMode. More...

Detailed Description

A base implementation of the mode interface IMode.

basemode.h The BaseMode class can be used directly for most IMode implementations. It has setter functions for the mode properties and a convenience constructor.

The ownership of the widget is given to the BaseMode, so when the BaseMode is destroyed it deletes its widget.

A typical use case is to do the following in the init method of a plugin:

bool MyPlugin::init(QString *error_message)
{
[...]
addObject(new Core::BaseMode("mymode",
"MyPlugin.UniqueModeName",
icon,
50, // priority
new MyWidget));
[...]
}

The documentation for this class was generated from the following file: