ARB
Public Member Functions | List of all members
AWT_configuration Class Reference
Inheritance diagram for AWT_configuration:
Inheritance graph
[legend]
Collaboration diagram for AWT_configuration:
Collaboration graph
[legend]

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 configure_manager_window (const manager_window_def &mw_def)
 
void configure_manager_window_popping_up_from (AW_window *aww)
 
const char * get_macro_id () const
 
const char * get_title () const
 
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
 
void erase_all_managed_configs ()
 

Additional Inherited Members

- Static Public Member Functions inherited from ConfigDefinition
static bool have_existing_config (AW_default default_file_, const string &id_)
 

Detailed Description

Definition at line 135 of file config_manager.cxx.

Constructor & Destructor Documentation

AWT_configuration::AWT_configuration ( AW_default  default_file_,
const char *  id_,
const StoreConfigCallback &  store_,
const RestoreConfigCallback &  load_or_reset_,
const AWT_predefined_config *  predef 
)
inline

Definition at line 149 of file config_manager.cxx.

Member Function Documentation

string AWT_configuration::get_config ( const string &  cfgname)
inline
GB_ERROR AWT_configuration::set_config ( const string &  cfgname,
const string &  new_value 
)
inline
char* AWT_configuration::Store ( ) const
inline

Definition at line 189 of file config_manager.cxx.

Referenced by store_cb().

GB_ERROR AWT_configuration::Restore ( const string &  s) const
inline

Definition at line 190 of file config_manager.cxx.

References error(), and NULp.

Referenced by restore_cb().

void AWT_configuration::Reset ( ) const
inline

Definition at line 198 of file config_manager.cxx.

References NULp.

Referenced by reset_cb().

GB_ERROR AWT_configuration::Save ( const char *  filename,
const string &  cfg_name,
const string &  comment 
)

Definition at line 262 of file 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 
)
bool AWT_configuration::has_existing ( string  lookFor)
inline
void AWT_configuration::erase_deleted_configs ( )
void AWT_configuration::add_predefined_to ( ConstStrArray &  cfgs)
inline
const AWT_predefined_config* AWT_configuration::find_predefined ( const string &  cfgname)
inline
void AWT_configuration::configure_manager_window ( const manager_window_def &  mw_def)
inline

Definition at line 233 of file config_manager.cxx.

Referenced by AWT_insert_config_manager().

void AWT_configuration::configure_manager_window_popping_up_from ( AW_window *  aww)
inline
const char* AWT_configuration::get_macro_id ( ) const
inline

Definition at line 240 of file config_manager.cxx.

References awt_assert, and manager_window_def::macro_id.

Referenced by create_config_manager_window().

const char* AWT_configuration::get_title ( ) const
inline

Definition at line 245 of file config_manager.cxx.

References awt_assert, and manager_window_def::title.

Referenced by create_config_manager_window().

void AWT_configuration::popup_edit_window ( AW_window *  aw_config)
void AWT_configuration::update_field_selection_list ( )

Definition at line 614 of file config_manager.cxx.

References CURRENT_CFG, GBS_global_string(), max, and SELECTED_FIELD.

Referenced by current_changed_cb().

void AWT_configuration::update_field_content ( )
void AWT_configuration::store_changed_field_content ( )
void AWT_configuration::delete_selected_field ( )

Definition at line 700 of file 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 ( )

The documentation for this class was generated from the following file: