1 #ifndef __GRISBI_WIN_H__ 2 #define __GRISBI_WIN_H__ 3 4 #include <gtk/gtk.h> 5 6 /*START_INCLUDE*/ 7 /*END_INCLUDE*/ 8 9 G_BEGIN_DECLS 10 11 #define GRISBI_WIN_TYPE (grisbi_win_get_type ()) 12 #define GRISBI_WIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRISBI_WIN_TYPE, GrisbiWin)) 13 #define GRISBI_IS_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GRISBI_WIN_TYPE)) 14 15 typedef struct _GrisbiWin GrisbiWin; 16 typedef struct _GrisbiWinClass GrisbiWinClass; 17 18 GType grisbi_win_get_type (void) G_GNUC_CONST; 19 20 void grisbi_win_close_window (GtkWindow *win); 21 22 void grisbi_win_form_expander_hide_frame (void); 23 gboolean grisbi_win_form_expander_is_expanded (void); 24 void grisbi_win_form_expander_show_frame (void); 25 void grisbi_win_form_label_align_right (GtkAllocation *allocation); 26 27 void grisbi_win_general_notebook_set_page (gint page); 28 GtkWidget * grisbi_win_get_account_page (void); 29 const gchar * grisbi_win_get_filename (GrisbiWin *win); 30 GtkWidget * grisbi_win_get_form_expander (void); 31 gpointer grisbi_win_get_form_organization (void); 32 GtkWidget * grisbi_win_get_label_last_statement (void); 33 GtkWidget * grisbi_win_get_notebook_general (void); 34 GtkWidget * grisbi_win_get_prefs_dialog (GrisbiWin *win); 35 GtkWidget * grisbi_win_get_stack_box (GrisbiWin *win); 36 GtkWidget * grisbi_win_get_vbox_transactions_list (GrisbiWin *win); 37 gpointer grisbi_win_get_w_etat (void); 38 gpointer grisbi_win_get_w_run (void); 39 40 void grisbi_win_headings_update_suffix (const gchar *suffix); 41 void grisbi_win_headings_update_title (gchar *title); 42 gboolean grisbi_win_headings_update_show_headings (void); 43 void grisbi_win_headings_sensitive_headings (gboolean sensitive); 44 45 gboolean grisbi_win_file_is_loading (void); 46 void grisbi_win_free_general_notebook (void); 47 void grisbi_win_free_general_vbox (void); 48 49 void grisbi_win_init_menubar (GrisbiWin *win, 50 gpointer app); 51 void grisbi_win_menu_move_to_acc_delete (void); 52 void grisbi_win_menu_move_to_acc_new (void); 53 void grisbi_win_menu_move_to_acc_update (gboolean active); 54 55 void grisbi_win_new_file_gui (void); 56 void grisbi_win_no_file_page_update (GrisbiWin *win); 57 58 gboolean grisbi_win_on_account_switch_page (GtkNotebook *notebook, 59 gpointer page, 60 guint page_number, 61 gpointer null); 62 63 void grisbi_win_set_filename (GrisbiWin *win, 64 const gchar *filename); 65 gboolean grisbi_win_set_form_expander_visible (gboolean visible, 66 gboolean transactions_list); 67 gboolean grisbi_win_set_form_organization (gpointer FormOrganization); 68 void grisbi_win_set_prefs_dialog (GrisbiWin *win, 69 GtkWidget *prefs_dialog); 70 void grisbi_win_set_size_and_position (GtkWindow *win); 71 gboolean grisbi_win_set_vbox_transactions_list (GrisbiWin *win, 72 GtkWidget *vbox); 73 gboolean grisbi_win_set_window_title (gint account_number); 74 75 void grisbi_win_stack_box_show (GrisbiWin *win, 76 const gchar *page_name); 77 void grisbi_win_status_bar_clear (void); 78 void grisbi_win_init_statusbar (GrisbiWin *win); 79 void grisbi_win_status_bar_message (gchar *message); 80 void grisbi_win_status_bar_set_font_size (gint font_size); 81 void grisbi_win_status_bar_stop_wait (gboolean force_update); 82 void grisbi_win_status_bar_wait (gboolean force_update); 83 gboolean grisbi_win_switch_form_expander (void); 84 85 void grisbi_win_update_all_toolbars (void); 86 G_END_DECLS 87 88 #endif /* __GRISBI_APP_H__ */ 89