|
| | CSettingString (const std::string &id, CSettingsManager *settingsManager=nullptr) |
| |
| | CSettingString (const std::string &id, const CSettingString &setting) |
| |
| | CSettingString (const std::string &id, int label, const std::string &value, CSettingsManager *settingsManager=nullptr) |
| |
| | ~CSettingString () override=default |
| |
| std::shared_ptr< CSetting > | Clone (const std::string &id) const override |
| |
| bool | Deserialize (const TiXmlNode *node, bool update=false) override |
| | Deserializes the given XML node into the properties of the setting object. More...
|
| |
| bool | FromString (const std::string &value) override |
| |
| std::string | ToString () const override |
| |
| bool | Equals (const std::string &value) const override |
| |
| bool | CheckValidity (const std::string &value) const override |
| |
| void | Reset () override |
| |
| virtual const std::string & | GetValue () const |
| |
| virtual bool | SetValue (const std::string &value) |
| |
| virtual const std::string & | GetDefault () const |
| |
| virtual void | SetDefault (const std::string &value) |
| |
| virtual bool | AllowEmpty () const |
| |
| void | SetAllowEmpty (bool allowEmpty) |
| |
| SettingOptionsType | GetOptionsType () const |
| |
| const TranslatableStringSettingOptions & | GetTranslatableOptions () const |
| |
| void | SetTranslatableOptions (const TranslatableStringSettingOptions &options) |
| |
| const StringSettingOptions & | GetOptions () const |
| |
| void | SetOptions (const StringSettingOptions &options) |
| |
| const std::string & | GetOptionsFillerName () const |
| |
| void | SetOptionsFillerName (const std::string &optionsFillerName, void *data=nullptr) |
| |
| void | SetOptionsFiller (StringSettingOptionsFiller optionsFiller, void *data=nullptr) |
| |
| StringSettingOptions | UpdateDynamicOptions () |
| |
| SettingType | GetType () const override |
| |
| | CSetting (const std::string &id, CSettingsManager *settingsManager=nullptr) |
| |
| | CSetting (const std::string &id, const CSetting &setting) |
| |
| | ~CSetting () override=default |
| |
| bool | IsEnabled () const |
| |
| void | SetEnabled (bool enabled) |
| |
| bool | IsDefault () const |
| |
| const std::string & | GetParent () const |
| |
| void | SetParent (const std::string &parentSetting) |
| |
| SettingLevel | GetLevel () const |
| |
| void | SetLevel (SettingLevel level) |
| |
| std::shared_ptr< const ISettingControl > | GetControl () const |
| |
| std::shared_ptr< ISettingControl > | GetControl () |
| |
| void | SetControl (std::shared_ptr< ISettingControl > control) |
| |
| const SettingDependencies & | GetDependencies () const |
| |
| void | SetDependencies (const SettingDependencies &dependencies) |
| |
| const std::set< CSettingUpdate > & | GetUpdates () const |
| |
| void | SetCallback (ISettingCallback *callback) |
| |
| bool | IsVisible () const override |
| | Whether the setting object is visible or hidden. More...
|
| |
| void | OnSettingAction (std::shared_ptr< const CSetting > setting) override |
| | The given setting has been activated. More...
|
| |
| | ISetting (const std::string &id, CSettingsManager *settingsManager=nullptr) |
| | Creates a new setting object with the given identifier. More...
|
| |
| virtual | ~ISetting ()=default |
| |
| const std::string & | GetId () const |
| | Gets the identifier of the setting object. More...
|
| |
| virtual void | SetVisible (bool visible) |
| | Sets the visibility state of the setting object. More...
|
| |
| int | GetLabel () const |
| | Gets the localizeable label ID of the setting group. More...
|
| |
| void | SetLabel (int label) |
| | Sets the localizeable label ID of the setting group. More...
|
| |
| int | GetHelp () const |
| | Gets the localizeable help ID of the setting group. More...
|
| |
| void | SetHelp (int help) |
| | Sets the localizeable help ID of the setting group. More...
|
| |
| virtual bool | MeetsRequirements () const |
| | Whether the setting object meets all necessary requirements. More...
|
| |
| virtual void | CheckRequirements () |
| | Checks if the setting object meets all necessary requirements. More...
|
| |
| virtual void | SetRequirementsMet (bool requirementsMet) |
| | Sets whether the setting object meets all necessary requirements. More...
|
| |
String setting implementation.
- See also
- CSetting
| bool CSettingString::Deserialize |
( |
const TiXmlNode * |
node, |
|
|
bool |
update = false |
|
) |
| |
|
overridevirtual |
Deserializes the given XML node into the properties of the setting object.
If the update parameter is true, the checks for mandatory properties are skipped and values are only updated.
- Parameters
-
| node | XML node containing the properties of the setting object |
| update | Whether to perform checks for mandatory properties or not |
- Returns
- True if deserialization was successful, false otherwise
Reimplemented from CSetting.
Reimplemented in CSettingAddon, and CSettingPath.