27 #ifndef _LIBHERAIA_USER_PREFS_H_
28 #define _LIBHERAIA_USER_PREFS_H_
37 #define GN_GLOBAL_PREFS "Global Preferences"
38 #define GN_DISPLAY_PREFS "Display Preferences"
39 #define GN_DI_PREFS "Data Interpretor Preferences"
40 #define GN_MPWP_PREFS "Main Preferences Window Preferences"
42 #define KN_SAVE_WINDOW_PREFS "Save Window Preferences"
43 #define KN_ABOUT_BOX "About Box"
44 #define KN_DATA_INTERPRETOR "Data Interpretor"
45 #define KN_LOG_BOX "Log Box"
46 #define KN_MAIN_DIALOG "Main Dialog"
47 #define KN_PLUGIN_LIST "Plugin List"
48 #define KN_LDT "List Data Types"
49 #define KN_MAIN_PREFS "Main Preferences"
50 #define KN_GOTO_DIALOG "Goto Dialog"
51 #define KN_RESULT_WINDOW "Result Window"
52 #define KN_FIND_WINDOW "Find Window"
53 #define KN_FR_WINDOW "Find and Replace Window"
54 #define KN_FDFT_WINDOW "Find data from type Window"
56 #define KN_SAVE_OPENED_FILES_FILENAMES "Opened files filenames"
57 #define KN_FILES_FILENAMES "Files filenames"
58 #define KN_FILES_CURSOR_POSITIONS "Files cursor positions"
59 #define KN_CURRENT_TAB "Main current tab"
62 #define KN_DISP_THOUSAND "Thousand"
63 #define KN_DISP_OFFSETS "Offsets"
65 #define KN_DI_SELECTED_TAB "Selected Tab"
66 #define KN_DI_STREAM_SIZE "Stream Size"
67 #define KN_DI_ENDIANNESS "Endianness"
69 #define KN_MPWP_SELECTED_TAB "Selected Tab"
This is the main structure.
prefs_t * init_preference_struct(gchar *pathname, gchar *filename)
Look out if the preference structure exists or not.
Data type related to preferences.
void free_preference_struct(prefs_t *prefs)
Destroys a preference structure.
void save_preferences(heraia_struct_t *main_struct, prefs_t *prefs)
Save all preferences to the user preference file.
void verify_preference_file(prefs_t *prefs)
Verify preference file presence and creates it if it does not already exists.
void load_preferences(heraia_struct_t *main_struct, prefs_t *prefs)
Sets up the preferences as loaded in the preference file.