ce0214a6 |
1 | /* This file is part of the Linux Trace Toolkit viewer |
2 | * Copyright (C) 2003-2004 Mathieu Desnoyers |
3 | * |
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; |
7 | * |
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. |
12 | * |
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, |
16 | * MA 02111-1307, USA. |
17 | */ |
18 | |
19 | |
20 | |
f0d936c0 |
21 | #ifndef _CFV_H |
22 | #define _CFV_H |
23 | |
1ab818de |
24 | #include <gtk/gtk.h> |
13f86ce2 |
25 | #include <lttvwindow/mainwindow.h> |
eb1fcbb7 |
26 | #include <lttv/filter.h> |
d66666fe |
27 | #include "processlist.h" |
1ab818de |
28 | |
2c82c4dc |
29 | extern GQuark LTT_NAME_CPU; |
30 | |
50106726 |
31 | |
e8d11122 |
32 | #ifndef TYPE_DRAWING_T_DEFINED |
33 | #define TYPE_DRAWING_T_DEFINED |
34 | typedef struct _Drawing_t Drawing_t; |
35 | #endif //TYPE_DRAWING_T_DEFINED |
36 | |
37 | #ifndef TYPE_CONTROLFLOWDATA_DEFINED |
38 | #define TYPE_CONTROLFLOWDATA_DEFINED |
39 | typedef struct _ControlFlowData ControlFlowData; |
40 | #endif //TYPE_CONTROLFLOWDATA_DEFINED |
41 | |
50106726 |
42 | struct _ControlFlowData { |
43 | |
44 | GtkWidget *top_widget; |
45 | Tab *tab; |
46 | |
47 | GtkWidget *box; /* box that contains the hpaned. necessary for it to work */ |
eb1fcbb7 |
48 | GtkWidget *toolbar; /* Vbox that contains the viewer's toolbar */ |
49 | GtkWidget *button_prop; /* Properties button. */ |
50106726 |
50 | GtkWidget *h_paned; |
51 | |
52 | ProcessList *process_list; |
53 | |
54 | Drawing_t *drawing; |
55 | GtkAdjustment *v_adjust ; |
0de51231 |
56 | |
50106726 |
57 | /* Shown events information */ |
58 | // TimeWindow time_window; |
59 | // LttTime current_time; |
60 | |
61 | //guint currently_Selected_Event ; |
62 | guint number_of_process; |
63 | guint background_info_waiting; /* Number of background requests waited for |
64 | in order to have all the info ready. */ |
65 | |
eb1fcbb7 |
66 | LttvFilter *filter; |
67 | |
50106726 |
68 | } ; |
69 | |
f0d936c0 |
70 | /* Control Flow Data constructor */ |
6cec4cd2 |
71 | ControlFlowData *guicontrolflow(Tab *tab); |
558aa013 |
72 | void |
68997a22 |
73 | guicontrolflow_destructor_full(ControlFlowData *control_flow_data); |
78417791 |
74 | void |
68997a22 |
75 | guicontrolflow_destructor(ControlFlowData *control_flow_data); |
6550d711 |
76 | |
04cd9a1e |
77 | static inline GtkWidget *guicontrolflow_get_widget( |
6550d711 |
78 | ControlFlowData *control_flow_data) |
79 | { |
80 | return control_flow_data->top_widget ; |
81 | } |
82 | |
04cd9a1e |
83 | static inline ProcessList *guicontrolflow_get_process_list |
6550d711 |
84 | (ControlFlowData *control_flow_data) |
85 | { |
86 | return control_flow_data->process_list ; |
87 | } |
88 | |
f7afe191 |
89 | |
1ab818de |
90 | |
f0d936c0 |
91 | #endif // _CFV_H |