00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GNC_BUSINESS_GNOME_UTILS_H_
00026 #define GNC_BUSINESS_GNOME_UTILS_H_
00027
00028 #include "gnc-book.h"
00029 #include "gncOwner.h"
00030 #include "gncBillTerm.h"
00031 #include "gncTaxTable.h"
00032 #include "gncInvoice.h"
00033
00034 #define GCONF_SECTION_ORDER "dialogs/business/order"
00035 #define GCONF_SECTION_JOB "dialogs/business/job"
00036 #define GCONF_SECTION_CUSTOMER "dialogs/business/customer"
00037 #define GCONF_SECTION_VENDOR "dialogs/business/vendor"
00038 #define GCONF_SECTION_EMPLOYEE "dialogs/business/employee"
00039
00040 GtkWidget * gnc_owner_select_create (GtkWidget *label, GtkWidget *hbox,
00041 GNCBook *book, GncOwner *owner);
00042
00043 GtkWidget * gnc_owner_edit_create (GtkWidget *label, GtkWidget *hbox,
00044 GNCBook *book, GncOwner *owner);
00045
00046 void gnc_owner_get_owner (GtkWidget *widget, GncOwner *owner);
00047 void gnc_owner_set_owner (GtkWidget *widget, GncOwner *owner);
00048
00049
00050
00051
00052
00053 GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, GNCBook *book,
00054 const GncOwner *owner,
00055 GncInvoice *invoice,
00056 GtkWidget *label);
00057
00058 GncInvoice * gnc_invoice_get_invoice (GtkWidget *widget);
00059 void gnc_invoice_set_invoice (GtkWidget *widget, GncInvoice *invoice);
00060 void gnc_invoice_set_owner (GtkWidget *widget, GncOwner *owner);
00061
00062
00063 GList * gnc_business_account_types (GncOwner *owner);
00064
00065
00066 void gnc_fill_account_select_combo (GtkWidget *combo, GNCBook *book,
00067 GList *acct_types);
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077 void gnc_ui_billterms_optionmenu (GtkWidget *omenu, GNCBook *book,
00078 gboolean none_ok, GncBillTerm **choice);
00079
00080
00081 void
00082 gnc_ui_taxtables_optionmenu (GtkWidget *omenu, GNCBook *book,
00083 gboolean none_ok, GncTaxTable **choice);
00084
00085
00086 void gnc_ui_taxincluded_optionmenu (GtkWidget *omenu, GncTaxIncluded *choice);
00087
00088
00089
00090
00091
00092
00093
00094
00095 void gnc_ui_optionmenu_set_changed_callback (GtkWidget *omenu,
00096 void (*changed_cb)(GtkWidget*,gpointer),
00097 gpointer cb_arg);
00098 gpointer gnc_ui_optionmenu_get_value (GtkWidget *omenu);
00099 void gnc_ui_optionmenu_set_value (GtkWidget *omenu, gpointer data);
00100
00101
00102 #endif