31 #ifndef GNC_DATE_DELTA_H
32 #define GNC_DATE_DELTA_H
38 GNC_DATE_DELTA_MONTHS,
40 GNC_DATE_DELTA_NUM_UNITS
46 GNC_DATE_DELTA_FUTURE,
47 GNC_DATE_DELTA_NUM_POLARITY
48 } GNCDateDeltaPolarity;
50 #define GNC_TYPE_DATE_DELTA (gnc_date_delta_get_type())
51 #define GNC_DATE_DELTA(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, GNC_TYPE_DATE_DELTA , GNCDateDelta)
52 #define GNC_DATE_DELTA_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, GNC_TYPE_DATE_DELTA, GNCDateDeltaClass)
53 #define GNC_IS_DATE_DELTA(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, GNC_TYPE_DATE_DELTA)
59 GtkWidget *value_spin;
60 GtkWidget *units_combo;
61 GtkWidget *polarity_combo;
63 GNCDateDeltaUnits units;
64 GNCDateDeltaPolarity polarity;
66 gboolean show_polarity;
71 GtkHBoxClass parent_class;
78 GType gnc_date_delta_get_type (
void);
80 GtkWidget *gnc_date_delta_new (gboolean show_polarity);
82 void gnc_date_delta_set_value (
GNCDateDelta *gdd,
int value);
85 void gnc_date_delta_set_units (
GNCDateDelta *gdd, GNCDateDeltaUnits units);
86 GNCDateDeltaUnits gnc_date_delta_get_units (
GNCDateDelta *gdd);
89 GNCDateDeltaPolarity polarity);
90 GNCDateDeltaPolarity gnc_date_delta_get_polarity (
GNCDateDelta *gdd);
92 void gnc_date_delta_show_polarity (
GNCDateDelta *gdd, gboolean show_polarity);