Draw_Item.h attribute name change
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Widget_Callbacks.c.old
CommitLineData
f0d936c0 1/*****************************************************************************
2 * Callbacks used for the viewer *
3 *****************************************************************************/
4void expose_event_cb (GtkWidget *widget, GdkEventExpose *expose, gpointer data)
5{
68997a22 6 ControlFlowData *control_flow_data = (ControlFlowData*)data;
f0d936c0 7
8 EventRequest *Event_Request = g_new(sizeof(EventRequest));
9
68997a22 10 Event_Request->control_flow_data = control_flow_data;
f0d936c0 11
12 /* Calculate, from pixels in expose, the time interval to get data */
13
14 get_time_from_pixels(expose->area.x, expose->area.width,
68997a22 15 control_flow_data->Drawing_Area_Info.width,
16 &control_flow_data->Begin_Time, &control_flow_data->End_Time,
f0d936c0 17 &Event_Request->time_begin, &Event_Request->time_end)
18
19 /* Look in statistics of the trace the processes present during the
20 * whole time interval _shown on the screen_. Modify the list of
21 * processes to match it. NOTE : modify, not recreate. If recreation is
22 * needed,keep a pointer to the currently selected event in the list.
23 */
24
25 /* Call the reading API to have events sent to drawing hooks */
68997a22 26 lttv_trace_set_process( control_flow_data->Trace_Set,
f0d936c0 27 Draw_Before_Hooks,
28 Draw_Event_Hooks,
29 Draw_After_Hooks,
30 NULL, //FIXME : filter here
31 Event_Request->time_begin,
32 Event_Request->time_end);
33
34}
35
36
37void v_scroll_cb (GtkAdjustment *adjustment, gpointer data)
38{
68997a22 39 ControlFlowData *control_flow_data = (ControlFlowData*)data;
f0d936c0 40 GtkTreePath *Tree_Path;
41
42 g_critical("DEBUG : scroll signal, value : %f", adjustment->value);
43
68997a22 44 //get_test_data((int)adjustment->value, control_flow_data->Num_Visible_Events,
45 // control_flow_data);
f0d936c0 46
47
48
49}
50
51
This page took 0.024446 seconds and 4 git commands to generate.