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 <lttv/filter.h>
27 #include "xenoltt_threadlist.h"
28 #include <lttvwindow/lttv_plugin_tab.h>
30 extern GQuark LTT_NAME_CPU
;
32 #ifndef TYPE_XENOLTT_DRAWING_T_DEFINED
33 #define TYPE_XENOLTT_DRAWING_T_DEFINED
34 typedef struct _XenoLtt_Drawing_t XenoLtt_Drawing_t
;
35 #endif //TYPE_XENOLTT_DRAWING_T_DEFINED
37 #ifndef TYPE_XENOLTTDATA_DEFINED
38 #define TYPE_XENOLTTDATA_DEFINED
39 typedef struct _XenoLTTData XenoLTTData
;
40 #endif //TYPE_XENOLTTDATA_DEFINED
44 GtkWidget
*top_widget
;
49 GtkWidget
*toolbar
; /* Vbox that contains the viewer's toolbar */
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 */
55 ThreadList
*thread_list
;
57 XenoLtt_Drawing_t
*drawing
;
58 GtkAdjustment
*v_adjust
;
60 guint number_of_thread
;
61 guint background_info_waiting
; /* Number of background requests waited for
62 in order to have all the info ready. */
67 /* XenoLTT Data constructor */
68 XenoLTTData
*guixenoltt(LttvPluginTab
*ptab
);
69 void guixenoltt_destructor_full(gpointer data
);
70 void guixenoltt_destructor(gpointer data
);
72 static inline GtkWidget
*guixenoltt_get_widget(XenoLTTData
*xenoltt_data
){
73 return xenoltt_data
->top_widget
;
76 static inline ThreadList
*guixenoltt_get_thread_list(XenoLTTData
*xenoltt_data
){
77 return xenoltt_data
->thread_list
;