type name change : lttv_constructor -> lttvwindow_viewer_constructor
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 4 May 2004 23:39:37 +0000 (23:39 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Tue, 4 May 2004 23:39:37 +0000 (23:39 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@515 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/common.h
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/mainwindow.h
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/menu.h
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/test_main.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.h
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/viewer.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/viewer.h

index 8a228fbab8b9b465d9fc5c69c3c3897031f87f24..0a514509807449595d7d4d13ecb1d9da2b621ba2 100644 (file)
@@ -61,7 +61,7 @@ gboolean get_filter_selection(LttvTracesetSelector *s, char *title, char * colum
 void * create_tab(MainWindow * parent, MainWindow * current_window,
                  GtkNotebook * notebook, char * label);
 
-void insert_viewer(GtkWidget* widget, view_constructor constructor);
+void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor);
 void update_filter(LttvTracesetSelector *s,  GtkTreeStore *store );
 
 void checkbox_changed(GtkTreeView *treeview,
@@ -153,13 +153,13 @@ insert_viewer_wrap(GtkWidget *menuitem, gpointer user_data)
 {
   guint val = 20;
 
-  insert_viewer((GtkWidget*)menuitem, (view_constructor)user_data);
+  insert_viewer((GtkWidget*)menuitem, (lttvwindow_viewer_constructor)user_data);
   //  selected_hook(&val);
 }
 
 
 /* internal functions */
-void insert_viewer(GtkWidget* widget, view_constructor constructor)
+void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor)
 {
   GtkMultiVPaned * multi_vpaned;
   MainWindow * mw_data;  
@@ -1737,7 +1737,7 @@ void insert_menu_toolbar_item(MainWindow * mw, gpointer user_data)
 {
   int i;
   GdkPixbuf *pixbuf;
-  view_constructor constructor;
+  lttvwindow_viewer_constructor constructor;
   LttvMenus * menu;
   LttvToolbars * toolbar;
   lttv_menu_closure *menu_item;
index e41a73575027ed030f5a53b7b3f86ecaeb2c3fd7..815264798490f5fbddffe735b4a60c6a4d71afa9 100644 (file)
@@ -31,9 +31,8 @@ typedef struct _MainWindow MainWindow;
 typedef struct _Tab Tab;
 
 /* constructor of the viewer */
-typedef GtkWidget * (*lttv_constructor)(MainWindow * main_window, 
-                           LttvTracesetSelector * s, char *key);
-typedef lttv_constructor view_constructor;
+typedef GtkWidget * (*lttvwindow_viewer_constructor)
+                (MainWindow * main_window, LttvTracesetSelector * s, char *key);
 
 typedef struct _TimeWindow {
        LttTime start_time;
index 934968722ef7021015fc2eef4f8a349e5b9986e1..f0c0e6a1fc54ea739b594c58ed8fe409442090d8 100644 (file)
@@ -92,8 +92,8 @@ struct _Tab{
 /**
  * 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);
+void main_window_remove_menu_item(lttvwindow_viewer_constructor view_constructor);
+void main_window_remove_toolbar_item(lttvwindow_viewer_constructor view_constructor);
 
 #endif /* _MAIN_WINDOW_ */
 
index 32c35c2c766b401d102cae5a9ab681a203acdc9a..66033323e144a493b28b9002a1f9ebd1a5e481bd 100644 (file)
@@ -32,7 +32,7 @@ inline void lttv_menus_destroy(LttvMenus *h) {
   g_array_free(h, TRUE);
 }
 
-inline void lttv_menus_add(LttvMenus *h, lttv_constructor f, char* menuPath, char* menuText)
+inline void lttv_menus_add(LttvMenus *h, lttvwindow_viewer_constructor f, char* menuPath, char* menuText)
 {
   lttv_menu_closure c;
 
@@ -45,7 +45,7 @@ inline void lttv_menus_add(LttvMenus *h, lttv_constructor f, char* menuPath, cha
   g_array_append_val(h,c);
 }
 
-gboolean lttv_menus_remove(LttvMenus *h, lttv_constructor f)
+gboolean lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f)
 {
   lttv_menu_closure * tmp;
   gint i;
index 3253bf7500c11c13fab5c726d74fc2f96a59e96b..ae519785c94646a71c544860f109f19630dfffc3 100644 (file)
 
 #include <lttvwindow/common.h>
 
-/* constructor of the viewer */
-//typedef GtkWidget* (*lttv_constructor)(void * main_window);
-
-
 typedef GArray LttvMenus;
 
 typedef struct _lttv_menu_closure {
-  lttv_constructor con;
+  lttvwindow_viewer_constructor con;
   char * menuPath;
   char * menuText;
 } lttv_menu_closure;
@@ -38,9 +34,9 @@ LttvMenus *lttv_menus_new();
 
 void lttv_menus_destroy(LttvMenus *h);
 
-void lttv_menus_add(LttvMenus *h, lttv_constructor f, char* menuPath, char * menuText);
+void lttv_menus_add(LttvMenus *h, lttvwindow_viewer_constructor f, char* menuPath, char * menuText);
 
-gboolean lttv_menus_remove(LttvMenus *h, lttv_constructor f);
+gboolean lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f);
 
 unsigned lttv_menus_number(LttvMenus *h);
 
index 7b31ac6355fec9cb6da8c6641fd6230169021380..02ea36c3a7d8f6bccdfc4715bac58fb35319c3ef 100644 (file)
@@ -18,8 +18,6 @@
 /* global variable */
 systemView * gSysView;
 
-typedef view_constructor (* constructor)();
-constructor get_constructor = NULL;
 typedef void (*call_Event_Selected_Hook)(void * call_data);
 call_Event_Selected_Hook selected_hook = NULL;
 GModule *gm;
index 2a1dbb10d57fb50cc6af0ec162e899b6c937370a..8a39ae74fb67ee97c2b3a4164404318c14c4ec78 100644 (file)
@@ -32,7 +32,7 @@ inline void lttv_toolbars_destroy(LttvToolbars *h) {
   g_array_free(h, TRUE);
 }
 
-inline void lttv_toolbars_add(LttvToolbars *h, lttv_constructor f, char* tooltip, char ** pixmap)
+inline void lttv_toolbars_add(LttvToolbars *h, lttvwindow_viewer_constructor f, char* tooltip, char ** pixmap)
 {
   lttv_toolbar_closure c;
 
@@ -45,7 +45,7 @@ inline void lttv_toolbars_add(LttvToolbars *h, lttv_constructor f, char* tooltip
   g_array_append_val(h,c);
 }
 
-gboolean lttv_toolbars_remove(LttvToolbars *h, lttv_constructor f)
+gboolean lttv_toolbars_remove(LttvToolbars *h, lttvwindow_viewer_constructor f)
 {
   lttv_toolbar_closure * tmp;
   gint i;
index 681311b66a386cac9298e482b1b4b0ae588d45ec..7e5df0c4b0a5d6cbb8ac4fb122ed501d3ebe92b6 100644 (file)
 
 #include <lttvwindow/common.h>
 
-/* constructor of the viewer */
-//typedef GtkWidget* (*lttv_constructor)(void * main_window);
-
-
 typedef GArray LttvToolbars;
 
 typedef struct _lttv_toolbar_closure {
-  lttv_constructor con;
+  lttvwindow_viewer_constructor con;
   char * tooltip;
   char ** pixmap;
 } lttv_toolbar_closure;
@@ -37,9 +33,9 @@ LttvToolbars *lttv_toolbars_new();
 
 void lttv_toolbars_destroy(LttvToolbars *h);
 
-void lttv_toolbars_add(LttvToolbars *h, lttv_constructor f, char* tooltip, char ** pixmap);
+void lttv_toolbars_add(LttvToolbars *h, lttvwindow_viewer_constructor f, char* tooltip, char ** pixmap);
 
-gboolean lttv_toolbars_remove(LttvToolbars *h, lttv_constructor f);
+gboolean lttv_toolbars_remove(LttvToolbars *h, lttvwindow_viewer_constructor f);
 
 unsigned lttv_toolbars_number(LttvToolbars *h);
 
index 0f109283d7d7aa30b440b95448a5ff24f535b811..16ff5e4de9c176a67f3661eabe0eca008db059eb 100644 (file)
@@ -97,7 +97,7 @@ void SetFilter(MainWindow * main_win, gpointer filter)
  * @param view_constructor constructor of the viewer. 
  */
 
-void toolbar_item_reg(char ** pixmap, char *tooltip, lttv_constructor view_constructor)
+void toolbar_item_reg(char ** pixmap, char *tooltip, lttvwindow_viewer_constructor view_constructor)
 {
   LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvToolbars * toolbar;
@@ -123,7 +123,7 @@ void toolbar_item_reg(char ** pixmap, char *tooltip, lttv_constructor view_const
  * a reference to find out where the pixmap and tooltip are.
  */
 
-void toolbar_item_unreg(lttv_constructor view_constructor)
+void toolbar_item_unreg(lttvwindow_viewer_constructor view_constructor)
 {
   LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvToolbars * toolbar;
@@ -148,7 +148,7 @@ void toolbar_item_unreg(lttv_constructor view_constructor)
  * @param view_constructor constructor of the viewer. 
  */
 
-void menu_item_reg(char *menu_path, char *menu_text, lttv_constructor view_constructor)
+void menu_item_reg(char *menu_path, char *menu_text, lttvwindow_viewer_constructor view_constructor)
 {
   LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvMenus * menu;
@@ -173,7 +173,7 @@ void menu_item_reg(char *menu_path, char *menu_text, lttv_constructor view_const
  * a reference to find out where the menu_path and menu_text are.
  */
 
-void menu_item_unreg(lttv_constructor view_constructor)
+void menu_item_unreg(lttvwindow_viewer_constructor view_constructor)
 {
   LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvMenus * menu;
index 906093aa62fccfb8c64f023738463449588b80c7..c244b7a00978995db05186974eb45d0569f9910e 100644 (file)
@@ -116,7 +116,7 @@ set_hpane_dividor
  * @param view_constructor constructor of the viewer. 
  */
 
-void toolbar_item_reg(char ** pixmap, char *tooltip, lttv_constructor view_constructor);
+void lttvwindow_viewer_register_toolbar_item(char ** pixmap, char *tooltip, lttvwindow_viewer_constructor view_constructor);
 
 
 /**
@@ -127,7 +127,7 @@ void toolbar_item_reg(char ** pixmap, char *tooltip, lttv_constructor view_const
  * a reference to find out where the pixmap and tooltip are.
  */
 
-void toolbar_item_unreg(lttv_constructor view_constructor);
+void toolbar_item_unreg(lttvwindow_viewer_constructor view_constructor);
 
 
 /**
@@ -139,7 +139,7 @@ void toolbar_item_unreg(lttv_constructor view_constructor);
  * @param view_constructor constructor of the viewer. 
  */
 
-void menu_item_reg(char *menu_path, char *menu_text, lttv_constructor view_constructor);
+void menu_item_reg(char *menu_path, char *menu_text, lttvwindow_viewer_constructor view_constructor);
 
 
 /**
@@ -150,7 +150,7 @@ void menu_item_reg(char *menu_path, char *menu_text, lttv_constructor view_const
  * a reference to find out where the menu_path and menu_text are.
  */
 
-void menu_item_unreg(lttv_constructor view_constructor);
+void menu_item_unreg(lttvwindow_viewer_constructor view_constructor);
 
 
 /**
This page took 0.031685 seconds and 4 git commands to generate.