Public Types | |
enum | ExtensionType { WorkspaceTab, ModelessWindow, ModalWindow, SpatialgraphImporter, InputdataImporter, EventsImporter, ExtraImporter, MixedImporter, SimulationListener, HomeLauncher } |
Public Member Functions | |
PluggableBuilderExtension () | |
virtual | ~PluggableBuilderExtension () |
void | setSimulationBlob (openfluid::machine::SimulationBlob *Blob) |
virtual ExtensionType | getType () const =0 |
virtual bool | isConfigurable () |
ExtensionConfig_t | getConfiguration () const |
void | setConfiguration (const ExtensionConfig_t &Config) |
Gtk::Widget * | getPrefsPanelAsWidget () |
virtual Gtk::Widget * | getExtensionAsWidget ()=0 |
virtual bool | isReadyForShowtime () const |
Protected Attributes | |
ExtensionConfig_t | m_Config |
Gtk::Widget * | m_PrefsPanelWidget |
openfluid::machine::SimulationBlob * | mp_SimulationBlob |
openfluid::builderext::PluggableBuilderExtension::PluggableBuilderExtension | ( | ) | [inline] |
virtual openfluid::builderext::PluggableBuilderExtension::~PluggableBuilderExtension | ( | ) | [inline, virtual] |
ExtensionConfig_t openfluid::builderext::PluggableBuilderExtension::getConfiguration | ( | ) | const [inline] |
Retrieves the configuration information from the extension.
virtual Gtk::Widget* openfluid::builderext::PluggableBuilderExtension::getExtensionAsWidget | ( | ) | [pure virtual] |
Returns the main widget of the extension. The kind of widget depends on the extension type. This must be overridden in derived extensions
Gtk::Widget* openfluid::builderext::PluggableBuilderExtension::getPrefsPanelAsWidget | ( | ) | [inline] |
Returns the main widget for the preferences panel of the extension. Default is NULL, so no preference panel will be shown for this extension. This should be overridden in derived extensions.
virtual ExtensionType openfluid::builderext::PluggableBuilderExtension::getType | ( | ) | const [pure virtual] |
Returns the type of the extension. This must be overridden.
Implemented in openfluid::builderext::EventsImporter, openfluid::builderext::ExtraImporter, openfluid::builderext::HomeLauncher, openfluid::builderext::InputdataImporter, openfluid::builderext::MixedImporter, openfluid::builderext::ModalWindow, openfluid::builderext::ModelessWindow, openfluid::builderext::SimulationListener, openfluid::builderext::SpatialgraphImporter, and openfluid::builderext::WorkspaceTab.
virtual bool openfluid::builderext::PluggableBuilderExtension::isConfigurable | ( | ) | [inline, virtual] |
Returns true if the extension is configurable, false otherwise.
virtual bool openfluid::builderext::PluggableBuilderExtension::isReadyForShowtime | ( | ) | const [inline, virtual] |
Returns true if the extension is currently ready to use (showtime!). Default is false, but this should be overridden in derived extensions
Reimplemented in openfluid::builderext::DataImporter, openfluid::builderext::HomeLauncher, and openfluid::builderext::SimulationListener.
void openfluid::builderext::PluggableBuilderExtension::setConfiguration | ( | const ExtensionConfig_t & | Config | ) | [inline] |
Gives the configuration information to the extension.
[in] | Config | the configuration information |
void openfluid::builderext::PluggableBuilderExtension::setSimulationBlob | ( | openfluid::machine::SimulationBlob * | Blob | ) | [inline] |
Gtk::Widget* openfluid::builderext::PluggableBuilderExtension::m_PrefsPanelWidget [protected] |