GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-menu-extensions.h
1 /********************************************************************\
2  * gnc-menu-extensions.h -- functions to build dynamic menus *
3  * Copyright (C) 1999 Rob Browning *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License*
16  * along with this program; if not, contact: *
17  * *
18  * Free Software Foundation Voice: +1-617-542-5942 *
19  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
20  * Boston, MA 02110-1301, USA [email protected] *
21 \********************************************************************/
22 
23 #ifndef GNC_MENU_EXTENSIONS_H
24 #define GNC_MENU_EXTENSIONS_H
25 
26 #include <libguile.h>
27 
28 typedef struct _ExtensionInfo
29 {
30  SCM extension;
31 
32  GtkActionEntry ae;
33  gchar *path;
34  gchar *sort_key;
35  const gchar *typeStr;
36  GtkUIManagerItemType type;
37  gboolean accel_assigned;
39 
40 
41 #define ADDITIONAL_MENUS_PLACEHOLDER "AdditionalMenusPlaceholder"
42 
43 GSList *gnc_extensions_get_menu_list (void);
44 void gnc_extension_invoke_cb (SCM extension, SCM window);
45 
52 void gnc_add_scm_extension(SCM extension);
53 
57 void gnc_extensions_shutdown(void);
58 
59 #endif