heraia_io.h File Reference

Header file for file operations. More...

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

Go to the source code of this file.

Functions

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.
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 save_preferences_to_file (prefs_t *prefs)
 Saves the preferences to the file preferences.
gboolean load_preference_file (heraia_window_t *main_window)
 Load the preference file.


Detailed Description

Header file for file operations.

Definition in file heraia_io.h.


Function Documentation

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.

Parameters:
main_window : main structure (it must not be NULL)
filename : filename of the file to load (it must not be NULL)
Returns:
TRUE if everything went ok, FALSE otherwise

Definition at line 39 of file heraia_io.c.

References add_new_tab_in_main_window(), grey_main_widgets(), heraia_hex_document_new(), doc_t::hex_widget, 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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Parameters:
location_list : a Glist containing paths where we might found the file
filename : glade's file's name that we want to load (possibly)
Returns:
returns the GladeXML structure if any, NULL otherwise

Definition at line 140 of file heraia_io.c.

References load_glade_xml_if_it_exists().

Referenced by load_heraia_glade_xml(), and load_plugin_glade_xml().

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean load_preference_file ( heraia_window_t main_window  ) 

Load the preference file.

Parameters:
main_window : main structure
Returns:
TRUE if everything went ok, FALSE otherwise

Definition at line 169 of file heraia_io.c.

References prefs_t::file, prefs_t::filename, and heraia_window_t::prefs.

Referenced by load_heraia_ui().

Here is the caller graph for this function:

gboolean save_preferences_to_file ( prefs_t prefs  ) 

Saves the preferences to the file preferences.

Parameters:
prefs : preferences (from prefs_t structure)
Returns:
TRUE if everything went ok, FALSE otherwise

Definition at line 188 of file heraia_io.c.

References prefs_t::file, and prefs_t::filename.

Referenced by save_preferences().

Here is the caller graph for this function:


Generated on Tue Jun 30 23:18:20 2009 for Heraia by  doxygen 1.5.8