|
typedef std::string | value_type |
|
typedef StateOptionHandle | handle_type |
|
typedef boost::signals2::signal< void(std::string, Core::ActionSource) > | value_changed_signal_type |
|
typedef boost::signals2::signal< void() > | optionlist_changed_signal_type |
| Signal when the option list is changed.
|
|
enum | { DO_NOT_LOAD_E = -1,
LOAD_LAST_E = 0,
DEFAULT_LOAD_E = 100
} |
|
typedef boost::signals2::signal< void() > | state_changed_signal_type |
| This signal is triggered when the state is changed.
|
|
|
| StateOption (const std::string &stateid, const std::string &default_value, const std::string &option_list) |
|
| StateOption (const std::string &stateid, const std::string &default_value, const std::vector< std::string > &option_list) |
|
virtual std::string | export_to_string () const |
| Convert the contents of the State into a string.
|
|
virtual std::string | export_list_to_string () const |
| Convert the contents of the State into a string.
|
|
virtual bool | import_from_string (const std::string &str, ActionSource source=ActionSource::NONE_E) |
| Set the State from a string.
|
|
void | set_option_list (const std::string &option_list) |
| Set the list of options from which one can choose.
|
|
void | set_option_list (const std::string &option_list, const std::string &option) |
| Set the list of options from which one can choose.
|
|
void | set_option_list (const std::vector< std::string > &option_list) |
| Set the list of options from which one can choose.
|
|
void | set_option_list (const std::vector< std::string > &option_list, const std::string &option) |
| Set the list of options from which one can choose.
|
|
std::vector< std::string > | option_list () const |
| Get the option list.
|
|
bool | is_option (const std::string &option) |
| Check whether a string is a valid option.
|
|
const std::string & | get () const |
| Get the value of the state variable.
|
|
int | index () const |
| Get the index of the value.
|
|
bool | set (const std::string &value, ActionSource source=ActionSource::NONE_E) |
| Set the value of the state variable. More...
|
|
| StateBase (const std::string &stateid) |
|
virtual bool | import_from_string (const std::string &str, Core::ActionSource source=Core::ActionSource::NONE_E)=0 |
| Set the State from a string.
|
|
void | set_is_project_data (bool is_project_data) |
| Set whether the data is part of the project data.
|
|
void | set_locked (bool locked) |
|
bool | get_locked () const |
| Query whether the variable has been designated as locked.
|
|
int | get_session_priority () const |
| Get the priority in which loading sets the states.
|
|
void | set_session_priority (int priority) |
| By default the priority is set to DEAFULT_LOAD_E.
|
|
std::string | get_stateid () const |
| Get the unique id assigned to the state variable.
|
|
bool | is_project_data () const |
| Whether the data is tagged as project data that is saved in a session.
|
|