X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Fdrawing.h;h=bac0b6b8ad7a860b128997b2e3bbcdc04ae701d0;hb=90ef7e4a2c6a41ec36bd2530b187cc1ef2cf0025;hp=63031bb1bfa75ac82cd68a6a3be95c96b39635a8;hpb=a2b3ec75a78f0ae3d94b75075c2229cb60521dd4;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h index 63031bb1..bac0b6b8 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h @@ -38,9 +38,15 @@ typedef enum _draw_color { COL_BLACK, COL_WHITE, COL_WAIT_FORK, COL_WAIT_CPU, + COL_EXIT, COL_ZOMBIE, COL_WAIT, COL_RUN, + COL_USER_MODE, + COL_SYSCALL, + COL_TRAP, + COL_IRQ, + COL_MODE_UNKNOWN, NUM_COLORS } draw_color; extern GdkColor drawing_colors[NUM_COLORS]; @@ -93,6 +99,9 @@ struct _Drawing_t { LttTime last_start; GdkGC *dotted_gc; GdkGC *gc; + + /* Position of the horizontal selector, -1 for none */ + gint horizontal_sel; }; Drawing_t *drawing_construct(ControlFlowData *control_flow_data); @@ -125,14 +134,14 @@ void drawing_remove_square(Drawing_t *drawing, guint y, guint height); -void convert_pixels_to_time( +__inline void convert_pixels_to_time( gint width, guint x, LttTime window_time_begin, LttTime window_time_end, LttTime *time); -void convert_time_to_pixels( +__inline void convert_time_to_pixels( LttTime window_time_begin, LttTime window_time_end, LttTime time, @@ -149,4 +158,12 @@ void drawing_data_request_begin(EventsRequest *events_request, LttvTracesetState *tss); void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss); + + +void +tree_row_activated(GtkTreeModel *treemodel, + GtkTreePath *arg1, + GtkTreeViewColumn *arg2, + gpointer user_data); + #endif // _DRAWING_H