From e969fd8ead1ce0d34c839d8598a24f3af768d42e Mon Sep 17 00:00:00 2001 From: yangxx Date: Wed, 27 Aug 2003 15:27:45 +0000 Subject: [PATCH] git-svn-id: http://ltt.polymtl.ca/svn@204 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/include/lttv/common.h | 19 ++++++ ltt/branches/poly/include/lttv/gtkcustom.h | 66 +++++++++++++++++++ ltt/branches/poly/include/lttv/mainWindow.h | 73 +++++++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 ltt/branches/poly/include/lttv/common.h create mode 100644 ltt/branches/poly/include/lttv/gtkcustom.h create mode 100644 ltt/branches/poly/include/lttv/mainWindow.h diff --git a/ltt/branches/poly/include/lttv/common.h b/ltt/branches/poly/include/lttv/common.h new file mode 100644 index 00000000..6ac9e305 --- /dev/null +++ b/ltt/branches/poly/include/lttv/common.h @@ -0,0 +1,19 @@ +#ifndef COMMON_H +#define COMMON_H + +#include +#include +#include + +typedef struct _mainWindow mainWindow; +typedef struct _systemView systemView; +typedef struct _tab tab; +typedef struct _TimeInterval TimeInterval; + +/* constructor of the viewer */ +typedef GtkWidget * (*lttv_constructor)(mainWindow * main_window); +typedef lttv_constructor view_constructor; + + + +#endif // COMMON_H diff --git a/ltt/branches/poly/include/lttv/gtkcustom.h b/ltt/branches/poly/include/lttv/gtkcustom.h new file mode 100644 index 00000000..2bd174bb --- /dev/null +++ b/ltt/branches/poly/include/lttv/gtkcustom.h @@ -0,0 +1,66 @@ + +#ifndef __GTK_CUSTOM_H__ +#define __GTK_CUSTOM_H__ + + +#include +#include +#include +#include + + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + + +#define GTK_TYPE_CUSTOM (gtk_custom_get_type ()) +#define GTK_CUSTOM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CUSTOM, GtkCustom)) +#define GTK_CUSTOM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CUSTOM, GtkCustomClass)) +#define GTK_IS_CUSTOM(obj ) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CUSTOM)) +#define GTK_IS_CUSTOM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CUSTOM)) +#define GTK_CUSTOM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CUSTOM, GtkCustomClass)) + + +typedef struct _GtkCustom GtkCustom; +typedef struct _GtkCustomClass GtkCustomClass; + +struct _GtkCustom +{ + GtkPaned container; + + /*< public >*/ + GtkPaned * firstPane; + GtkPaned * lastPane; + GtkPaned * focusedPane; + guint numChildren; + + GtkWidget * vbox; + // GtkWidget * scrollWindow; + // GtkWidget * viewport; + GtkWidget * hScrollbar; +}; + +struct _GtkCustomClass +{ + GtkPanedClass parent_class; +}; + + +GType gtk_custom_get_type (void) G_GNUC_CONST; +GtkWidget* gtk_custom_new (void); + +void gtk_custom_set_focus (GtkWidget * widget, gpointer user_data); +void gtk_custom_widget_add(GtkCustom * custom, GtkWidget * widget1); +void gtk_custom_widget_delete(GtkCustom * custom); +void gtk_custom_widget_move_up(GtkCustom * custom); +void gtk_custom_widget_move_down(GtkCustom * custom); + + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __GTK_CUSTOM_H__ */ diff --git a/ltt/branches/poly/include/lttv/mainWindow.h b/ltt/branches/poly/include/lttv/mainWindow.h new file mode 100644 index 00000000..2b31328c --- /dev/null +++ b/ltt/branches/poly/include/lttv/mainWindow.h @@ -0,0 +1,73 @@ +#ifndef _MAIN_WINDOW_ +#define _MAIN_WINDOW_ + +#include + +#include +#include +#include +#include + +#include +#include + +struct _TimeInterval{ + LttTime startTime; + LttTime endTime; +}; + + +struct _mainWindow{ + GtkWidget* MWindow; /* Main Window */ + systemView * SystemView; /* System view displayed in this window*/ + + /* 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* HelpContents;/* Window to display help contents */ + GtkWidget* AboutBox; /* Window about information */ + + LttvTracesetContext * traceset_context; + LttvTraceset * traceset; /* trace set associated with the window */ + // lttv_trace_filter * filter; /* trace filter associated with the window */ + + + tab * Tab; + tab * CurrentTab; + LttvIAttribute * Attributes; + +}; + + +struct _systemView{ + gpointer EventDB; + gpointer * SystemInfo; + gpointer * Options; + mainWindow * Window; + struct _systemView * Next; +}; + +struct _tab{ + GtkWidget * label; + GtkCustom * custom; + + LttTime traceStartTime; + LttTime traceEndTime; + LttTime startTime; + LttTime endTime; + LttTime currentTime; + LttvIAttribute * Attributes; + + struct _tab * Next; +}; + +#endif /* _MAIN_WINDOW_ */ + + -- 2.34.1