93b0df2e9968cfbec7c955643fd9463b1c5f1ed9
[lttv.git] / lttv / modules / gui / detailedevents / events.h
1 #ifndef _EVENTS_H
2 #define _EVENTS_H
3
4 #include <lttvwindow/lttvwindow.h>
5 #include <lttvwindow/lttv_plugin_tab.h>
6
7 typedef struct _EventViewerData EventViewerData;
8
9 struct _EventViewerData {
10
11 Tab * tab;
12 LttvPluginTab *ptab;
13 LttvHooks * event_hooks;
14
15 /* previous value is used to determine if it is a page up/down or
16 * step up/down, in which case we move of a certain amount of events (one or
17 * the number of events shown on the screen) instead of changing begin time.
18 */
19 double previous_value;
20
21 //scroll window containing Tree View
22 GtkWidget * scroll_win;
23
24 /* Model containing list data */
25 GtkListStore *store_m;
26
27 GPtrArray *pos; /* Array of LttvTracesetContextPosition * */
28
29 GtkWidget *top_widget;
30 GtkWidget *hbox_v;
31 /* Widget to display the data in a columned list */
32 GtkWidget *tree_v;
33 GtkAdjustment *vtree_adjust_c ;
34 GtkWidget *button; /* a button of the header, used to get the header_height */
35 gint header_height;
36
37 /* Vertical scrollbar and its adjustment */
38 GtkWidget *vscroll_vc;
39 GtkAdjustment *vadjust_c;
40
41 /* Selection handler */
42 GtkTreeSelection *select_c;
43
44 gint num_visible_events;
45
46 LttvTracesetContextPosition *currently_selected_position;
47 gboolean update_cursor; /* Speed optimisation : do not update cursor when
48 unnecessary */
49 gboolean report_position; /* do not report position when in current_time
50 update */
51
52 LttvTracesetContextPosition *first_event; /* Time of the first event shown */
53 LttvTracesetContextPosition *last_event; /* Time of the first event shown */
54
55 LttvTracesetContextPosition *current_time_get_first;
56
57 LttvFilter *main_win_filter;
58
59 gint background_info_waiting;
60
61 guint32 last_tree_update_time; /* To filter out repeat keys */
62
63 guint num_events; /* Number of events processed */
64
65 LttvFilter *filter;
66 GtkWidget *toolbar;
67 GtkToolItem *button_filter;
68
69 guint init_done;
70 };
71
72 extern gint evd_redraw_notify(void *hook_data, void *call_data);
73
74 #endif //EVENTS_H
This page took 0.02997 seconds and 3 git commands to generate.