31 #ifndef GNC_DATE_EDIT_H 32 #define GNC_DATE_EDIT_H 44 GNC_DATE_EDIT_SHOW_TIME = 1 << 0,
45 GNC_DATE_EDIT_24_HR = 1 << 1,
48 #define GNC_TYPE_DATE_EDIT (gnc_date_edit_get_type ()) 49 #define GNC_DATE_EDIT(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gnc_date_edit_get_type(), GNCDateEdit) 50 #define GNC_DATE_EDIT_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gnc_date_edit_get_type(), GNCDateEditClass) 51 #define GNC_IS_DATE_EDIT(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gnc_date_edit_get_type ()) 66 GtkWidget *date_entry;
67 GtkWidget *date_button;
69 GtkWidget *time_entry;
70 GtkWidget *time_combo;
85 gboolean popup_in_progress;
86 gboolean in_selected_handler;
91 GtkBoxClass parent_class;
96 GType gnc_date_edit_get_type (
void);
98 GtkWidget *gnc_date_edit_new (
time64 the_time,
99 int show_time,
int use_24_format);
117 GtkWidget *gnc_date_edit_new_glade (gchar *widget_name,
118 gchar *string1, gchar *string2,
119 gint int1, gint int2);
121 GtkWidget *gnc_date_edit_new_flags (
time64 the_time,
122 GNCDateEditFlags flags);
124 void gnc_date_edit_set_gdate (
GNCDateEdit *gde,
const GDate *date);
127 void gnc_date_edit_set_popup_range (
GNCDateEdit *gde,
128 int low_hour,
int up_hour);
130 void gnc_date_edit_get_gdate (
GNCDateEdit *gde, GDate *date);
135 GNCDateEditFlags flags);
138 void gnc_date_activates_default (
GNCDateEdit *gde, gboolean state);
141 void gnc_date_make_mnemonic_target (
GNCDateEdit *gde, GtkWidget *label);
Date and Time handling routines.
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...