Add X86 arch to list
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / cfv.h
CommitLineData
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"
e433e6d6 28#include <lttvwindow/lttv_plugin_tab.h>
1ab818de 29
2c82c4dc 30extern GQuark LTT_NAME_CPU;
31
e8d11122 32#ifndef TYPE_DRAWING_T_DEFINED
33#define TYPE_DRAWING_T_DEFINED
34typedef struct _Drawing_t Drawing_t;
35#endif //TYPE_DRAWING_T_DEFINED
36
37#ifndef TYPE_CONTROLFLOWDATA_DEFINED
38#define TYPE_CONTROLFLOWDATA_DEFINED
39typedef struct _ControlFlowData ControlFlowData;
40#endif //TYPE_CONTROLFLOWDATA_DEFINED
41
50106726 42struct _ControlFlowData {
43
44 GtkWidget *top_widget;
45 Tab *tab;
e433e6d6 46 LttvPluginTab *ptab;
47
48 GtkWidget *hbox;
eb1fcbb7 49 GtkWidget *toolbar; /* Vbox that contains the viewer's toolbar */
e433e6d6 50 GtkToolItem *button_prop; /* Properties button. */
51 GtkToolItem *button_filter; /* Properties button. */
52 GtkWidget *box; /* box that contains the hpaned. necessary for it to work */
50106726 53 GtkWidget *h_paned;
54
55 ProcessList *process_list;
56
57 Drawing_t *drawing;
58 GtkAdjustment *v_adjust ;
0de51231 59
50106726 60 /* Shown events information */
61// TimeWindow time_window;
62// LttTime current_time;
63
64 //guint currently_Selected_Event ;
65 guint number_of_process;
66 guint background_info_waiting; /* Number of background requests waited for
67 in order to have all the info ready. */
68
eb1fcbb7 69 LttvFilter *filter;
70
50106726 71} ;
72
f0d936c0 73/* Control Flow Data constructor */
e433e6d6 74ControlFlowData *guicontrolflow(LttvPluginTab *ptab);
558aa013 75void
e433e6d6 76guicontrolflow_destructor_full(gpointer data);
78417791 77void
e433e6d6 78guicontrolflow_destructor(gpointer data);
6550d711 79
04cd9a1e 80static inline GtkWidget *guicontrolflow_get_widget(
6550d711 81 ControlFlowData *control_flow_data)
82{
83 return control_flow_data->top_widget ;
84}
85
04cd9a1e 86static inline ProcessList *guicontrolflow_get_process_list
6550d711 87 (ControlFlowData *control_flow_data)
88{
89 return control_flow_data->process_list ;
90}
91
f7afe191 92
1ab818de 93
f0d936c0 94#endif // _CFV_H
This page took 0.052603 seconds and 4 git commands to generate.