traceset per tab
[lttv.git] / ltt / branches / poly / include / lttv / mainWindow.h
CommitLineData
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>
f7afe191 13#include <lttv/hook.h>
14#include <lttv/stats.h>
e969fd8e 15
36b3c068 16typedef struct _WindowCreationData {
17 int argc;
18 char ** argv;
19} WindowCreationData;
e969fd8e 20
f7afe191 21
22typedef struct _TracesetInfo {
716e4367 23 //FIXME? TracesetContext and stats in same or different variable ?
24 LttvTracesetStats * traceset_context;
25 LttvTraceset * traceset;
f7afe191 26} TracesetInfo ;
27
28
bca3b81f 29struct _MainWindow{
30 GtkWidget* mwindow; /* Main Window */
e969fd8e 31
32 /* Status bar information */
33 // guint MainSBarContextID; /* Context ID of main status bar */
34 // guint BegTimeSBarContextID; /* Context ID of BegTime status bar */
35 // guint EndTimeSBarContextID; /* Context ID of EndTime status bar */
36
37 /* Child windows */
38 //openTracesetWindow* OpenTracesetWindow;/* Window to get prof and proc file*/
39 //viewTimeFrameWindow* ViewTimeFrameWindow;/*Window to select time frame */
40 //gotoEventWindow* GotoEventWindow; /*search for event description*/
41 //openFilterWindow* OpenFilterWindow; /* Open a filter selection window */
bca3b81f 42 GtkWidget* help_contents;/* Window to display help contents */
43 GtkWidget* about_box; /* Window about information */
e969fd8e 44
e969fd8e 45 // lttv_trace_filter * filter; /* trace filter associated with the window */
e969fd8e 46
f7afe191 47 /* Attributes for trace reading hooks local to the main window */
bca3b81f 48 LttvIAttribute * attributes;
f7afe191 49
bca3b81f 50 Tab * tab;
51 Tab * current_tab;
36b3c068 52
bca3b81f 53 WindowCreationData * win_creation_data;
e969fd8e 54
2061e03d 55 GHashTable * hash_menu_item;
56 GHashTable * hash_toolbar_item;
57};
e969fd8e 58
e969fd8e 59
bca3b81f 60struct _Tab{
e969fd8e 61 GtkWidget * label;
62 GtkCustom * custom;
2061e03d 63
f7afe191 64 // startTime is the left of the visible area. Corresponds to the scrollbar
65 // value.
66 // Time_Width is a zoom dependant value (corresponding to page size)
bca3b81f 67 TimeWindow time_window;
f7afe191 68
69 // The current time is the time selected in the visible area by the user,
70 // not the scrollbar value.
bca3b81f 71 LttTime current_time;
72 LttvIAttribute * attributes;
e969fd8e 73
bca3b81f 74 struct _Tab * next;
75 MainWindow * mw;
716e4367 76
77 /* Traceset related information */
78 TracesetInfo * traceset_info;
e969fd8e 79};
80
2061e03d 81/**
82 * Remove menu and toolbar item when a module unloaded
83 */
84void main_window_remove_menu_item(lttv_constructor view_constructor);
85void main_window_remove_toolbar_item(lttv_constructor view_constructor);
86
e969fd8e 87#endif /* _MAIN_WINDOW_ */
88
89
This page took 0.025987 seconds and 4 git commands to generate.