|
GnuCash 2.4.99
|
00001 /* The following is code copied from Gnumeric 1.7.8 licensed under the 00002 * GNU General Public License version 2 and/or version 3. It is from the file 00003 * gnumeric/src/gui-util.h, and it has been modified slightly to work 00004 * within GnuCash. */ 00005 00006 /* Miguel de Icaza is not sure specifically who from the Gnumeric 00007 * community is the copyright owner of the code below, so, on his 00008 * recommendation, here is the full list of Gnumeric authors. 00009 * 00010 * Miguel de Icaza, creator. 00011 * Jody Goldberg, maintainer. 00012 * Harald Ashburner, Options pricers 00013 * Sean Atkinson, functions and X-Base importing. 00014 * Michel Berkelaar, Simplex algorithm for Solver (LP Solve). 00015 * Jean Brefort, Core charting engine. 00016 * Grandma Chema Celorio, Tester and sheet copy. 00017 * Frank Chiulli, OLE support. 00018 * Kenneth Christiansen, i18n, misc stuff. 00019 * Zbigniew Chyla, plugin system, i18n. 00020 * J.H.M. Dassen (Ray), debian packaging. 00021 * Jeroen Dirks, Simplex algorithm for Solver (LP Solve). 00022 * Tom Dyas, plugin support. 00023 * Gergo Erdi, Gnumeric hacker. 00024 * John Gotts, rpm packaging. 00025 * Andreas J. Guelzow, Gnumeric hacker. 00026 * Jon K. Hellan, Gnumeric hacker. 00027 * Ross Ihaka, special functions. 00028 * Jukka-Pekka Iivonen, numerous functions and tools. 00029 * Jakub Jelinek, Gnumeric hacker. 00030 * Chris Lahey, number format engine. 00031 * Adrian Likins, documentation, debugging. 00032 * Takashi Matsuda, original text plugin. 00033 * Michael Meeks, Excel and OLE2 importing. 00034 * Lutz Muller, SheetObject improvements. 00035 * Emmanuel Pacaud, Many plot types for charting engine. 00036 * Federico M. Quintero, canvas support. 00037 * Mark Probst, Guile support. 00038 * Rasca, HTML, troff, LaTeX exporters. 00039 * Vincent Renardias, original CSV support, French localization. 00040 * Ariel Rios, Guile support. 00041 * Uwe Steinmann, Paradox Importer. 00042 * Arturo Tena, OLE support. 00043 * Almer S. Tigelaar, Gnumeric hacker. 00044 * Bruno Unna, Excel bits. 00045 * Daniel Veillard, XML support. 00046 * Vladimir Vuksan, financial functions. 00047 * Morten Welinder, Gnumeric hacker and leak plugging demi-god. 00048 */ 00049 00050 #ifndef GNC_CSV_GNUMERIC_POPUP 00051 #define GNC_CSV_GNUMERIC_POPUP 00052 00053 #include <gtk/gtk.h> 00054 00055 typedef struct 00056 { 00057 char const *name; 00058 char const *pixmap; 00059 int display_filter; 00060 int sensitive_filter; 00061 00062 int index; 00063 } GnumericPopupMenuElement; 00064 00065 typedef gboolean (*GnumericPopupMenuHandler) (GnumericPopupMenuElement const *e, 00066 gpointer user_data); 00067 00068 /* Use this on menus that are popped up */ 00069 void gnumeric_popup_menu (GtkMenu *menu, GdkEventButton *event); 00070 00071 void gnumeric_create_popup_menu (GnumericPopupMenuElement const *elements, 00072 GnumericPopupMenuHandler handler, 00073 gpointer user_data, 00074 int display_filter, 00075 int sensitive_filter, 00076 GdkEventButton *event); 00077 00078 00079 #endif
1.7.4