mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +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
@@ -39,21 +39,11 @@ namespace BlackMisc
|
||||
return m_identifier.isEmpty();
|
||||
}
|
||||
|
||||
bool CSimulatorPluginInfo::isAuto() const
|
||||
{
|
||||
return (*this) == autoPlugin();
|
||||
}
|
||||
|
||||
QString CSimulatorPluginInfo::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
return QString("%1 (%2)").arg(m_name, m_identifier);
|
||||
}
|
||||
|
||||
const CSimulatorPluginInfo &CSimulatorPluginInfo::autoPlugin()
|
||||
{
|
||||
static const CSimulatorPluginInfo p("auto", "auto", "auto", "automatic plugin selection", false);
|
||||
return p;
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -56,15 +56,9 @@ namespace BlackMisc
|
||||
//! Description
|
||||
const QString &getDescription() const { return m_description; }
|
||||
|
||||
//! Special info of type auto?
|
||||
bool isAuto() const;
|
||||
|
||||
//! \copydoc CValueObject::convertToQString
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
//! Info representing a entry representing automatic plugin selection
|
||||
static const CSimulatorPluginInfo &autoPlugin();
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CSimulatorPluginInfo)
|
||||
QString m_identifier;
|
||||
|
||||
Reference in New Issue
Block a user