7 #include <lttv/attribute.h>
8 #include <lttv/traceset.h>
9 #include <lttv/processTrace.h>
11 #include <lttv/common.h>
12 #include <lttv/gtkcustom.h>
13 #include <lttv/hook.h>
14 #include <lttv/stats.h>
16 typedef struct _WindowCreationData
{
21 typedef struct _TimeWindow
{
26 typedef struct _TracesetInfo
{
37 //FIXME? TracesetContext and stats in same or different variable ?
38 LttvTracesetStats
* TracesetContext
;
39 LttvTraceset
* traceset
;
44 GtkWidget
* MWindow
; /* Main Window */
46 /* Status bar information */
47 // guint MainSBarContextID; /* Context ID of main status bar */
48 // guint BegTimeSBarContextID; /* Context ID of BegTime status bar */
49 // guint EndTimeSBarContextID; /* Context ID of EndTime status bar */
52 //openTracesetWindow* OpenTracesetWindow;/* Window to get prof and proc file*/
53 //viewTimeFrameWindow* ViewTimeFrameWindow;/*Window to select time frame */
54 //gotoEventWindow* GotoEventWindow; /*search for event description*/
55 //openFilterWindow* OpenFilterWindow; /* Open a filter selection window */
56 GtkWidget
* HelpContents
;/* Window to display help contents */
57 GtkWidget
* AboutBox
; /* Window about information */
59 // lttv_trace_filter * filter; /* trace filter associated with the window */
61 /* Traceset related information */
62 TracesetInfo
* Traceset_Info
;
63 /* Attributes for trace reading hooks local to the main window */
64 LttvIAttribute
* Attributes
;
69 WindowCreationData
* winCreationData
;
71 GHashTable
* hash_menu_item
;
72 GHashTable
* hash_toolbar_item
;
80 // startTime is the left of the visible area. Corresponds to the scrollbar
82 // Time_Width is a zoom dependant value (corresponding to page size)
83 TimeWindow Time_Window
;
85 // The current time is the time selected in the visible area by the user,
86 // not the scrollbar value.
88 LttvIAttribute
* Attributes
;
95 * Remove menu and toolbar item when a module unloaded
97 void main_window_remove_menu_item(lttv_constructor view_constructor
);
98 void main_window_remove_toolbar_item(lttv_constructor view_constructor
);
100 #endif /* _MAIN_WINDOW_ */