user_prefs.h File Reference


Detailed Description

Header file for user preferences.

Definition in file user_prefs.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GN_GLOBAL_PREFS   "Global Preferences"
#define GN_DISPLAY_PREFS   "Display Preferences"
#define KN_SAVE_WINDOW_PREFS   "Save Window Preferences"
#define KN_ABOUT_BOX   "About Box"
#define KN_DATA_INTERPRETOR   "Data Interpretor"
#define KN_LOG_BOX   "Log Box"
#define KN_MAIN_DIALOG   "Main Dialog"
#define KN_PLUGIN_LIST   "Plugin List"
#define KN_LDT   "List Data Types"
#define KN_MAIN_PREFS   "Main Preferences"
#define KN_DISP_THOUSAND   "Thousand"

Functions

void verify_preference_file (gchar *pathname, gchar *filename)
 Verify preference file presence and creates it if it does not already exists.
void save_main_preferences (heraia_window_t *main_window)
 Save all preferences to the user preference file.
void setup_preferences (heraia_window_t *main_window)
 Sets up the preferences as loaded in the preference file.


Define Documentation

#define GN_DISPLAY_PREFS   "Display Preferences"

#define GN_GLOBAL_PREFS   "Global Preferences"

Note:
GN == Group Name KN == Key Name Thoses variables are the ones to use in the main preference file

Definition at line 36 of file user_prefs.h.

Referenced by load_mp_file_preferences_options(), load_window_preferences(), save_mp_file_preferences_options(), and save_window_preferences().

#define KN_ABOUT_BOX   "About Box"

#define KN_DATA_INTERPRETOR   "Data Interpretor"

#define KN_DISP_THOUSAND   "Thousand"

#define KN_LDT   "List Data Types"

#define KN_LOG_BOX   "Log Box"

#define KN_MAIN_DIALOG   "Main Dialog"

#define KN_MAIN_PREFS   "Main Preferences"

#define KN_PLUGIN_LIST   "Plugin List"

#define KN_SAVE_WINDOW_PREFS   "Save Window Preferences"


Function Documentation

void save_main_preferences ( heraia_window_t main_window  ) 

Save all preferences to the user preference file.

Parameters:
main_window the main structure

Definition at line 209 of file user_prefs.c.

References heraia_window_t::prefs, save_mp_display_preferences_options(), save_mp_file_preferences_options(), and save_preferences_to_file().

Referenced by close_heraia(), and pref_window_delete().

Here is the call graph for this function:

Here is the caller graph for this function:

setup_preferences ( heraia_window_t main_window  ) 

Sets up the preferences as loaded in the preference file.

Parameters:
main_window the main structure

Definition at line 322 of file user_prefs.c.

References load_mp_display_preferences_options(), and load_mp_file_preferences_options().

Referenced by load_heraia_ui().

Here is the call graph for this function:

Here is the caller graph for this function:

verify_preference_file ( gchar *  pathname,
gchar *  filename 
)

Verify preference file presence and creates it if it does not already exists.

Parameters:
pathname is the full pathname
filename is the filename containing the path itself

Definition at line 102 of file user_prefs.c.

References verify_preference_file_name_presence(), and verify_preference_file_path_presence().

Referenced by heraia_init_main_struct().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Sat Feb 14 11:44:19 2009 for Heraia by  doxygen 1.5.6