API Documentation
|
The default object to store data of any type that should persist through sessions of the application. More...
#include <ApplicationOptions.h>
Public Member Functions | |
void | addListener (ResourceListener *listener, bool silent_add=false) |
ApplicationOption (const TranslatedString &group, const TranslatedString &label, const t_type &value, ApplicationOptions &options=ApplicationOptions::UserOptions()) | |
ApplicationOption (const TranslatedString &label, const t_type &value, ApplicationOptions &options=ApplicationOptions::UserOptions()) | |
virtual void | fromString (const String &value) override |
t_type | get () const |
Resource< t_type > & | getResource () |
const TranslatedString & | group () const |
virtual INIOption * | iniOption () override |
virtual bool | isDefault () const override |
const TranslatedString & | label () const |
void | set (const t_type &value, bool make_default=false) |
void | setDefaultValue (const t_type &value) |
virtual void | setToDefaultValue () override |
virtual String | toString () const override |
Public Member Functions inherited from ApplicationOptionBase | |
virtual | ~ApplicationOptionBase () |
Protected Attributes | |
t_type | m_default_value |
const TranslatedString | m_group |
const TranslatedString | m_label |
ApplicationOptions & | m_options |
Resource< t_type > | m_value |
The default object to store data of any type that should persist through sessions of the application.
Class: ApplicationOption
Stores data of any type that can easily be saved or retrieved at runtime. Option belongs to a specific group for easy sorting and can be used to automatically generate widgets.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements ApplicationOptionBase.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements ApplicationOptionBase.
|
inlineoverridevirtual |
Implements ApplicationOptionBase.
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements ApplicationOptionBase.
|
inlineoverridevirtual |
Implements ApplicationOptionBase.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |