GnuCash 2.4.99
gnc-menu-extensions.h
00001 /********************************************************************\
00002  * gnc-menu-extensions.h -- functions to build dynamic menus        *
00003  * Copyright (C) 1999 Rob Browning                                  *
00004  *                                                                  *
00005  * This program is free software; you can redistribute it and/or    *
00006  * modify it under the terms of the GNU General Public License as   *
00007  * published by the Free Software Foundation; either version 2 of   *
00008  * the License, or (at your option) any later version.              *
00009  *                                                                  *
00010  * This program is distributed in the hope that it will be useful,  *
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00013  * GNU General Public License for more details.                     *
00014  *                                                                  *
00015  * You should have received a copy of the GNU General Public License*
00016  * along with this program; if not, contact:                        *
00017  *                                                                  *
00018  * Free Software Foundation           Voice:  +1-617-542-5942       *
00019  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00020  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00021 \********************************************************************/
00022 
00023 #ifndef GNC_MENU_EXTENSIONS_H
00024 #define GNC_MENU_EXTENSIONS_H
00025 
00026 #include <libguile.h>
00027 
00028 typedef struct _ExtensionInfo
00029 {
00030     SCM extension;
00031 
00032     GtkActionEntry ae;
00033     gchar *path;
00034     gchar *sort_key;
00035     const gchar *typeStr;
00036     GtkUIManagerItemType type;
00037     gboolean accel_assigned;
00038 } ExtensionInfo;
00039 
00040 
00041 #define ADDITIONAL_MENUS_PLACEHOLDER "AdditionalMenusPlaceholder"
00042 
00043 GSList *gnc_extensions_get_menu_list (void);
00044 void gnc_extension_invoke_cb (SCM extension, SCM window);
00045 
00052 void gnc_add_scm_extension(SCM extension);
00053 
00057 void gnc_extensions_shutdown(void);
00058 
00059 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines