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 | |
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()) | |
t_type | get () const |
Resource< t_type > & | getResource () |
void | set (const t_type &value, bool make_default=false) |
void | setDefaultValue (const t_type &value) |
void | addListener (ResourceListener *listener, bool silent_add=false) |
virtual String | toString () const override |
virtual void | fromString (const String &value) override |
virtual bool | isDefault () const override |
virtual void | setToDefaultValue () override |
virtual INIOption * | iniOption () override |
const TranslatedString & | label () const |
const TranslatedString & | group () const |
Public Member Functions inherited from ApplicationOptionBase | |
virtual | ~ApplicationOptionBase () |
Protected Attributes | |
const TranslatedString | m_group |
const TranslatedString | m_label |
Resource< t_type > | m_value |
ApplicationOptions & | m_options |
t_type | m_default_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
|
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 |