swift
Signals | Public Member Functions | List of all members
swift::gui::CPluginSelector Class Reference

Shows all available plugins in a nice list and lets user enable, disable and configure each of them. More...

Inheritance diagram for swift::gui::CPluginSelector:
[legend]

Signals

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.
 

Public Member Functions

 CPluginSelector (QWidget *parent=nullptr)
 Constructor.
 
void addPlugin (const QString &identifier, const QString &name, bool hasConfig=false, bool enabled=true)
 Adds the new plugin to the list. More...
 
void setEnabled (const QString &identifier, bool enabled)
 Enables/disabled the given plugin.
 

Detailed Description

Shows all available plugins in a nice list and lets user enable, disable and configure each of them.

Definition at line 22 of file pluginselector.h.

Member Function Documentation

◆ addPlugin()

void swift::gui::CPluginSelector::addPlugin ( const QString &  identifier,
const QString &  name,
bool  hasConfig = false,
bool  enabled = true 
)

Adds the new plugin to the list.

Parameters
identifierIdentifier of the plugin
nameName of the plugin
hasConfigDefines whether the plugin has the corresponding config plugin or not
enabledDefines whether the plugin is initially enabled or not

Definition at line 30 of file pluginselector.cpp.


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