Definition in file heraia_io.c.
#include <libheraia.h>
Go to the source code of this file.
Functions | |
static GladeXML * | load_glade_xml_if_it_exists (char *file_to_load) |
gboolean | load_file_to_analyse (heraia_window_t *main_window, gchar *filename) |
Loads the file 'filename' to analyse and populates the corresponfing structure 'main_window' as needed thus main_window and filename must NOT be NULL pointers. | |
static GladeXML * | load_glade_xml_if_it_exists (gchar *file_to_load) |
Checks if file_to_load exists and is valid and if possible, loads it in the xml structure. | |
GladeXML * | load_glade_xml_file (GList *location_list, gchar *filename) |
loads the glade xml file ('filename') that describes an interface, tries all the paths defined in the location_list and put the definition in the 'xml' variable. | |
gboolean | load_preference_file (heraia_window_t *main_window) |
Load the preference file. | |
gboolean | save_preferences_to_file (prefs_t *prefs) |
Saves the preferences to the file preferences. |
gboolean load_file_to_analyse | ( | heraia_window_t * | main_window, | |
gchar * | filename | |||
) |
Loads the file 'filename' to analyse and populates the corresponfing structure 'main_window' as needed thus main_window and filename must NOT be NULL pointers.
main_window | : main structure (it must not be NULL) | |
filename | : filename of the file to load (it must not be NULL) |
Definition at line 40 of file heraia_io.c.
References heraia_window_t::current_DW, data_window_t::current_hexwidget, heraia_window_t::filename, heraia_get_widget(), heraia_hex_document_new(), log_message(), xml_t::main, set_notebook_tab_name(), update_main_window_name(), and heraia_window_t::xmls.
Referenced by main(), and on_open_activate().
GladeXML * load_glade_xml_file | ( | GList * | location_list, | |
gchar * | filename | |||
) |
loads the glade xml file ('filename') that describes an interface, tries all the paths defined in the location_list and put the definition in the 'xml' variable.
A frontend to load_glade_xml_if_it_exists function
location_list | : a Glist containing paths where we might found the file | |
filename | : glade's file's name that we want to load (possibly) |
Definition at line 148 of file heraia_io.c.
References load_glade_xml_if_it_exists().
Referenced by load_heraia_glade_xml(), and load_plugin_glade_xml().
GladeXML * load_glade_xml_if_it_exists | ( | gchar * | file_to_load | ) | [static] |
Checks if file_to_load exists and is valid and if possible, loads it in the xml structure.
file_to_load | : a filename of a possibly existing glade file |
Definition at line 117 of file heraia_io.c.
static GladeXML* load_glade_xml_if_it_exists | ( | char * | file_to_load | ) | [static] |
gboolean load_preference_file | ( | heraia_window_t * | main_window | ) |
Load the preference file.
main_window | : main structure |
Definition at line 177 of file heraia_io.c.
References prefs_t::file, prefs_t::filename, and heraia_window_t::prefs.
Referenced by load_heraia_ui().
gboolean save_preferences_to_file | ( | prefs_t * | prefs | ) |
Saves the preferences to the file preferences.
prefs | : preferences (from prefs_t structure) |
Definition at line 196 of file heraia_io.c.
References prefs_t::file, and prefs_t::filename.
Referenced by save_main_preferences().