Header file for the result window. More...
Go to the source code of this file.
Enumerations | |
enum | { R_LS_N, R_LS_POS, R_LS_HEX, R_LS_ASCII, R_LS_N_COLUMNS } |
Columns definition for the GtkListStore Used for :
| |
Functions | |
void | result_window_show (GtkWidget *widget, gpointer data) |
Show result window. | |
void | result_window_init_interface (heraia_struct_t *main_struct) |
Inits all the things in the result window (signal and such). | |
void | rw_add_one_tab_from_find_all_bt (heraia_struct_t *main_struct, GArray *all_pos, guint size, guchar *text) |
Add one tab for the results from the find all button. | |
void | rw_remove_all_tabs (heraia_struct_t *main_struct, doc_t *doc) |
Remove all tabs from the result window that correspond to the specified document. |
Header file for the result window.
Definition in file result_window.h.
anonymous enum |
Columns definition for the GtkListStore Used for :
Definition at line 37 of file result_window.h.
void result_window_init_interface | ( | heraia_struct_t * | main_struct | ) |
Inits all the things in the result window (signal and such).
main_struct | : heraia's main structure |
Definition at line 70 of file result_window.c.
References xml_t::main, result_window_connect_signal(), and heraia_struct_t::xmls.
Referenced by load_heraia_ui().
void result_window_show | ( | GtkWidget * | widget, | |
gpointer | data | |||
) |
Show result window.
widget | : the widget that issued the signal (may be NULL as we do not use it). | |
data | : user data MUST be heraia_struct_t *main_struct main structure |
< result window itself
Definition at line 52 of file result_window.c.
References heraia_struct_t::current_doc, heraia_get_widget(), xml_t::main, move_and_show_dialog_box(), all_window_prop_t::result_window, heraia_struct_t::win_prop, and heraia_struct_t::xmls.
Referenced by menu_result_toggle(), and rw_add_one_tab_from_find_all_bt().
void rw_add_one_tab_from_find_all_bt | ( | heraia_struct_t * | main_struct, | |
GArray * | all_pos, | |||
guint | size, | |||
guchar * | text | |||
) |
Add one tab for the results from the find all button.
main_struct | : main structure of heraia | |
all_pos | : A GArray of all found positions | |
size | : size of the string searched for (in bytes) | |
text | : the text for the label of the newly created tab. If NULL, a text is guessed from the last found position and the text found |
< List store that will contain results
< a calculated position to center the search string
< real position
< size of the file during the search (should not change)
< Current document on which we want to do the search
< endianness as selected in the data interpretor window
< buffer size (bigger than size in order to display
some byte before and after the results)
< the ascii buffer
< the hex buffer
< text label
Endianness by default (we want the search to be flat) -> However this may be modified if someone asks for
Definition at line 337 of file result_window.c.
References add_gtk_tree_view_to_result_notebook(), heraia_struct_t::current_doc, determine_pos_and_buffer_size(), ghex_file_size(), ghex_get_data_to_ascii(), ghex_get_data_to_hex(), H_DI_LITTLE_ENDIAN, doc_t::hex_widget, log_message(), R_LS_ASCII, R_LS_HEX, R_LS_N, R_LS_N_COLUMNS, R_LS_POS, result_window_show(), and heraia_struct_t::results.
Referenced by fdft_search_direction(), and find_all_bt_clicked().
void rw_remove_all_tabs | ( | heraia_struct_t * | main_struct, | |
doc_t * | doc | |||
) |
Remove all tabs from the result window that correspond to the specified document.
main_struct | : heraia's main structure | |
doc | : the document beeing close in main window's notebook |
< total len of result array
< result_notebook from heraia.gtkbuilder
< Value to compare with doc
< array that stores the indexes where results value is equal to doc.
Definition at line 509 of file result_window.c.
References heraia_get_widget(), log_message(), xml_t::main, heraia_struct_t::results, and heraia_struct_t::xmls.
Referenced by close_one_document().