GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-csv-gnumeric-popup.h
1 /* The following is code copied from Gnumeric 1.7.8 licensed under the
2  * GNU General Public License version 2 and/or version 3. It is from the file
3  * gnumeric/src/gui-util.h, and it has been modified slightly to work
4  * within GnuCash. */
5 
6 /* Miguel de Icaza is not sure specifically who from the Gnumeric
7  * community is the copyright owner of the code below, so, on his
8  * recommendation, here is the full list of Gnumeric authors.
9  *
10  * Miguel de Icaza, creator.
11  * Jody Goldberg, maintainer.
12  * Harald Ashburner, Options pricers
13  * Sean Atkinson, functions and X-Base importing.
14  * Michel Berkelaar, Simplex algorithm for Solver (LP Solve).
15  * Jean Brefort, Core charting engine.
16  * Grandma Chema Celorio, Tester and sheet copy.
17  * Frank Chiulli, OLE support.
18  * Kenneth Christiansen, i18n, misc stuff.
19  * Zbigniew Chyla, plugin system, i18n.
20  * J.H.M. Dassen (Ray), debian packaging.
21  * Jeroen Dirks, Simplex algorithm for Solver (LP Solve).
22  * Tom Dyas, plugin support.
23  * Gergo Erdi, Gnumeric hacker.
24  * John Gotts, rpm packaging.
25  * Andreas J. Guelzow, Gnumeric hacker.
26  * Jon K. Hellan, Gnumeric hacker.
27  * Ross Ihaka, special functions.
28  * Jukka-Pekka Iivonen, numerous functions and tools.
29  * Jakub Jelinek, Gnumeric hacker.
30  * Chris Lahey, number format engine.
31  * Adrian Likins, documentation, debugging.
32  * Takashi Matsuda, original text plugin.
33  * Michael Meeks, Excel and OLE2 importing.
34  * Lutz Muller, SheetObject improvements.
35  * Emmanuel Pacaud, Many plot types for charting engine.
36  * Federico M. Quintero, canvas support.
37  * Mark Probst, Guile support.
38  * Rasca, HTML, troff, LaTeX exporters.
39  * Vincent Renardias, original CSV support, French localization.
40  * Ariel Rios, Guile support.
41  * Uwe Steinmann, Paradox Importer.
42  * Arturo Tena, OLE support.
43  * Almer S. Tigelaar, Gnumeric hacker.
44  * Bruno Unna, Excel bits.
45  * Daniel Veillard, XML support.
46  * Vladimir Vuksan, financial functions.
47  * Morten Welinder, Gnumeric hacker and leak plugging demi-god.
48  */
49 
50 #ifndef GNC_CSV_GNUMERIC_POPUP
51 #define GNC_CSV_GNUMERIC_POPUP
52 
53 #include <gtk/gtk.h>
54 
55 typedef struct
56 {
57  char const *name;
58  char const *pixmap;
59  int display_filter;
60  int sensitive_filter;
61 
62  int index;
64 
65 typedef gboolean (*GnumericPopupMenuHandler) (GnumericPopupMenuElement const *e,
66  gpointer user_data);
67 
68 /* Use this on menus that are popped up */
69 void gnumeric_popup_menu (GtkMenu *menu, GdkEventButton *event);
70 
71 void gnumeric_create_popup_menu (GnumericPopupMenuElement const *elements,
72  GnumericPopupMenuHandler handler,
73  gpointer user_data,
74  int display_filter,
75  int sensitive_filter,
76  GdkEventButton *event);
77 
78 
79 #endif