ARB
|
Public Member Functions | |
AWT_configuration (AW_default default_file_, const char *id_, const StoreConfigCallback &store_, const RestoreConfigCallback &load_or_reset_, const AWT_predefined_config *predef) | |
string | get_config (const string &cfgname) |
GB_ERROR | set_config (const string &cfgname, const string &new_value) |
char * | Store () const |
GB_ERROR | Restore (const string &s) const |
void | Reset () const |
GB_ERROR | Save (const char *filename, const string &cfg_name, const string &comment) |
GB_ERROR | Load (const char *filename, const string &cfg_name, string &found_comment) |
bool | has_existing (string lookFor) |
void | erase_deleted_configs () |
void | add_predefined_to (ConstStrArray &cfgs) |
const AWT_predefined_config * | find_predefined (const string &cfgname) |
void | popup_edit_window (AW_window *aw_config) |
void | update_field_selection_list () |
void | update_field_content () |
void | store_changed_field_content () |
void | delete_selected_field () |
void | keep_changed_fields () |
Public Member Functions inherited from ConfigDefinition | |
ConfigDefinition (AW_default default_file_, const char *id_) | |
bool | operator< (const ConfigDefinition &other) const |
AW_default | get_db () const |
const char * | get_id () const |
string | get_awar_name (const string &subname, bool temp=false) const |
string | get_config_dbpath (const string &cfgname) const |
AW_awar * | get_awar (const string &subname, bool temp=false) const |
AW_awar * | get_awar (ConfigAwar a) const |
string | get_awar_value (ConfigAwar a) const |
void | set_awar_value (ConfigAwar a, const string &new_value) const |
Definition at line 87 of file AWT_config_manager.cxx.
|
inline |
Definition at line 99 of file AWT_config_manager.cxx.
Definition at line 109 of file AWT_config_manager.cxx.
References AWT_predefined_config::config, GB_FIND, GB_read_char_pntr(), GB_search(), is_prefined(), and ta.
Referenced by restore_cb().
Definition at line 120 of file AWT_config_manager.cxx.
References CURRENT_CFG, error(), GB_await_error(), GB_search(), GB_STRING, GB_write_string(), is_prefined(), and ta.
Referenced by store_cb().
|
inline |
Definition at line 139 of file AWT_config_manager.cxx.
Referenced by store_cb().
Definition at line 140 of file AWT_config_manager.cxx.
Referenced by restore_cb().
|
inline |
GB_ERROR AWT_configuration::Save | ( | const char * | filename, |
const string & | cfg_name, | ||
const string & | comment | ||
) |
Definition at line 194 of file AWT_config_manager.cxx.
References awt_assert, ConfigMapping::encode_escapes(), error(), fputs(), GB_IO_error(), HEADER, HEADERLEN, and NULp.
Referenced by save_cb().
GB_ERROR AWT_configuration::Load | ( | const char * | filename, |
const string & | cfg_name, | ||
string & | found_comment | ||
) |
Definition at line 221 of file AWT_config_manager.cxx.
References ConfigMapping::decode_escapes(), error(), GB_await_error(), GB_read_file(), GBS_global_string(), HEADER, HEADERLEN, arb_test::nl(), and NULp.
Referenced by load_cb().
|
inline |
Definition at line 155 of file AWT_config_manager.cxx.
References EXISTING_CFGS.
Referenced by comment_changed_cb(), and current_changed_cb().
void AWT_configuration::erase_deleted_configs | ( | ) |
Definition at line 271 of file AWT_config_manager.cxx.
References ARB_strBeginsWith(), aw_message_if(), error(), GB_child(), GB_delete(), GB_FIND, GB_nextChild(), GB_read_key_pntr(), GB_search(), get_awar_name(), NULp, and ta.
Referenced by delete_cb().
|
inline |
Definition at line 165 of file AWT_config_manager.cxx.
References awt_assert, AWT_predefined_config::name, and ConstStrArray::put().
Referenced by refresh_config_sellist_cb().
|
inline |
Definition at line 173 of file AWT_config_manager.cxx.
References awt_assert, is_prefined(), AWT_predefined_config::name, and NULp.
Referenced by comment_changed_cb(), and current_changed_cb().
void AWT_configuration::popup_edit_window | ( | AW_window * | aw_config | ) |
Definition at line 695 of file AWT_config_manager.cxx.
References AW_POPDOWN(), CURRENT_CFG, delete_field_cb(), FIELD_CONTENT, field_content_changed_cb(), GBS_global_string_copy(), AW_window::get_root(), AW_window::get_window_id(), keep_changed_fields_cb(), makeHelpCallback(), NULp, SELECTED_FIELD, and selected_field_changed_cb().
Referenced by edit_cb().
void AWT_configuration::update_field_selection_list | ( | ) |
Definition at line 546 of file AWT_config_manager.cxx.
References CURRENT_CFG, GBS_global_string(), max, and SELECTED_FIELD.
Referenced by current_changed_cb().
void AWT_configuration::update_field_content | ( | ) |
Definition at line 585 of file AWT_config_manager.cxx.
References CURRENT_CFG, FIELD_CONTENT, GBS_global_string(), AWT_config::get_entry(), and SELECTED_FIELD.
Referenced by selected_field_changed_cb().
void AWT_configuration::store_changed_field_content | ( | ) |
Definition at line 612 of file AWT_config_manager.cxx.
References aw_message_if(), CURRENT_CFG, FIELD_CONTENT, AWT_config::get_entry(), and SELECTED_FIELD.
Referenced by field_content_changed_cb().
void AWT_configuration::delete_selected_field | ( | ) |
Definition at line 632 of file AWT_config_manager.cxx.
References aw_message_if(), CURRENT_CFG, AWT_config::delete_entry(), and SELECTED_FIELD.
Referenced by delete_field_cb().
void AWT_configuration::keep_changed_fields | ( | ) |
Definition at line 649 of file AWT_config_manager.cxx.
References aw_message(), aw_message_if(), CURRENT_CFG, GBS_global_string(), AWT_config::get_entry(), AWT_config::has_entry(), and CharPtrArray::size().
Referenced by keep_changed_fields_cb().