X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Fmainwindow.h;h=a949ed984153518bec78a26af1394c28732e1dd4;hb=2d262115fc06b5ffb6038207a6d0c1d5f81763c2;hp=74857c794737547859631003dc842105df2fb892;hpb=501e4e70320aeb56090ada4447958db1c2ed6616;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/mainwindow.h b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/mainwindow.h index 74857c79..a949ed98 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/mainwindow.h +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/mainwindow.h @@ -19,78 +19,20 @@ #ifndef _MAIN_WINDOW_ #define _MAIN_WINDOW_ -#include +#include -#include -#include -#include -#include +typedef struct _MainWindow MainWindow; +typedef struct _TimeWindow TimeWindow; +typedef struct _Tab Tab; +typedef struct _TracesetInfo TracesetInfo; -#include -#include -#include -#include +struct _TimeWindow { + LttTime start_time; + LttTime time_width; +}; -typedef struct _TracesetInfo { - //FIXME? TracesetContext and stats in same or different variable ? - LttvTracesetStats * traceset_context; - LttvTraceset * traceset; -} TracesetInfo ; -struct _MainWindow{ - GtkWidget* mwindow; /* Main Window */ - int window_width; - - /* Status bar information */ - // guint MainSBarContextID; /* Context ID of main status bar */ - // guint BegTimeSBarContextID; /* Context ID of BegTime status bar */ - // guint EndTimeSBarContextID; /* Context ID of EndTime status bar */ - - /* Child windows */ - //openTracesetWindow* OpenTracesetWindow;/* Window to get prof and proc file*/ - //viewTimeFrameWindow* ViewTimeFrameWindow;/*Window to select time frame */ - //gotoEventWindow* GotoEventWindow; /*search for event description*/ - //openFilterWindow* OpenFilterWindow; /* Open a filter selection window */ - GtkWidget* help_contents;/* Window to display help contents */ - GtkWidget* about_box; /* Window about information */ - - // lttv_trace_filter * filter; /* trace filter associated with the window */ - - /* Attributes for trace reading hooks local to the main window */ - LttvIAttribute * attributes; - - Tab * tab; - Tab * current_tab; - -}; - - -struct _Tab{ - GtkWidget * label; - GtkMultiVPaned * multi_vpaned; - - // startTime is the left of the visible area. Corresponds to the scrollbar - // value. - // Time_Width is a zoom dependant value (corresponding to page size) - TimeWindow time_window; - - // The current time is the time selected in the visible area by the user, - // not the scrollbar value. - LttTime current_time; - LttvIAttribute * attributes; - - struct _Tab * next; - MainWindow * mw; - - /* Traceset related information */ - TracesetInfo * traceset_info; - - /* A list of time requested for the next process trace */ - GArray *time_requests; - gboolean time_request_pending; -}; - #endif /* _MAIN_WINDOW_ */