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

ltt/branches/poly/include/lttv/gtkTraceSet.h
ltt/branches/poly/include/lttv/menu.h [new file with mode: 0644]
ltt/branches/poly/include/lttv/toolbar.h [new file with mode: 0644]

index 2cc493b72b25522bb09063f56a271419a0aff013..962a25d371f26958b5cb29f747ffbc2534f2aace 100644 (file)
@@ -24,7 +24,7 @@
  * @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);
 
 
 /**
@@ -35,7 +35,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);
 
 
 /**
@@ -47,7 +47,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);
 
 
 /**
@@ -58,7 +58,7 @@ 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);
 
 
 /**
diff --git a/ltt/branches/poly/include/lttv/menu.h b/ltt/branches/poly/include/lttv/menu.h
new file mode 100644 (file)
index 0000000..599dff2
--- /dev/null
@@ -0,0 +1,29 @@
+#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
diff --git a/ltt/branches/poly/include/lttv/toolbar.h b/ltt/branches/poly/include/lttv/toolbar.h
new file mode 100644 (file)
index 0000000..57bcd26
--- /dev/null
@@ -0,0 +1,28 @@
+#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;
+  char ** 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, char ** pixmap);
+
+gboolean lttv_toolbars_remove(LttvToolbars *h, lttv_constructor f);
+
+unsigned lttv_toolbars_number(LttvToolbars *h);
+
+#endif // TOOLBAR_H
This page took 0.025744 seconds and 4 git commands to generate.