small change of main window API
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 3 Sep 2003 16:32:40 +0000 (16:32 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 3 Sep 2003 16:32:40 +0000 (16:32 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@216 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/API/Makefile.am
ltt/branches/poly/lttv/modules/gui/API/gtkTraceSet.c
ltt/branches/poly/lttv/modules/gui/API/menu.c
ltt/branches/poly/lttv/modules/gui/API/menu.h [deleted file]
ltt/branches/poly/lttv/modules/gui/API/toolbar.c
ltt/branches/poly/lttv/modules/gui/API/toolbar.h [deleted file]

index 099b98d14be83bdf177f59dba2e6027c8baf6c6a..f6d40e8b4b866e3f6966a168b84de7bfafffc639 100644 (file)
@@ -11,6 +11,6 @@ AM_CFLAGS += $(GTK_CFLAGS)
 LIBS += $(GLIB_LIBS)
 LIBS += $(GTK_LIBS)
 
-lib_LTLIBRARIES = libmainwindowapi.la
-libmainwindowapi_la_SOURCES = toolbar.c menu.c gtkTraceSet.c    
+lib_LTLIBRARIES = libmainWinApi.la
+libmainWinApi_la_SOURCES = toolbar.c menu.c gtkTraceSet.c
 EXTRA_DIST =
index 3519937878acdb7e456e2ab907e873cc5187a2a0..f53b068f0f8f241b7cf4fe971d6e358d7d67ef8f 100644 (file)
@@ -16,8 +16,8 @@
 #include <lttv/mainWindow.h>   
 #include <lttv/gtkTraceSet.h>
 #include <lttv/processTrace.h>
-#include "toolbar.h"
-#include "menu.h"
+#include <lttv/toolbar.h>
+#include <lttv/menu.h>
 
 /**
  * Internal function parts
@@ -28,7 +28,7 @@
  * @param view_constructor constructor of the viewer.
  */
 
-void RemoveToolbar(void *view_constructor)
+void RemoveToolbar(lttv_constructor view_constructor)
 {
   g_printf("Toolbar for the viewer will be removed\n");
 }
@@ -38,7 +38,7 @@ void RemoveToolbar(void *view_constructor)
  * @param view_constructor constructor of the viewer.
  */
 
-void RemoveMenu(void *view_constructor)
+void RemoveMenu(lttv_constructor view_constructor)
 {
   g_printf("Menu entry for the viewer will be removed\n");
 }
@@ -97,7 +97,7 @@ void SetFilter(mainWindow * main_win, gpointer filter)
  * @param view_constructor constructor of the viewer. 
  */
 
-void ToolbarItemReg(GdkPixmap * pixmap, char *tooltip, void *view_constructor)
+void ToolbarItemReg(char ** pixmap, char *tooltip, lttv_constructor view_constructor)
 {
   LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvToolbars * toolbar;
@@ -123,7 +123,7 @@ void ToolbarItemReg(GdkPixmap * pixmap, char *tooltip, void *view_constructor)
  * a reference to find out where the pixmap and tooltip are.
  */
 
-void ToolbarItemUnreg(void *view_constructor)
+void ToolbarItemUnreg(lttv_constructor view_constructor)
 {
   LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvToolbars * toolbar;
@@ -147,7 +147,7 @@ void ToolbarItemUnreg(void *view_constructor)
  * @param view_constructor constructor of the viewer. 
  */
 
-void MenuItemReg(char *menu_path, char *menu_text, void *view_constructor)
+void MenuItemReg(char *menu_path, char *menu_text, lttv_constructor view_constructor)
 {
   LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvMenus * menu;
@@ -172,14 +172,14 @@ void MenuItemReg(char *menu_path, char *menu_text, void *view_constructor)
  * a reference to find out where the menu_path and menu_text are.
  */
 
-void MenuItemUnreg(void *view_constructor)
+void MenuItemUnreg(lttv_constructor view_constructor)
 {
   LttvIAttribute *attributes_global = LTTV_IATTRIBUTE(lttv_global_attributes());
   LttvMenus * menu;
   LttvAttributeValue value;
 
   g_assert(lttv_iattribute_find_by_path(attributes_global,
-                              "viewers/menu", LTTV_POINTER, &value));
+                              "viewers/menu", LTTV_POINTER, &value));
   menu = (LttvMenus*)*(value.v_pointer);
 
   if(lttv_menus_remove(menu, view_constructor))  
index e4e0ed8e0d17653656256b8c073428cc88a0e8b9..acaba636cbb0de7b46e9457e05fc3d52e35775ab 100644 (file)
@@ -1,5 +1,4 @@
-//#include <lttv/menu.h>
-#include "menu.h"
+#include <lttv/menu.h>
 
 
 inline LttvMenus *lttv_menus_new() {
diff --git a/ltt/branches/poly/lttv/modules/gui/API/menu.h b/ltt/branches/poly/lttv/modules/gui/API/menu.h
deleted file mode 100644 (file)
index 599dff2..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef MENU_H
-#define MENU_H
-
-#include <lttv/common.h>
-
-/* constructor of the viewer */
-//typedef GtkWidget* (*lttv_constructor)(void * main_window);
-
-
-typedef GArray LttvMenus;
-
-typedef struct _lttv_menu_closure {
-  lttv_constructor con;
-  char * menuPath;
-  char * menuText;
-} lttv_menu_closure;
-
-
-LttvMenus *lttv_menus_new();
-
-void lttv_menus_destroy(LttvMenus *h);
-
-void lttv_menus_add(LttvMenus *h, lttv_constructor f, char* menuPath, char * menuText);
-
-gboolean lttv_menus_remove(LttvMenus *h, lttv_constructor f);
-
-unsigned lttv_menus_number(LttvMenus *h);
-
-#endif // MENU_H
index 263e5c04edde01ca49d5614dfe98999216c64434..48dc5947449b47f8e285599c6873c40b3f2baca8 100644 (file)
@@ -1,5 +1,4 @@
-//#include <lttv/toolbar.h>
-#include "toolbar.h"
+#include <lttv/toolbar.h>
 
 
 inline LttvToolbars *lttv_toolbars_new() {
@@ -13,7 +12,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, GdkPixmap * pixmap)
+inline void lttv_toolbars_add(LttvToolbars *h, lttv_constructor f, char* tooltip, char ** pixmap)
 {
   lttv_toolbar_closure c;
 
diff --git a/ltt/branches/poly/lttv/modules/gui/API/toolbar.h b/ltt/branches/poly/lttv/modules/gui/API/toolbar.h
deleted file mode 100644 (file)
index 28119ad..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#ifndef TOOLBAR_H
-#define TOOLBAR_H
-
-#include <lttv/common.h>
-
-/* constructor of the viewer */
-//typedef GtkWidget* (*lttv_constructor)(void * main_window);
-
-
-typedef GArray LttvToolbars;
-
-typedef struct _lttv_toolbar_closure {
-  lttv_constructor con;
-  char * tooltip;
-  GdkPixmap * pixmap;
-} lttv_toolbar_closure;
-
-LttvToolbars *lttv_toolbars_new();
-
-void lttv_toolbars_destroy(LttvToolbars *h);
-
-void lttv_toolbars_add(LttvToolbars *h, lttv_constructor f, char* tooltip, GdkPixmap * pixmap);
-
-gboolean lttv_toolbars_remove(LttvToolbars *h, lttv_constructor f);
-
-unsigned lttv_toolbars_number(LttvToolbars *h);
-
-#endif // TOOLBAR_H
This page took 0.027614 seconds and 4 git commands to generate.