X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=trunk%2Fltt%2Ftags%2FLinuxTraceToolkitViewer-0.10.0-pre-115102007%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Ftoolbar.h;fp=trunk%2Fltt%2Ftags%2FLinuxTraceToolkitViewer-0.10.0-pre-115102007%2Flttv%2Fmodules%2Fgui%2Flttvwindow%2Flttvwindow%2Ftoolbar.h;h=2fb4b395a515f3ac764d5cd3a737cf30914dbe29;hb=3d6e46e15a388687ca1c5b7e2eec831eccd59d2d;hp=0000000000000000000000000000000000000000;hpb=ec7a5af61127aa50a1839eee5be99ce53494c57b;p=lttv.git diff --git a/trunk/ltt/tags/LinuxTraceToolkitViewer-0.10.0-pre-115102007/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.h b/trunk/ltt/tags/LinuxTraceToolkitViewer-0.10.0-pre-115102007/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.h new file mode 100644 index 00000000..2fb4b395 --- /dev/null +++ b/trunk/ltt/tags/LinuxTraceToolkitViewer-0.10.0-pre-115102007/lttv/modules/gui/lttvwindow/lttvwindow/toolbar.h @@ -0,0 +1,48 @@ +/* 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 TOOLBAR_H +#define TOOLBAR_H + +#include +#include + +typedef GArray LttvToolbars; + +typedef struct _LttvToolbarClosure { + lttvwindow_viewer_constructor con; + char * tooltip; + char ** pixmap; + GtkWidget *widget; +} LttvToolbarClosure; + +LttvToolbars *lttv_toolbars_new(); + +void lttv_toolbars_destroy(LttvToolbars *h); + +LttvToolbarClosure lttv_toolbars_add(LttvToolbars *h, + lttvwindow_viewer_constructor f, + char* tooltip, + char ** pixmap, + GtkWidget *widget); + +GtkWidget *lttv_toolbars_remove(LttvToolbars *h, lttvwindow_viewer_constructor f); + +unsigned lttv_toolbars_number(LttvToolbars *h); + +#endif // TOOLBAR_H