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 "gncOwner.h"
00029 #include "gncBillTerm.h"
00030 #include "gncTaxTable.h"
00031 #include "gncInvoice.h"
00032
00033 #define GCONF_SECTION_ORDER "dialogs/business/order"
00034 #define GCONF_SECTION_JOB "dialogs/business/job"
00035 #define GCONF_SECTION_CUSTOMER "dialogs/business/customer"
00036 #define GCONF_SECTION_VENDOR "dialogs/business/vendor"
00037 #define GCONF_SECTION_EMPLOYEE "dialogs/business/employee"
00038
00039 GtkWidget * gnc_owner_select_create (GtkWidget *label, GtkWidget *hbox,
00040 QofBook *book, GncOwner *owner);
00041
00042 GtkWidget * gnc_owner_edit_create (GtkWidget *label, GtkWidget *hbox,
00043 QofBook *book, GncOwner *owner);
00044
00045 void gnc_owner_get_owner (GtkWidget *widget, GncOwner *owner);
00046 void gnc_owner_set_owner (GtkWidget *widget, GncOwner *owner);
00047
00048
00049
00050
00051
00052 GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, QofBook *book,
00053 const GncOwner *owner,
00054 GncInvoice *invoice,
00055 GtkWidget *label);
00056
00057 GncInvoice * gnc_invoice_get_invoice (GtkWidget *widget);
00058 void gnc_invoice_set_invoice (GtkWidget *widget, GncInvoice *invoice);
00059 void gnc_invoice_set_owner (GtkWidget *widget, GncOwner *owner);
00060
00061
00062 GList * gnc_business_account_types (GncOwner *owner);
00063
00064
00065 GList * gnc_business_commodities (GncOwner *owner);
00066
00067
00068 void gnc_fill_account_select_combo (GtkWidget *combo, QofBook *book,
00069 GList *acct_types,
00070 GList *acct_commodities);
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080 void gnc_ui_billterms_optionmenu (GtkWidget *omenu, QofBook *book,
00081 gboolean none_ok, GncBillTerm **choice);
00082
00083
00084 void
00085 gnc_ui_taxtables_optionmenu (GtkWidget *omenu, QofBook *book,
00086 gboolean none_ok, GncTaxTable **choice);
00087
00088
00089 void gnc_ui_taxincluded_optionmenu (GtkWidget *omenu, GncTaxIncluded *choice);
00090
00091
00092
00093
00094
00095
00096
00097
00098 void gnc_ui_optionmenu_set_changed_callback (GtkWidget *omenu,
00099 void (*changed_cb)(GtkWidget*, gpointer),
00100 gpointer cb_arg);
00101 gpointer gnc_ui_optionmenu_get_value (GtkWidget *omenu);
00102 void gnc_ui_optionmenu_set_value (GtkWidget *omenu, gpointer data);
00103
00104
00105 #endif