6 #ifndef SWIFT_GUI_PLUGINSELECTOR_H
7 #define SWIFT_GUI_PLUGINSELECTOR_H
10 #include <QSignalMapper>
35 void addPlugin(
const QString &identifier,
const QString &name,
bool hasConfig =
false,
bool enabled =
true);
38 void setEnabled(
const QString &identifier,
bool enabled);
48 void handlePluginStateChange();
50 QSignalMapper *m_configButtonMapper =
new QSignalMapper(
this);
Shows all available plugins in a nice list and lets user enable, disable and configure each of them.
void pluginStateChanged(const QString &identifier, bool enabled)
Emitted when user enables/disables the particular plugin.
void pluginConfigRequested(const QString &identifier)
Emitted when user clicks the "Settings" button.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.