32 #include <gdk/gdkkeysyms.h>
36 #include "gnc-locale-utils.h"
39 #include "formulacell.h"
40 #include "formulacell-gnome.h"
41 #include "pricecell-gnome.h"
44 # include <gdk/gdkwin32.h>
51 gnc_formula_cell_direct_update(
BasicCell *bcell,
58 GdkEventKey *
event = gui_data;
62 if (event->type != GDK_KEY_PRESS)
65 lc = gnc_localeconv ();
76 if (event->hardware_keycode == VK_DECIMAL)
77 event->keyval = GDK_KP_Decimal;
79 switch (event->keyval)
83 (GDK_CONTROL_MASK | GDK_MOD1_MASK | GDK_SHIFT_MASK)))
87 case GDK_KEY_KP_Enter:
89 gnc_formula_cell_set_value( cell, cell->cell.value );
98 case GDK_KEY_KP_Decimal:
105 gnc_basic_cell_insert_decimal(bcell,
107 ? lc->mon_decimal_point[0]
108 : lc->decimal_point[0],
117 gnc_formula_cell_gnome_new (
void)
121 cell = gnc_formula_cell_new ();
122 cell->direct_update = gnc_formula_cell_direct_update;
utility functions for the GnuCash UI
All type declarations for the whole Gnucash engine.