1 #ifndef _GSB_FORM_SCHEDULER_H 2 #define _GSB_FORM_SCHEDULER_H (1) 3 4 #include <gtk/gtk.h> 5 6 /* START_INCLUDE_H */ 7 /* END_INCLUDE_H */ 8 9 /* the the size of the scheduled part of the form, 10 * fixed here for now, but can become configurable easily 11 * because the filling function use that values for a table */ 12 #define SCHEDULED_WIDTH 6 13 #define SCHEDULED_HEIGHT 1 14 15 /* that enum is in the order of the widgets, if we switch 2 of them, 16 * they will be switched on the form */ 17 enum ScheduledFormWidget { 18 SCHEDULED_FORM_ACCOUNT = 0, 19 SCHEDULED_FORM_AUTO, 20 SCHEDULED_FORM_FREQUENCY_BUTTON, 21 SCHEDULED_FORM_LIMIT_DATE, 22 SCHEDULED_FORM_FREQUENCY_USER_ENTRY, 23 SCHEDULED_FORM_FREQUENCY_USER_BUTTON, 24 SCHEDULED_FORM_MAX_WIDGETS 25 }; 26 27 28 /* START_DECLARATION */ 29 gboolean gsb_form_scheduler_button_press_event (GtkWidget *entry, 30 GdkEventButton *ev, 31 gint *ptr_origin); 32 gboolean gsb_form_scheduler_change_account (GtkWidget *button, 33 gpointer null); 34 gboolean gsb_form_scheduler_clean (void); 35 gboolean gsb_form_scheduler_create (GtkWidget *table); 36 gboolean gsb_form_scheduler_entry_lose_focus (GtkWidget *entry, 37 GdkEventFocus *ev, 38 gint *ptr_origin); 39 gboolean gsb_form_scheduler_free_list (void); 40 gint gsb_form_scheduler_get_account (void); 41 GtkWidget * gsb_form_scheduler_get_element_widget (gint element_number); 42 gint gsb_form_scheduler_get_last_day_of_month_dialog (gint scheduled_number, 43 GDate *date); 44 gboolean gsb_form_scheduler_get_scheduler_part (gint scheduled_number); 45 gboolean gsb_form_scheduler_recover_splits_of_transaction (gint scheduled_transaction, 46 gint transaction_number); 47 gboolean gsb_form_scheduler_sensitive_buttons (gboolean sensitive); 48 gboolean gsb_form_scheduler_set (gint scheduled_number); 49 gboolean gsb_form_scheduler_set_frequency (gint frequency); 50 /* END_DECLARATION */ 51 #endif 52