mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refs #392 Added BlackGui::IPluginConfig
* BlackGui::IPluginConfig is an interface for plugin configurations * Added plugin_xplane_config target * Adapted IPluginManager * Adapted CPluginManagerSimulator * Adaptem CSettingsSimulatorComponent
This commit is contained in:
committed by
Mathew Sutcliffe
parent
584616de7a
commit
a0b4d47736
@@ -35,6 +35,9 @@ namespace BlackGui
|
||||
//! Emitted when user clicks the "Details" button
|
||||
void pluginDetailsRequested(const QString &identifier);
|
||||
|
||||
//! Emitted when user clicks the "Settings" button
|
||||
void pluginConfigRequested(const QString &identifier);
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CPluginSelector(QWidget *parent = 0);
|
||||
@@ -43,13 +46,14 @@ namespace BlackGui
|
||||
//! \param identifier Identifier of the plugin.
|
||||
//! \param name Name of the plugin
|
||||
//! \param enabled Defines whether the plugin is initially enabled or not
|
||||
void addPlugin(const QString &identifier, const QString &name, bool enabled = true);
|
||||
void addPlugin(const QString &identifier, const QString &name, bool hasConfig = false, bool enabled = true);
|
||||
|
||||
private slots:
|
||||
void ps_handlePluginStateChange();
|
||||
|
||||
private:
|
||||
QSignalMapper *m_mapper;
|
||||
QSignalMapper *m_detailsButtonMapper;
|
||||
QSignalMapper *m_configButtonMapper;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user