31 #ifndef GNC_DATE_EDIT_H
32 #define GNC_DATE_EDIT_H
40 GNC_DATE_EDIT_SHOW_TIME = 1 << 0,
41 GNC_DATE_EDIT_24_HR = 1 << 1,
42 GNC_DATE_EDIT_WEEK_STARTS_ON_MONDAY = 1 << 2,
45 #define GNC_TYPE_DATE_EDIT (gnc_date_edit_get_type ())
46 #define GNC_DATE_EDIT(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, gnc_date_edit_get_type(), GNCDateEdit)
47 #define GNC_DATE_EDIT_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, gnc_date_edit_get_type(), GNCDateEditClass)
48 #define GNC_IS_DATE_EDIT(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, gnc_date_edit_get_type ())
63 GtkWidget *date_entry;
64 GtkWidget *date_button;
66 GtkWidget *time_entry;
67 GtkWidget *time_combo;
82 gboolean popup_in_progress;
83 gboolean in_selected_handler;
88 GtkHBoxClass parent_class;
93 GType gnc_date_edit_get_type (
void);
95 GtkWidget *gnc_date_edit_new (
time64 the_time,
96 int show_time,
int use_24_format);
97 GtkWidget *gnc_date_edit_new_ts (
Timespec the_time,
98 int show_time,
int use_24_format);
116 GtkWidget *gnc_date_edit_new_glade (gchar *widget_name,
117 gchar *string1, gchar *string2,
118 gint int1, gint int2);
120 GtkWidget *gnc_date_edit_new_flags (
time64 the_time,
121 GNCDateEditFlags flags);
123 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);
137 GNCDateEditFlags flags);
140 void gnc_date_activates_default (
GNCDateEdit *gde, gboolean state);
143 void gnc_date_make_mnemonic_target (
GNCDateEdit *gde, GtkWidget *label);
Date and Time handling routines.
Use a 64-bit unsigned int timespec.