1 /* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 Xiangxiu Yang
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License Version 2 as
6 * published by the Free Software Foundation;
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
19 #ifndef _MAIN_WINDOW_PRIVATE_
20 #define _MAIN_WINDOW_PRIVATE_
25 #include <lttv/attribute.h>
26 #include <lttv/traceset.h>
27 #include <lttv/tracecontext.h>
28 #include <lttv/hook.h>
29 #include <lttv/stats.h>
30 #include <lttv/filter.h>
31 //#include <lttvwindow/gtkmultivpaned.h>
32 #include <lttvwindow/mainwindow.h>
34 #define SCROLL_STEP_PER_PAGE 10.0
36 struct _TracesetInfo
{
37 //FIXME? TracesetContext and stats in same or different variable ?
38 LttvTracesetStats
* traceset_context
;
39 LttvTraceset
* traceset
;
43 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
* help_contents
;/* Window to display help contents */
57 GtkWidget
* about_box
; /* Window about information */
59 // lttv_trace_filter * filter; /* trace filter associated with the window */
61 /* Attributes for trace reading hooks local to the main window */
62 LttvIAttribute
* attributes
;
73 GtkWidget
*vbox
; /* contains viewer_container and scrollbar */
74 //GtkWidget *multivpaned;
75 GtkWidget
*viewer_container
;
79 GtkTooltips
*tooltips
;
83 GtkWidget
*MEventBox1a
;
85 GtkWidget
*MEventBox1b
;
91 GtkWidget
*MEventBox3b
;
97 GtkWidget
*MEventBox5b
;
104 // startTime is the left of the visible area. Corresponds to the scrollbar
106 // Time_Width is a zoom dependant value (corresponding to page size)
107 TimeWindow time_window
;
108 gboolean time_manager_lock
;
110 // The current time is the time selected in the visible area by the user,
111 // not the scrollbar value.
112 LttTime current_time
;
113 gboolean current_time_manager_lock
;
115 LttvIAttribute
* attributes
;
117 //struct _Tab * next;
120 /* Traceset related information */
121 TracesetInfo
* traceset_info
;
123 /* Filter to apply to the tab's traceset */
126 /* A list of time requested for the next process trace */
127 GSList
*events_requests
;
128 gboolean events_request_pending
;
129 LttvAttribute
*interrupted_state
;
132 #endif /* _MAIN_WINDOW_PRIVATE_ */