remove files unneeded for lttv
[lttv.git] / lttv / lttv / modules / gui / lttvwindow / lttvwindow / mainwindow-private.h
CommitLineData
2d262115 1/* This file is part of the Linux Trace Toolkit viewer
2 * Copyright (C) 2003-2004 Xiangxiu Yang
3 *
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;
7 *
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.
12 *
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,
16 * MA 02111-1307, USA.
17 */
18
19#ifndef _MAIN_WINDOW_PRIVATE_
20#define _MAIN_WINDOW_PRIVATE_
21
22#include <gtk/gtk.h>
23
24#include <ltt/ltt.h>
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>
962e2228 30#include <lttv/filter.h>
b052368a 31//#include <lttvwindow/gtkmultivpaned.h>
2d262115 32#include <lttvwindow/mainwindow.h>
33
b052368a 34#define SCROLL_STEP_PER_PAGE 10.0
35
2d262115 36struct _TracesetInfo {
37 //FIXME? TracesetContext and stats in same or different variable ?
38 LttvTracesetStats * traceset_context;
39 LttvTraceset * traceset;
40};
41
42struct _MainWindow{
43 GtkWidget* mwindow; /* Main Window */
44 int window_width;
45
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 */
50
51 /* Child windows */
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 */
58
59 // lttv_trace_filter * filter; /* trace filter associated with the window */
60
61 /* Attributes for trace reading hooks local to the main window */
62 LttvIAttribute * attributes;
63
6ced96ef 64 //Tab * tab;
65 //Tab * current_tab;
2d262115 66
67};
68
69
70struct _Tab{
b052368a 71 GtkWidget *label;
e433e6d6 72 GtkWidget *top_widget;
b052368a 73 GtkWidget *vbox; /* contains viewer_container and scrollbar */
74 //GtkWidget *multivpaned;
75 GtkWidget *viewer_container;
76 GtkWidget *scrollbar;
e800cf84 77
f02b5e22 78 /* Paste zones */
79 GtkTooltips *tooltips;
80
e800cf84 81 /* time bar */
82 GtkWidget *MTimebar;
f02b5e22 83 GtkWidget *MEventBox1a;
84 GtkWidget *MText1a;
85 GtkWidget *MEventBox1b;
86 GtkWidget *MText1b;
e800cf84 87 GtkWidget *MEntry1;
88 GtkWidget *MText2;
89 GtkWidget *MEntry2;
90 GtkWidget *MText3a;
f02b5e22 91 GtkWidget *MEventBox3b;
e800cf84 92 GtkWidget *MText3b;
93 GtkWidget *MEntry3;
94 GtkWidget *MText4;
95 GtkWidget *MEntry4;
96 GtkWidget *MText5a;
f02b5e22 97 GtkWidget *MEventBox5b;
e800cf84 98 GtkWidget *MText5b;
99 GtkWidget *MEntry5;
100 GtkWidget *MText6;
101 GtkWidget *MEntry6;
102 GtkWidget *MText7;
58de9fc1 103 GtkWidget *MEventBox8;
104 GtkWidget *MText8;
105 GtkWidget *MEntry7;
106 GtkWidget *MText9;
107 GtkWidget *MEntry8;
108 GtkWidget *MText10;
2d262115 109
110 // startTime is the left of the visible area. Corresponds to the scrollbar
111 // value.
112 // Time_Width is a zoom dependant value (corresponding to page size)
113 TimeWindow time_window;
e800cf84 114 gboolean time_manager_lock;
2d262115 115
116 // The current time is the time selected in the visible area by the user,
117 // not the scrollbar value.
118 LttTime current_time;
e800cf84 119 gboolean current_time_manager_lock;
120
2d262115 121 LttvIAttribute * attributes;
122
6ced96ef 123 //struct _Tab * next;
2d262115 124 MainWindow * mw;
125
126 /* Traceset related information */
127 TracesetInfo * traceset_info;
128
dc5e5266 129 /* Filter to apply to the tab's traceset */
130 LttvFilter *filter;
131
2d262115 132 /* A list of time requested for the next process trace */
133 GSList *events_requests;
134 gboolean events_request_pending;
135 LttvAttribute *interrupted_state;
5698740e 136 gboolean stop_foreground;
2d262115 137};
138
139#endif /* _MAIN_WINDOW_PRIVATE_ */
140
141
This page took 0.059085 seconds and 4 git commands to generate.