a03eb190f188cf49396a0cecb2ef1f2c6b261832
[lttv.git] / lttv / modules / gui / resourceview / cfv.h
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
21 #ifndef _CFV_H
22 #define _CFV_H
23
24 #include <gtk/gtk.h>
25 #include <lttvwindow/mainwindow.h>
26 #include <lttv/filter.h>
27 #include <lttvwindow/lttv_plugin_tab.h>
28
29 extern GQuark LTT_NAME_CPU;
30
31 #ifndef TYPE_DRAWING_T_DEFINED
32 #define TYPE_DRAWING_T_DEFINED
33 typedef struct _Drawing_t Drawing_t;
34 #endif //TYPE_DRAWING_T_DEFINED
35
36 #ifndef TYPE_CONTROLFLOWDATA_DEFINED
37 #define TYPE_CONTROLFLOWDATA_DEFINED
38 typedef struct _ControlFlowData ControlFlowData;
39 #endif //TYPE_CONTROLFLOWDATA_DEFINED
40
41 #ifndef TYPE_PROCESSLIST_DEFINED
42 #define TYPE_PROCESSLIST_DEFINED
43 typedef struct _ProcessList ProcessList;
44 #endif //TYPE_PROCESSLIST_DEFINED
45
46 struct _ControlFlowData {
47
48 GtkWidget *top_widget;
49 Tab *tab;
50 LttvPluginTab *ptab;
51
52 GtkWidget *hbox;
53 GtkWidget *toolbar; /* Vbox that contains the viewer's toolbar */
54 GtkToolItem *button_prop; /* Properties button. */
55 GtkToolItem *button_filter; /* Properties button. */
56 GtkWidget *box; /* box that contains the hpaned. necessary for it to work */
57 GtkWidget *h_paned;
58
59 ProcessList *process_list;
60
61 Drawing_t *drawing;
62 GtkAdjustment *v_adjust ;
63
64 /* Shown events information */
65 // TimeWindow time_window;
66 // LttTime current_time;
67
68 //guint currently_Selected_Event ;
69 guint number_of_process;
70 guint background_info_waiting; /* Number of background requests waited for
71 in order to have all the info ready. */
72
73 LttvFilter *filter;
74
75 } ;
76
77 /* Control Flow Data constructor */
78 ControlFlowData *guicontrolflow(LttvPluginTab *ptab);
79 void
80 guicontrolflow_destructor_full(gpointer data);
81 void
82 guicontrolflow_destructor(gpointer data);
83
84 static inline GtkWidget *guicontrolflow_get_widget(
85 ControlFlowData *control_flow_data)
86 {
87 return control_flow_data->top_widget ;
88 }
89
90 static inline ProcessList *guicontrolflow_get_process_list
91 (ControlFlowData *control_flow_data)
92 {
93 return control_flow_data->process_list ;
94 }
95
96 ControlFlowData *resourceview(LttvPluginTab *ptab);
97
98 #endif // _CFV_H
This page took 0.030753 seconds and 3 git commands to generate.