Updraft
1.0
Open source glider flight visualisation tool.
|
Interface to a single settings value. More...
#include <settinginterface.h>
Public Member Functions | |
virtual | ~SettingInterface () |
virtual QVariant | get ()=0 |
virtual void | set (const QVariant &value)=0 |
Sets the value of the associated setting. | |
virtual void | setDescription (const QString &newDescription)=0 |
Sets the description string for the settings dialog. | |
virtual void | setNeedsRestart (bool needsRestart)=0 |
Sets/unsets the needs_restart flag of the setting. | |
virtual void | callOnValueChanged (QObject *slotOwner, const char *slot)=0 |
Connects a slot that should be called whenever the value changes. |
Interface to a single settings value.
virtual Updraft::SettingInterface::~SettingInterface | ( | ) | [inline, virtual] |
virtual void Updraft::SettingInterface::callOnValueChanged | ( | QObject * | slotOwner, |
const char * | slot | ||
) | [pure virtual] |
Connects a slot that should be called whenever the value changes.
slotOwner | pointer to the QObject owning the target slot. |
slot | Name of the slot to be called. This can be obtained using the SLOT(foo()) syntax. |
Implemented in Updraft::Core::BasicSetting.
virtual QVariant Updraft::SettingInterface::get | ( | ) | [pure virtual] |
Implemented in Updraft::Core::BasicSetting.
virtual void Updraft::SettingInterface::set | ( | const QVariant & | value | ) | [pure virtual] |
Sets the value of the associated setting.
value | The new value of the setting. |
Implemented in Updraft::Core::BasicSetting.
virtual void Updraft::SettingInterface::setDescription | ( | const QString & | newDescription | ) | [pure virtual] |
Sets the description string for the settings dialog.
newDescription | The new description of the setting in the dialog. |
Implemented in Updraft::Core::BasicSetting.
virtual void Updraft::SettingInterface::setNeedsRestart | ( | bool | needsRestart | ) | [pure virtual] |
Sets/unsets the needs_restart flag of the setting.
This flag is used to display an asterisk next to settings that need the application to restart after their value is changed.
needsRestart | Whether the flag should be set or unset |
Implemented in Updraft::Core::BasicSetting.