#include "heraia_types.h"
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) |
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().
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().
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().
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().
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().
void refresh_data_interpretor_window | ( | GtkWidget * | widget, | |
gpointer | data | |||
) |
Refreshes the data interpretor window with the new values
Definition at line 173 of file data_interpretor.c.
References heraia_window_t::current_DW, decode_16bits_signed(), decode_16bits_unsigned(), decode_32bits_signed(), decode_32bits_unsigned(), decode_64bits_signed(), decode_64bits_unsigned(), decode_8bits_signed(), decode_8bits_unsigned(), decode_C_date(), decode_dos_date(), decode_filetime_date(), decode_HFS_date(), decode_packed_BCD(), decode_to_bits(), window_prop_t::displayed, interpret_as_date(), interpret_as_number(), all_window_prop_t::main_dialog, refresh_all_ud_data_interpretor(), which_endianness(), and heraia_window_t::win_prop.
Referenced by connect_data_interpretor_signals(), on_DIMenu_activate(), and refresh_event_handler().
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().