more tab fixes
[lttv.git] / ltt / branches / poly / 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>
30#include <lttvwindow/gtkmultivpaned.h>
31#include <lttvwindow/mainwindow.h>
32
33struct _TracesetInfo {
34 //FIXME? TracesetContext and stats in same or different variable ?
35 LttvTracesetStats * traceset_context;
36 LttvTraceset * traceset;
37};
38
39struct _MainWindow{
40 GtkWidget* mwindow; /* Main Window */
41 int window_width;
42
43 /* Status bar information */
44 // guint MainSBarContextID; /* Context ID of main status bar */
45 // guint BegTimeSBarContextID; /* Context ID of BegTime status bar */
46 // guint EndTimeSBarContextID; /* Context ID of EndTime status bar */
47
48 /* Child windows */
49 //openTracesetWindow* OpenTracesetWindow;/* Window to get prof and proc file*/
50 //viewTimeFrameWindow* ViewTimeFrameWindow;/*Window to select time frame */
51 //gotoEventWindow* GotoEventWindow; /*search for event description*/
52 //openFilterWindow* OpenFilterWindow; /* Open a filter selection window */
53 GtkWidget* help_contents;/* Window to display help contents */
54 GtkWidget* about_box; /* Window about information */
55
56 // lttv_trace_filter * filter; /* trace filter associated with the window */
57
58 /* Attributes for trace reading hooks local to the main window */
59 LttvIAttribute * attributes;
60
61 Tab * tab;
62 Tab * current_tab;
63
64};
65
66
67struct _Tab{
68 GtkWidget * label;
69 GtkMultiVPaned * multi_vpaned;
70
71 // startTime is the left of the visible area. Corresponds to the scrollbar
72 // value.
73 // Time_Width is a zoom dependant value (corresponding to page size)
74 TimeWindow time_window;
75
76 // The current time is the time selected in the visible area by the user,
77 // not the scrollbar value.
78 LttTime current_time;
79 LttvIAttribute * attributes;
80
81 struct _Tab * next;
82 MainWindow * mw;
83
84 /* Traceset related information */
85 TracesetInfo * traceset_info;
86
87 /* A list of time requested for the next process trace */
88 GSList *events_requests;
89 gboolean events_request_pending;
90 LttvAttribute *interrupted_state;
91};
92
93#endif /* _MAIN_WINDOW_PRIVATE_ */
94
95
This page took 0.026185 seconds and 4 git commands to generate.