27 #ifndef GNC_AMOUNT_EDIT_H 28 #define GNC_AMOUNT_EDIT_H 39 #define GNC_TYPE_AMOUNT_EDIT (gnc_amount_edit_get_type ()) 40 G_DECLARE_FINAL_TYPE (GNCAmountEdit, gnc_amount_edit, GNC, AMOUNT_EDIT, GtkBox)
51 GtkWidget *gnc_amount_edit_new (
void);
59 GtkWidget *gnc_amount_edit_gtk_entry (GNCAmountEdit *gae);
68 void gnc_amount_edit_set_amount (GNCAmountEdit *gae,
78 void gnc_amount_edit_set_damount (GNCAmountEdit *gae,
89 gnc_numeric gnc_amount_edit_get_amount (GNCAmountEdit *gae);
99 double gnc_amount_edit_get_damount (GNCAmountEdit *gae);
119 gint gnc_amount_edit_expr_is_valid (GNCAmountEdit *gae,
137 gboolean gnc_amount_edit_evaluate (GNCAmountEdit *gae, GError **error);
146 void gnc_amount_edit_set_print_info (GNCAmountEdit *gae,
156 void gnc_amount_edit_set_fraction (GNCAmountEdit *gae,
int fraction);
165 void gnc_amount_edit_set_evaluate_on_enter (GNCAmountEdit *gae,
166 gboolean evaluate_on_enter);
175 void gnc_amount_edit_set_validate_on_change (GNCAmountEdit *gae,
176 gboolean validate_on_change);
186 void gnc_amount_edit_select_region (GNCAmountEdit *gae,
197 void gnc_amount_edit_show_warning_symbol (GNCAmountEdit *gae, gboolean show);
206 void gnc_amount_edit_make_mnemonic_target (GNCAmountEdit *gae, GtkWidget *label);
utility functions for the GnuCash UI