X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Finclude%2Flttv%2FmainWindow.h;h=dc0254f1259a1b684ad674a872edcd59dd588c0c;hb=2061e03dd5e8aa09fbed5b08ae702fe2eb33be06;hp=0a43bfa59f6d9750b19a034e6d56f49c064675df;hpb=f7afe191fd58f0bf4bab9c9514c261535b99d32b;p=lttv.git diff --git a/ltt/branches/poly/include/lttv/mainWindow.h b/ltt/branches/poly/include/lttv/mainWindow.h index 0a43bfa5..dc0254f1 100644 --- a/ltt/branches/poly/include/lttv/mainWindow.h +++ b/ltt/branches/poly/include/lttv/mainWindow.h @@ -42,7 +42,6 @@ typedef struct _TracesetInfo { 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 */ @@ -57,8 +56,6 @@ struct _mainWindow{ 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 */ /* Traceset related information */ @@ -70,27 +67,16 @@ struct _mainWindow{ tab * CurrentTab; WindowCreationData * winCreationData; -}; + GHashTable * hash_menu_item; + GHashTable * hash_toolbar_item; +}; -//struct _systemView{ -// gpointer EventDB; -// gpointer SystemInfo; -// gpointer Options; -// mainWindow * Window; -// struct _systemView * Next; -//}; 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) @@ -102,8 +88,15 @@ struct _tab{ LttvIAttribute * Attributes; 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_ */