Go to the source code of this file.
Defines | |
#define | GN_GLOBAL_PREFS "Global Preferences" |
#define | GN_DISPLAY_PREFS "Display Preferences" |
#define | GN_DI_PREFS "Data Interpretor 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" |
#define | KN_DI_SELECTED_TAB "Selected Tab" |
Functions | |
void | verify_preference_file (gchar *pathname, gchar *filename) |
Verify preference file presence and creates it if it does not already exists. | |
void | init_preference_struct (heraia_window_t *main_window) |
look out if the preference structure exists or not. | |
void | save_preferences (heraia_window_t *main_window) |
Save all preferences to the user preference file. | |
void | load_preferences (heraia_window_t *main_window) |
Sets up the preferences as loaded in the preference file. |
Definition in file user_prefs.h.
#define GN_DI_PREFS "Data Interpretor Preferences" |
Definition at line 38 of file user_prefs.h.
Referenced by load_di_preferences(), and save_di_preferences().
#define GN_DISPLAY_PREFS "Display Preferences" |
Definition at line 37 of file user_prefs.h.
Referenced by load_mp_display_preferences_options(), and save_mp_display_preferences_options().
#define GN_GLOBAL_PREFS "Global Preferences" |
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" |
Definition at line 41 of file user_prefs.h.
Referenced by load_mp_file_preferences_options(), and save_mp_file_preferences_options().
#define KN_DATA_INTERPRETOR "Data Interpretor" |
Definition at line 42 of file user_prefs.h.
Referenced by load_mp_file_preferences_options(), and save_mp_file_preferences_options().
#define KN_DI_SELECTED_TAB "Selected Tab" |
Definition at line 51 of file user_prefs.h.
Referenced by load_di_preferences(), and save_di_preferences().
#define KN_DISP_THOUSAND "Thousand" |
Definition at line 49 of file user_prefs.h.
Referenced by load_mp_display_preferences_options(), and save_mp_display_preferences_options().
#define KN_LDT "List Data Types" |
Definition at line 46 of file user_prefs.h.
Referenced by load_mp_file_preferences_options(), and save_mp_file_preferences_options().
#define KN_LOG_BOX "Log Box" |
Definition at line 43 of file user_prefs.h.
Referenced by load_mp_file_preferences_options(), and save_mp_file_preferences_options().
#define KN_MAIN_DIALOG "Main Dialog" |
Definition at line 44 of file user_prefs.h.
Referenced by load_mp_file_preferences_options(), and save_mp_file_preferences_options().
#define KN_MAIN_PREFS "Main Preferences" |
Definition at line 47 of file user_prefs.h.
Referenced by load_mp_file_preferences_options(), and save_mp_file_preferences_options().
#define KN_PLUGIN_LIST "Plugin List" |
Definition at line 45 of file user_prefs.h.
Referenced by load_mp_file_preferences_options(), and save_mp_file_preferences_options().
#define KN_SAVE_WINDOW_PREFS "Save Window Preferences" |
Definition at line 40 of file user_prefs.h.
Referenced by load_mp_file_preferences_options(), and save_mp_file_preferences_options().
void init_preference_struct | ( | heraia_window_t * | main_window | ) |
look out if the preference structure exists or not.
If not it creates it.
main_window | the main structure |
Definition at line 114 of file user_prefs.c.
References prefs_t::file, prefs_t::filename, prefs_t::pathname, and heraia_window_t::prefs.
Referenced by heraia_init_main_struct().
void load_preferences | ( | heraia_window_t * | main_window | ) |
Sets up the preferences as loaded in the preference file.
main_window | the main structure |
Definition at line 399 of file user_prefs.c.
References load_di_preferences(), load_mp_display_preferences_options(), and load_mp_file_preferences_options().
Referenced by load_heraia_ui().
void save_preferences | ( | heraia_window_t * | main_window | ) |
Save all preferences to the user preference file.
main_window | the main structure |
Definition at line 252 of file user_prefs.c.
References heraia_window_t::prefs, save_di_preferences(), save_mp_display_preferences_options(), save_mp_file_preferences_options(), and save_preferences_to_file().
Referenced by close_heraia(), and pref_window_delete().
void verify_preference_file | ( | gchar * | pathname, | |
gchar * | filename | |||
) |
Verify preference file presence and creates it if it does not already exists.
pathname | is the full pathname | |
filename | is the filename containing the path itself |
Definition at line 101 of file user_prefs.c.
References verify_preference_file_name_presence(), and verify_preference_file_path_presence().
Referenced by heraia_init_main_struct().