mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
refs #443 Add simulator enable/disable option
* Added CPluginSelector widget * IContextSimulator starts/stops only specified listener(s) * No more "auto" CSimulatorPluginInfo
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a4f0007414
commit
4d772050b0
50
src/blackgui/pluginselector.h
Normal file
50
src/blackgui/pluginselector.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/* Copyright (C) 2014
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef PLUGINSELECTOR_H
|
||||
#define PLUGINSELECTOR_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
namespace BlackGui {
|
||||
|
||||
/*!
|
||||
* \brief The CPluginSelector class is used to select which plugins are to be loaded
|
||||
* and (optionally) configure them.
|
||||
*/
|
||||
class BLACKGUI_EXPORT CPluginSelector : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
signals:
|
||||
//! Emitted when user enables/disables the particular plugin
|
||||
void pluginStateChanged(QString identifier, bool enabled);
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CPluginSelector(QWidget *parent = 0);
|
||||
|
||||
//! Adds the new plugin to the list.
|
||||
//! \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);
|
||||
|
||||
private slots:
|
||||
void ps_handlePluginStateChange();
|
||||
|
||||
};
|
||||
|
||||
} // namespace BlackGui
|
||||
|
||||
#endif // PLUGINSELECTOR_H
|
||||
Reference in New Issue
Block a user