git-svn-id: http://ltt.polymtl.ca/svn@327 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git] / ltt / branches / poly / include / lttv / mainWindow.h
index 0a43bfa59f6d9750b19a034e6d56f49c064675df..24c80da04cce3f92f284f9fd8c827f5d11b026b4 100644 (file)
@@ -18,10 +18,6 @@ typedef struct _WindowCreationData {
        char ** argv;
 } WindowCreationData;
 
-typedef struct _TimeWindow {
-       LttTime startTime;
-       LttTime Time_Width;
-} TimeWindow;
 
 typedef struct _TracesetInfo {
        gchar* path;
@@ -35,14 +31,13 @@ typedef struct _TracesetInfo {
          *before_event,
          *after_event;
         //FIXME? TracesetContext and stats in same or different variable ?
-       LttvTracesetStats * TracesetContext;
+       LttvTracesetStats * traceset_context;
        LttvTraceset * traceset;
 } TracesetInfo ;
 
 
-struct _mainWindow{
-  GtkWidget*      MWindow;            /* Main Window */
-//  systemView *    SystemView;         /* System view displayed in this window*/
+struct _MainWindow{
+  GtkWidget*      mwindow;            /* Main Window */
 
   /* Status bar information */
   //  guint         MainSBarContextID;    /* Context ID of main status bar */
@@ -54,56 +49,50 @@ struct _mainWindow{
   //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 */
+  GtkWidget*           help_contents;/* Window to display help contents */
+  GtkWidget*           about_box;    /* Window  about information */
  
-  //LttvTracesetContext * traceset_context; 
-  //LttvTraceset * traceset;  /* trace set associated with the window */
   //  lttv_trace_filter * filter; /* trace filter associated with the window */
 
   /* Traceset related information */
-  TracesetInfo * Traceset_Info; 
+  TracesetInfo * traceset_info; 
   /* Attributes for trace reading hooks local to the main window */
-  LttvIAttribute * Attributes;
+  LttvIAttribute * attributes;
   
-  tab * Tab;
-  tab * CurrentTab;
+  Tab * tab;
+  Tab * current_tab;
 
-  WindowCreationData * winCreationData; 
-};
+  WindowCreationData * win_creation_data; 
 
+  GHashTable * hash_menu_item;
+  GHashTable * hash_toolbar_item;
+};
 
-//struct _systemView{
-//  gpointer             EventDB;
-//  gpointer             SystemInfo;
-//  gpointer             Options;
-//  mainWindow         * Window;
-//  struct _systemView * Next;
-//};
 
-struct _tab{
+struct _Tab{
   GtkWidget * label;
   GtkCustom * custom;
-
-  
- // Will have to read directly at the main window level, as we want
- // to be able to modify a traceset on the fly.
-  //LttTime traceStartTime;
-  //LttTime traceEndTime;
-  
+   
   // 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;
+  TimeWindow time_window;
   
   // The current time is the time selected in the visible area by the user,
   // not the scrollbar value.
-  LttTime currentTime;
-  LttvIAttribute * Attributes;
+  LttTime current_time;
+  LttvIAttribute * attributes;
 
-  struct _tab * Next;
+  struct _Tab * next;
+  MainWindow  * mw;
 };
 
+/**
+ * Remove menu and toolbar item when a module unloaded
+ */
+void main_window_remove_menu_item(lttv_constructor view_constructor);
+void main_window_remove_toolbar_item(lttv_constructor view_constructor);
+
 #endif /* _MAIN_WINDOW_ */
 
 
This page took 0.024633 seconds and 4 git commands to generate.