move lttv to root
[lttv.git] / lttv / modules / gui / lttvwindow / lttvwindow / menu.h
diff --git a/lttv/modules/gui/lttvwindow/lttvwindow/menu.h b/lttv/modules/gui/lttvwindow/lttvwindow/menu.h
new file mode 100644 (file)
index 0000000..87ccdee
--- /dev/null
@@ -0,0 +1,46 @@
+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Xiangxiu Yang
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
+ * MA 02111-1307, USA.
+ */
+
+#ifndef MENU_H
+#define MENU_H
+
+#include <gtk/gtk.h>
+#include <lttvwindow/lttvwindow.h>
+
+
+typedef GArray LttvMenus;
+
+typedef struct _LttvMenuClosure {
+  lttvwindow_viewer_constructor con;
+  char * menu_path;
+  char * menu_text;
+  GtkWidget *widget;
+} LttvMenuClosure;
+
+
+LttvMenus *lttv_menus_new();
+
+void lttv_menus_destroy(LttvMenus *h);
+
+LttvMenuClosure lttv_menus_add(LttvMenus *h, lttvwindow_viewer_constructor f, char* menuPath, char * menuText, GtkWidget *widget);
+
+GtkWidget *lttv_menus_remove(LttvMenus *h, lttvwindow_viewer_constructor f);
+
+unsigned lttv_menus_number(LttvMenus *h);
+
+#endif // MENU_H
This page took 0.023627 seconds and 4 git commands to generate.