ui_main_screen.h 1.42 KB
Newer Older
1 2
#include "ui_signal_dissect_view.h"

Cedric Roux's avatar
 
Cedric Roux committed
3 4 5 6 7
#ifndef UI_MAIN_SCREEN_H_
#define UI_MAIN_SCREEN_H_

typedef struct {
    GtkWidget *window;
winckel's avatar
winckel committed
8 9 10 11
    GtkWidget *ip_entry;
    char *ip_entry_init;
    GtkWidget *port_entry;
    char *port_entry_init;
Cedric Roux's avatar
 
Cedric Roux committed
12

13
    GtkWidget      *progressbar_window;
14 15 16
    GtkWidget      *progressbar;
    GtkWidget      *signalslist;
    ui_text_view_t *text_view;
Cedric Roux's avatar
 
Cedric Roux committed
17 18

    /* Buttons */
19
    GtkToolItem *open_replay_file;
20
    GtkToolItem *refresh_replay_file;
21 22 23
    GtkToolItem *save_replay_file;
    GtkToolItem *open_filters_file;
    GtkToolItem *save_filters_file;
Cedric Roux's avatar
 
Cedric Roux committed
24 25
    GtkToolItem *connect;
    GtkToolItem *disconnect;
Cedric Roux's avatar
Cedric Roux committed
26

27 28 29 30 31 32 33 34
    /* Signal list buttons */
    /* Clear signals button */
    GtkToolItem *signals_clear_button;
    GtkToolItem *signals_go_to_button;
    GtkToolItem *signals_go_to_last_button;
    GtkToolItem *signals_go_to_first_button;

    GtkTreeSelection *selection;
35
    GtkTreePath *path_last;
36 37 38 39

    /* Nb of messages received */
    guint nb_message_received;

40 41
    GLogLevelFlags log_flags;
    char *dissect_file_name;
winckel's avatar
winckel committed
42 43 44 45 46 47 48
    char *filters_file_name;
    char *messages_file_name;

    GtkWidget *menu_filter_messages;
    GtkWidget *menu_filter_origin_tasks;
    GtkWidget *menu_filter_destination_tasks;

Cedric Roux's avatar
Cedric Roux committed
49
    int pipe_fd[2];
Cedric Roux's avatar
 
Cedric Roux committed
50 51 52 53
} ui_main_data_t;

extern ui_main_data_t ui_main_data;

54 55
void ui_set_title(const char *fmt, ...);

Cedric Roux's avatar
 
Cedric Roux committed
56 57
int ui_gtk_initialize(int argc, char *argv[]);

58 59
void ui_gtk_flush_events(void);

Cedric Roux's avatar
 
Cedric Roux committed
60
#endif /* UI_MAIN_SCREEN_H_ */