Module omix.api
Package omix.plugin.ui
Interface ConfigWidgetFactory<T extends QWidget & ConfigWidgetInterface>
public interface ConfigWidgetFactory<T extends QWidget & ConfigWidgetInterface>
This interface has to be derived by a custom plugin class in order to implement a
config widget as part of the configuration dialog window.
A custom class implementing
A custom class implementing
ConfigWidgetFactory
can be registered at the Omix Plugin Manager:<ConfigWidgetFactory>mypackage.MyConfigWidgetFactory</ConfigWidgetFactory>
- Since:
- Omix 1.3.11
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description T
newConfigWidget(QWidget parent, Settings settings)
This method is called by the Plugin Manager every time the configuration dialog is opened.
-
Method Details
-
newConfigWidget
This method is called by the Plugin Manager every time the configuration dialog is opened. The role of this method is to create the ConfigWidget.
The custom implementation of this method must instantiate an arbitrary subclass of QWidget implementing the interfaceConfigWidgetInterface
.- Parameters:
parent
- widgetsettings
- access to the settings file- Returns:
- an instance of
ConfigWidgetInterface
-