Heraia  0.1.8
result_window.h File Reference

Header file for the result window. More...

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

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 : More...
 

Functions

void result_window_show (GtkWidget *widget, gpointer data)
 Show result window. More...
 
void result_window_init_interface (heraia_struct_t *main_struct)
 Inits all the things in the result window (signal and such) More...
 
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. More...
 
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. More...
 

Detailed Description

Header file for the result window.

Definition in file result_window.h.

Enumeration Type Documentation

anonymous enum

Columns definition for the GtkListStore Used for :

  • find all button
Enumerator
R_LS_N 
R_LS_POS 
R_LS_HEX 
R_LS_ASCII 
R_LS_N_COLUMNS 

Definition at line 37 of file result_window.h.

Function Documentation

void result_window_init_interface ( heraia_struct_t main_struct)

Inits all the things in the result window (signal and such)

Parameters
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void result_window_show ( GtkWidget *  widget,
gpointer  data 
)

Show result window.

Parameters
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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
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 352 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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters
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

Definition at line 524 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().

Here is the call graph for this function:

Here is the caller graph for this function: