| 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 | |
| 14 | |
| 15 | struct _mainWindow{ |
| 16 | GtkWidget* MWindow; /* Main Window */ |
| 17 | systemView * SystemView; /* System view displayed in this window*/ |
| 18 | |
| 19 | /* Status bar information */ |
| 20 | // guint MainSBarContextID; /* Context ID of main status bar */ |
| 21 | // guint BegTimeSBarContextID; /* Context ID of BegTime status bar */ |
| 22 | // guint EndTimeSBarContextID; /* Context ID of EndTime status bar */ |
| 23 | |
| 24 | /* Child windows */ |
| 25 | //openTracesetWindow* OpenTracesetWindow;/* Window to get prof and proc file*/ |
| 26 | //viewTimeFrameWindow* ViewTimeFrameWindow;/*Window to select time frame */ |
| 27 | //gotoEventWindow* GotoEventWindow; /*search for event description*/ |
| 28 | //openFilterWindow* OpenFilterWindow; /* Open a filter selection window */ |
| 29 | GtkWidget* HelpContents;/* Window to display help contents */ |
| 30 | GtkWidget* AboutBox; /* Window about information */ |
| 31 | |
| 32 | LttvTracesetContext * traceset_context; |
| 33 | LttvTraceset * traceset; /* trace set associated with the window */ |
| 34 | // lttv_trace_filter * filter; /* trace filter associated with the window */ |
| 35 | |
| 36 | |
| 37 | tab * Tab; |
| 38 | tab * CurrentTab; |
| 39 | LttvIAttribute * Attributes; |
| 40 | |
| 41 | }; |
| 42 | |
| 43 | |
| 44 | struct _systemView{ |
| 45 | gpointer EventDB; |
| 46 | gpointer * SystemInfo; |
| 47 | gpointer * Options; |
| 48 | mainWindow * Window; |
| 49 | struct _systemView * Next; |
| 50 | }; |
| 51 | |
| 52 | struct _tab{ |
| 53 | GtkWidget * label; |
| 54 | GtkCustom * custom; |
| 55 | |
| 56 | LttTime traceStartTime; |
| 57 | LttTime traceEndTime; |
| 58 | LttTime startTime; |
| 59 | LttTime endTime; |
| 60 | LttTime currentTime; |
| 61 | LttvIAttribute * Attributes; |
| 62 | |
| 63 | struct _tab * Next; |
| 64 | }; |
| 65 | |
| 66 | #endif /* _MAIN_WINDOW_ */ |
| 67 | |
| 68 | |