#include "heraia_types.h"
Go to the source code of this file.
Functions | |
static gboolean | version (void) |
prints program name, version, author, date and licence to the standard output | |
static gboolean | usage (int status) |
Function that informs the user about the command line options available with heraia. | |
static window_prop_t * | init_window_properties (gint x, gint y, guint height, guint width, gboolean displayed) |
Inits the properties of a window with defined values. | |
static heraia_window_t * | init_window_property_struct (heraia_window_t *main_window) |
Inits the window property structure. | |
static heraia_window_t * | heraia_init_main_struct (void) |
Initialize the main structure (main_window). | |
static HERAIA_ERROR | init_heraia_plugin_system (heraia_window_t *main_window) |
Function that initializes the plugin system if any :
| |
static GList * | init_heraia_location_list (void) |
Here we want to init the location list where we might look for in the future. | |
static gboolean | manage_command_line_options (Options *opt, int argc, char **argv) |
Manages all the command line options and populates the Options *opt structure accordingly. | |
heraia_window_t * | get_main_struct (void) |
This is intended to be called by the library or any program that will use the library in order to get the pointer to the main structure heraia_window_t. | |
static Options * | init_options_struct (void) |
Inits the Options struct that contains all stuff needed to managed command line options within heraia. | |
int | main (int argc, char **argv) |
main program options :
| |
Variables | |
static heraia_window_t * | libheraia_main_struct = NULL |
libheraia_main_struct is a global variable that points to the main structure and is intended for the library use ONLY ! It should not be used anywhere else or for any other purpose |
Initialization is done here and then hand is passed to gtk's main thread
Definition in file heraia.c.
heraia_window_t* get_main_struct | ( | void | ) |
This is intended to be called by the library or any program that will use the library in order to get the pointer to the main structure heraia_window_t.
static heraia_window_t * heraia_init_main_struct | ( | void | ) | [static] |
Initialize the main structure (main_window).
First, in this early stage of the development we want to toggle debugging mode ON which is enabled by default in the configure.ac file !
Definition at line 181 of file heraia.c.
References heraia_window_t::available_treatment_list, heraia_window_t::current_data_type, heraia_window_t::current_doc, heraia_window_t::current_DW, heraia_window_t::data_type_list, heraia_window_t::debug, data_window_t::diw, heraia_window_t::documents, ENABLE_DEBUG, prefs_t::filename, init_heraia_location_list(), init_preference_struct(), init_treatments(), init_window_property_struct(), heraia_window_t::location_list, xml_t::main, prefs_t::pathname, heraia_window_t::plugins_list, heraia_window_t::prefs, data_window_t::tab_displayed, verify_preference_file(), and heraia_window_t::xmls.
Referenced by main().
static GList * init_heraia_location_list | ( | void | ) | [static] |
Here we want to init the location list where we might look for in the future.
These can be viewed as default paths
Definition at line 276 of file heraia.c.
Referenced by heraia_init_main_struct().
static HERAIA_ERROR init_heraia_plugin_system | ( | heraia_window_t * | main_window | ) | [static] |
Function that initializes the plugin system if any :
main_window | : main structure (heraia_window_t *) |
Definition at line 247 of file heraia.c.
References HERAIA_NO_PLUGINS, HERAIA_NOERR, load_plugins(), log_message(), plugin_capable(), and plugin_list_window_init_interface().
Referenced by main().
static Options* init_options_struct | ( | void | ) | [static] |
Inits the Options struct that contains all stuff needed to managed command line options within heraia.
< Structure to manage prgram's options
Definition at line 377 of file heraia.c.
References Options::filenames, and Options::usage.
Referenced by main().
static window_prop_t * init_window_properties | ( | gint | x, | |
gint | y, | |||
guint | height, | |||
guint | width, | |||
gboolean | displayed | |||
) | [static] |
Inits the properties of a window with defined values.
x,y | are x,y coordinates on the screen | |
height | represents the height of the window | |
width | represents the width of the window. x+height,y+width is window's right bottom corner | |
displayed | says wether the window is displayed or not |
Definition at line 115 of file heraia.c.
References window_prop_t::displayed, window_prop_t::height, window_prop_t::width, window_prop_t::x, and window_prop_t::y.
Referenced by init_window_property_struct().
static heraia_window_t * init_window_property_struct | ( | heraia_window_t * | main_window | ) | [static] |
Inits the window property structure.
main_window | : main structure |
Definition at line 138 of file heraia.c.
References all_window_prop_t::about_box, all_window_prop_t::data_interpretor, H_DI_DISPLAYED, init_window_properties(), all_window_prop_t::ldt, all_window_prop_t::log_box, all_window_prop_t::main_dialog, all_window_prop_t::main_pref_window, all_window_prop_t::plugin_list, heraia_window_t::win_prop, WPT_DEFAULT_HEIGHT, and WPT_DEFAULT_WIDTH.
Referenced by heraia_init_main_struct().
int main | ( | int | argc, | |
char ** | argv | |||
) |
main program options :
< A structure to manage the command line options
Definition at line 395 of file heraia.c.
References heraia_window_t::current_DW, heraia_window_t::debug, prefs_t::filename, Options::filenames, heraia_init_main_struct(), init_heraia_interface(), init_heraia_plugin_system(), init_options_struct(), libheraia_finalize(), libheraia_initialize(), libheraia_test(), load_file_to_analyse(), load_heraia_ui(), log_message(), xml_t::main, manage_command_line_options(), heraia_window_t::prefs, data_window_t::tab_displayed, Options::usage, and heraia_window_t::xmls.
static gboolean manage_command_line_options | ( | Options * | opt, | |
int | argc, | |||
char ** | argv | |||
) | [static] |
Manages all the command line options and populates the Options *opt structure accordingly.
opt | (Options *opt) filled here with the parameters found in **argv | |
argc | : number of command line arguments | |
argv | : array of string (char *) that contains arguments |
Definition at line 330 of file heraia.c.
References Options::filenames, long_options, usage(), Options::usage, and version().
Referenced by main().
static gboolean usage | ( | int | status | ) | [static] |
Function that informs the user about the command line options available with heraia.
status | : integer that indicate wether to display help (!=0) or an error message (0) |
Definition at line 85 of file heraia.c.
References version().
Referenced by manage_command_line_options().
static gboolean version | ( | void | ) | [static] |
prints program name, version, author, date and licence to the standard output
Definition at line 69 of file heraia.c.
References HERAIA_AUTHORS, HERAIA_DATE, HERAIA_LICENSE, and HERAIA_VERSION.
Referenced by manage_command_line_options(), and usage().
heraia_window_t* libheraia_main_struct = NULL [static] |