heraia/trunk/libheraia/data_interpretor.c File Reference

#include <libheraia.h>

Include dependency graph for data_interpretor.c:

Go to the source code of this file.

Functions

static guint which_endianness (heraia_window_t *main_window)
static void interpret_as_date (heraia_window_t *main_window, DecodeDateFunc decode_it, gchar *widget_name, guint length, guint endianness)
static void interpret_as_number (heraia_window_t *main_window, DecodeFunc decode_it, gchar *widget_name, guint length, guint endianness)
static void close_data_interpretor_window (GtkWidget *widget, gpointer data)
static void connect_data_interpretor_signals (heraia_window_t *main_window)
void refresh_data_interpretor_window (GtkWidget *widget, gpointer data)
void data_interpretor_init_interface (heraia_window_t *main_window)


Function Documentation

static void close_data_interpretor_window ( GtkWidget *  widget,
gpointer  data 
) [static]

"Emulates" the user click on the main window menu entry called DIMenu whose aim is to display or hide the data interpretor window

Definition at line 160 of file data_interpretor.c.

References heraia_get_widget(), xml_t::main, and heraia_window_t::xmls.

Referenced by connect_data_interpretor_signals().

Here is the call graph for this function:

static void connect_data_interpretor_signals ( heraia_window_t main_window  )  [static]

Connects data interpretor window's signals to the right functions

Definition at line 206 of file data_interpretor.c.

References close_data_interpretor_window(), delete_dt_window_event(), destroy_dt_window(), heraia_get_widget(), xml_t::main, refresh_data_interpretor_window(), and heraia_window_t::xmls.

Referenced by data_interpretor_init_interface().

Here is the call graph for this function:

void data_interpretor_init_interface ( heraia_window_t main_window  ) 

Inits the data interpretor structure and window with default values Should be called only once

Definition at line 237 of file data_interpretor.c.

References connect_data_interpretor_signals(), heraia_window_t::current_DW, data_window_t::diw, heraia_get_widget(), xml_t::main, data_window_t::tab_displayed, and heraia_window_t::xmls.

Referenced by load_heraia_ui().

Here is the call graph for this function:

static void interpret_as_date ( heraia_window_t main_window,
DecodeDateFunc  decode_it,
gchar *  widget_name,
guint  length,
guint  endianness 
) [static]

Here we do interpret a date according to the decode_it function We are assuming that main_window != NULL and main_window->xml != NULL . heraia_window_t *main_window : the main structure . DecodeDateFunc decode_it : a function to be called to decode the stream . gchar *widget_name : the name of the widget where the result may go . guint length : the length of the data to be decoded . guint endianness : the endianness to be applied to the datas

Definition at line 71 of file data_interpretor.c.

References heraia_window_t::current_DW, ghex_get_data(), heraia_get_widget(), xml_t::main, and heraia_window_t::xmls.

Referenced by refresh_data_interpretor_window().

Here is the call graph for this function:

static void interpret_as_number ( heraia_window_t main_window,
DecodeFunc  decode_it,
gchar *  widget_name,
guint  length,
guint  endianness 
) [static]

Here we do interpret a number according to the decode_it function We are assuming that main_window != NULL and main_window->xml != NULL . heraia_window_t *main_window : the main structure . DecodeFunc decode_it : a function to be called to decode the stream . gchar *widget_name : the name of the widget where the result may go . guint length : the length of the data to be decoded . guint endianness : the endianness to be applied to the datas

Definition at line 119 of file data_interpretor.c.

References heraia_window_t::current_DW, ghex_get_data(), heraia_get_widget(), xml_t::main, and heraia_window_t::xmls.

Referenced by refresh_data_interpretor_window().

Here is the call graph for this function:

void refresh_data_interpretor_window ( GtkWidget *  widget,
gpointer  data 
)

static guint which_endianness ( heraia_window_t main_window  )  [static]

Determines which endianness is selected that is to say which radio button is active in the window

Definition at line 36 of file data_interpretor.c.

References gtk_radio_button_get_active_from_widget(), H_DI_BIG_ENDIAN, H_DI_LITTLE_ENDIAN, H_DI_MIDDLE_ENDIAN, heraia_get_widget(), xml_t::main, and heraia_window_t::xmls.

Referenced by refresh_data_interpretor_window().

Here is the call graph for this function:


Generated on Sat Jan 17 20:57:19 2009 for Heraia by  doxygen 1.5.6