32 #include <gdk/gdkkeysyms.h> 36 #include "gnc-locale-utils.h" 41 #include "pricecell-gnome.h" 47 # include <gdk/gdkwin32.h> 54 gnc_formula_cell_direct_update( BasicCell *bcell,
61 GdkEventKey *
event = gui_data;
65 if (event->type != GDK_KEY_PRESS)
68 lc = gnc_localeconv ();
78 switch (event->keyval)
83 GnucashSheet *sheet = (GnucashSheet *) bcell->gui_private;
84 const char *value = gnc_table_get_model_entry (sheet->table, bcell->cell_name);
86 gnc_basic_cell_set_value_internal (bcell, value);
87 bcell->changed = FALSE;
97 (GDK_MODIFIER_INTENT_DEFAULT_MOD_MASK)))
101 case GDK_KEY_KP_Enter:
103 gnc_formula_cell_set_value( cell, cell->cell.value );
112 case GDK_KEY_KP_Decimal:
119 gnc_basic_cell_insert_decimal(bcell,
121 ? lc->mon_decimal_point[0]
122 : lc->decimal_point[0],
131 gnc_formula_cell_gnome_new (
void)
135 cell = gnc_formula_cell_new ();
136 cell->direct_update = gnc_formula_cell_direct_update;
utility functions for the GnuCash UI
Public declarations of GnucashRegister class.
Private declarations for GnucashSheet class.
All type declarations for the whole Gnucash engine.
Declarations for the Table object.