e969fd8e |
1 | #ifndef _MAIN_WINDOW_ |
2 | #define _MAIN_WINDOW_ |
3 | |
4 | #include <gtk/gtk.h> |
5 | |
6 | #include <ltt/ltt.h> |
7 | #include <lttv/attribute.h> |
8 | #include <lttv/traceset.h> |
9 | #include <lttv/processTrace.h> |
10 | |
11 | #include <lttv/common.h> |
12 | #include <lttv/gtkcustom.h> |
13 | |
36b3c068 |
14 | typedef struct _WindowCreationData { |
15 | int argc; |
16 | char ** argv; |
17 | } WindowCreationData; |
e969fd8e |
18 | |
19 | struct _mainWindow{ |
20 | GtkWidget* MWindow; /* Main Window */ |
21 | systemView * SystemView; /* System view displayed in this window*/ |
22 | |
23 | /* Status bar information */ |
24 | // guint MainSBarContextID; /* Context ID of main status bar */ |
25 | // guint BegTimeSBarContextID; /* Context ID of BegTime status bar */ |
26 | // guint EndTimeSBarContextID; /* Context ID of EndTime status bar */ |
27 | |
28 | /* Child windows */ |
29 | //openTracesetWindow* OpenTracesetWindow;/* Window to get prof and proc file*/ |
30 | //viewTimeFrameWindow* ViewTimeFrameWindow;/*Window to select time frame */ |
31 | //gotoEventWindow* GotoEventWindow; /*search for event description*/ |
32 | //openFilterWindow* OpenFilterWindow; /* Open a filter selection window */ |
33 | GtkWidget* HelpContents;/* Window to display help contents */ |
34 | GtkWidget* AboutBox; /* Window about information */ |
35 | |
36 | LttvTracesetContext * traceset_context; |
37 | LttvTraceset * traceset; /* trace set associated with the window */ |
38 | // lttv_trace_filter * filter; /* trace filter associated with the window */ |
39 | |
40 | |
41 | tab * Tab; |
42 | tab * CurrentTab; |
43 | LttvIAttribute * Attributes; |
36b3c068 |
44 | |
45 | WindowCreationData * winCreationData; |
e969fd8e |
46 | }; |
47 | |
48 | |
49 | struct _systemView{ |
50 | gpointer EventDB; |
7a859036 |
51 | gpointer SystemInfo; |
52 | gpointer Options; |
e969fd8e |
53 | mainWindow * Window; |
54 | struct _systemView * Next; |
55 | }; |
56 | |
57 | struct _tab{ |
58 | GtkWidget * label; |
59 | GtkCustom * custom; |
60 | |
61 | LttTime traceStartTime; |
62 | LttTime traceEndTime; |
63 | LttTime startTime; |
64 | LttTime endTime; |
65 | LttTime currentTime; |
66 | LttvIAttribute * Attributes; |
67 | |
68 | struct _tab * Next; |
69 | }; |
70 | |
71 | #endif /* _MAIN_WINDOW_ */ |
72 | |
73 | |