1 /* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 Mathieu Desnoyers
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
25 #include <lttvwindow/mainwindow.h>
26 #include "processlist.h"
29 struct _ControlFlowData
{
31 GtkWidget
*top_widget
;
34 GtkWidget
*box
; /* box that contains the hpaned. necessary for it to work */
37 ProcessList
*process_list
;
40 GtkAdjustment
*v_adjust
;
42 /* Shown events information */
43 // TimeWindow time_window;
44 // LttTime current_time;
46 //guint currently_Selected_Event ;
47 guint number_of_process
;
48 guint background_info_waiting
; /* Number of background requests waited for
49 in order to have all the info ready. */
56 typedef struct _ControlFlowData ControlFlowData
;
58 /* Control Flow Data constructor */
59 ControlFlowData
*guicontrolflow(void);
61 guicontrolflow_destructor_full(ControlFlowData
*control_flow_data
);
63 guicontrolflow_destructor(ControlFlowData
*control_flow_data
);
65 static inline GtkWidget
*guicontrolflow_get_widget(
66 ControlFlowData
*control_flow_data
)
68 return control_flow_data
->top_widget
;
71 static inline ProcessList
*guicontrolflow_get_process_list
72 (ControlFlowData
*control_flow_data
)
74 return control_flow_data
->process_list
;