r18200 - gnucash/trunk/src/business - Replace GNCBook by QofBook. Currently, GNCBook is #define'd to be QofBook. An upcoming change will create GncBook as a subclass
Phil Longstaff
plongstaff at code.gnucash.org
Mon Jul 13 12:41:03 EDT 2009
Author: plongstaff
Date: 2009-07-13 12:41:02 -0400 (Mon, 13 Jul 2009)
New Revision: 18200
Trac: http://svn.gnucash.org/trac/changeset/18200
Modified:
gnucash/trunk/src/business/business-gnome/business-gnome-utils.c
gnucash/trunk/src/business/business-gnome/business-gnome-utils.h
gnucash/trunk/src/business/business-gnome/dialog-billterms.c
gnucash/trunk/src/business/business-gnome/dialog-billterms.h
gnucash/trunk/src/business/business-gnome/dialog-customer.c
gnucash/trunk/src/business/business-gnome/dialog-date-close.c
gnucash/trunk/src/business/business-gnome/dialog-date-close.h
gnucash/trunk/src/business/business-gnome/dialog-employee.c
gnucash/trunk/src/business/business-gnome/dialog-invoice.c
gnucash/trunk/src/business/business-gnome/dialog-job.c
gnucash/trunk/src/business/business-gnome/dialog-order.c
gnucash/trunk/src/business/business-gnome/dialog-order.h
gnucash/trunk/src/business/business-gnome/dialog-payment.c
gnucash/trunk/src/business/business-gnome/dialog-payment.h
gnucash/trunk/src/business/business-gnome/dialog-vendor.c
gnucash/trunk/src/business/business-ledger/gncEntryLedger.c
gnucash/trunk/src/business/business-ledger/gncEntryLedger.h
gnucash/trunk/src/business/business-ledger/gncEntryLedgerP.h
gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.c
gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.h
gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.i
Log:
Replace GNCBook by QofBook. Currently, GNCBook is #define'd to be QofBook. An upcoming change will create GncBook as a subclass
of QofBook, so this needs to be cleaned up.
Modified: gnucash/trunk/src/business/business-gnome/business-gnome-utils.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/business-gnome-utils.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/business-gnome-utils.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -57,7 +57,7 @@
} GNCSearchType;
static GtkWidget * gnc_owner_new (GtkWidget *label, GtkWidget *hbox,
- GNCBook *book, GncOwner *owner,
+ QofBook *book, GncOwner *owner,
GNCSearchType type)
{
GtkWidget *edit;
@@ -129,7 +129,7 @@
}
GtkWidget * gnc_owner_select_create (GtkWidget *label, GtkWidget *hbox,
- GNCBook *book, GncOwner *owner)
+ QofBook *book, GncOwner *owner)
{
g_return_val_if_fail (hbox != NULL, NULL);
g_return_val_if_fail (book != NULL, NULL);
@@ -139,7 +139,7 @@
}
GtkWidget * gnc_owner_edit_create (GtkWidget *label, GtkWidget *hbox,
- GNCBook *book, GncOwner *owner)
+ QofBook *book, GncOwner *owner)
{
g_return_val_if_fail (hbox != NULL, NULL);
g_return_val_if_fail (book != NULL, NULL);
@@ -175,7 +175,7 @@
typedef struct _invoice_select_info {
GtkWidget *label;
- GNCBook *book;
+ QofBook *book;
GncOwner owner;
gboolean have_owner;
} GncISI;
@@ -225,7 +225,7 @@
gtk_label_set_text(GTK_LABEL(isi->label), label);
}
-GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, GNCBook *book,
+GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, QofBook *book,
const GncOwner *owner,
GncInvoice *invoice,
GtkWidget *label)
@@ -304,7 +304,7 @@
}
void
-gnc_fill_account_select_combo (GtkWidget *combo, GNCBook *book,
+gnc_fill_account_select_combo (GtkWidget *combo, QofBook *book,
GList *acct_types, GList *acct_commodities)
{
GtkListStore *store;
@@ -396,10 +396,10 @@
typedef struct {
gint component_id;
GtkWidget * omenu;
- GNCBook * book;
+ QofBook * book;
gboolean none_ok;
const char * (*get_name)(gpointer);
- GList * (*get_list)(GNCBook*);
+ GList * (*get_list)(QofBook*);
gboolean building_menu;
gpointer result;
@@ -493,9 +493,9 @@
}
static OpMenuData *
-make_generic_optionmenu (GtkWidget *omenu, GNCBook *book,
+make_generic_optionmenu (GtkWidget *omenu, QofBook *book,
gboolean none_ok, GNCIdType type_name,
- GList * (*get_list)(GNCBook*),
+ GList * (*get_list)(QofBook*),
GenericLookup_t get_name,
gpointer *result)
{
@@ -610,7 +610,7 @@
* created.
*/
void
-gnc_ui_billterms_optionmenu (GtkWidget *omenu, GNCBook *book,
+gnc_ui_billterms_optionmenu (GtkWidget *omenu, QofBook *book,
gboolean none_ok, GncBillTerm **choice)
{
if (!omenu || !book) return;
@@ -622,7 +622,7 @@
}
void
-gnc_ui_taxtables_optionmenu (GtkWidget *omenu, GNCBook *book,
+gnc_ui_taxtables_optionmenu (GtkWidget *omenu, QofBook *book,
gboolean none_ok, GncTaxTable **choice)
{
if (!omenu || !book) return;
Modified: gnucash/trunk/src/business/business-gnome/business-gnome-utils.h
===================================================================
--- gnucash/trunk/src/business/business-gnome/business-gnome-utils.h 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/business-gnome-utils.h 2009-07-13 16:41:02 UTC (rev 18200)
@@ -38,10 +38,10 @@
#define GCONF_SECTION_EMPLOYEE "dialogs/business/employee"
GtkWidget * gnc_owner_select_create (GtkWidget *label, GtkWidget *hbox,
- GNCBook *book, GncOwner *owner);
+ QofBook *book, GncOwner *owner);
GtkWidget * gnc_owner_edit_create (GtkWidget *label, GtkWidget *hbox,
- GNCBook *book, GncOwner *owner);
+ QofBook *book, GncOwner *owner);
void gnc_owner_get_owner (GtkWidget *widget, GncOwner *owner);
void gnc_owner_set_owner (GtkWidget *widget, GncOwner *owner);
@@ -50,7 +50,7 @@
/* An invoice select widget..
* the owner, invoice, and label parameters are optional
*/
-GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, GNCBook *book,
+GtkWidget * gnc_invoice_select_create (GtkWidget *hbox, QofBook *book,
const GncOwner *owner,
GncInvoice *invoice,
GtkWidget *label);
@@ -66,7 +66,7 @@
GList * gnc_business_commodities (GncOwner *owner);
/* Fill in a combo box with the appropriate list of accounts */
-void gnc_fill_account_select_combo (GtkWidget *combo, GNCBook *book,
+void gnc_fill_account_select_combo (GtkWidget *combo, QofBook *book,
GList *acct_types,
GList *acct_commodities);
@@ -78,12 +78,12 @@
* then that will be the default option setting when the menu is
* created.
*/
-void gnc_ui_billterms_optionmenu (GtkWidget *omenu, GNCBook *book,
+void gnc_ui_billterms_optionmenu (GtkWidget *omenu, QofBook *book,
gboolean none_ok, GncBillTerm **choice);
/* Same thing except for the tax tables */
void
-gnc_ui_taxtables_optionmenu (GtkWidget *omenu, GNCBook *book,
+gnc_ui_taxtables_optionmenu (GtkWidget *omenu, QofBook *book,
gboolean none_ok, GncTaxTable **choice);
/* Build an option menu for choosing a GncTaxIncluded */
Modified: gnucash/trunk/src/business/business-gnome/dialog-billterms.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-billterms.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-billterms.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -81,7 +81,7 @@
BillTermNB notebook;
GncBillTerm * current_term;
- GNCBook * book;
+ QofBook * book;
gint component_id;
};
@@ -657,14 +657,14 @@
find_handler (gpointer find_data, gpointer user_data)
{
BillTermsWindow *btw = user_data;
- GNCBook *book = find_data;
+ QofBook *book = find_data;
return (btw != NULL && btw->book == book);
}
/* Create a billterms window */
BillTermsWindow *
-gnc_ui_billterms_window_new (GNCBook *book)
+gnc_ui_billterms_window_new (QofBook *book)
{
BillTermsWindow *btw;
GladeXML *xml;
@@ -760,7 +760,7 @@
#if 0
/* Create a new billterms by name */
GncBillTerm *
-gnc_ui_billterms_new_from_name (GNCBook *book, const char *name)
+gnc_ui_billterms_new_from_name (QofBook *book, const char *name)
{
BillTermsWindow *btw;
Modified: gnucash/trunk/src/business/business-gnome/dialog-billterms.h
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-billterms.h 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-billterms.h 2009-07-13 16:41:02 UTC (rev 18200)
@@ -29,7 +29,7 @@
#include "gnc-book.h"
/* Create a billterms window */
-BillTermsWindow * gnc_ui_billterms_window_new (GNCBook *book);
+BillTermsWindow * gnc_ui_billterms_window_new (QofBook *book);
/* Destroy a billterms window */
void gnc_ui_billterms_window_destroy (BillTermsWindow *ttw);
Modified: gnucash/trunk/src/business/business-gnome/dialog-customer.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-customer.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-customer.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -70,7 +70,7 @@
} CustomerDialogType;
struct _customer_select_window {
- GNCBook * book;
+ QofBook * book;
QueryNew * q;
};
@@ -115,7 +115,7 @@
CustomerDialogType dialog_type;
GUID customer_guid;
gint component_id;
- GNCBook * book;
+ QofBook * book;
GncCustomer * created_customer;
GncTaxTable * taxtable;
@@ -422,7 +422,7 @@
}
static CustomerWindow *
-gnc_customer_new_window (GNCBook *bookp, GncCustomer *cust)
+gnc_customer_new_window (QofBook *bookp, GncCustomer *cust)
{
CustomerWindow *cw;
GladeXML *xml;
@@ -640,7 +640,7 @@
}
CustomerWindow *
-gnc_ui_customer_new (GNCBook *bookp)
+gnc_ui_customer_new (QofBook *bookp)
{
CustomerWindow *cw;
@@ -770,7 +770,7 @@
}
GNCSearchWindow *
-gnc_customer_search (GncCustomer *start, GNCBook *book)
+gnc_customer_search (GncCustomer *start, QofBook *book)
{
QueryNew *q, *q2 = NULL;
GNCIdType type = GNC_CUSTOMER_MODULE_NAME;
Modified: gnucash/trunk/src/business/business-gnome/dialog-date-close.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-date-close.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-date-close.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -48,7 +48,7 @@
Timespec *ts, *ts2;
GList * acct_types;
GList * acct_commodities;
- GNCBook *book;
+ QofBook *book;
Account *acct;
char **memo;
gboolean retval;
@@ -230,7 +230,7 @@
gboolean ok_is_default,
gboolean set_default_acct,
GList * acct_types, GList * acct_commodities,
- GNCBook *book, GncBillTerm *terms,
+ QofBook *book, GncBillTerm *terms,
/* Returned Data... */
Timespec *ddue, Timespec *post,
char **memo, Account **acct, gboolean *answer)
@@ -345,7 +345,7 @@
const char *date_label_message,
const char *acct_label_message,
gboolean ok_is_default,
- GList * acct_types, GNCBook *book,
+ GList * acct_types, QofBook *book,
/* Returned Data... */
Timespec *date, Account **acct)
{
Modified: gnucash/trunk/src/business/business-gnome/dialog-date-close.h
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-date-close.h 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-date-close.h 2009-07-13 16:41:02 UTC (rev 18200)
@@ -54,7 +54,7 @@
gboolean ok_is_default,
gboolean set_default_acct,
GList * acct_types, GList * acct_commodities,
- GNCBook *book, GncBillTerm *terms,
+ QofBook *book, GncBillTerm *terms,
/* Returned Data... */
Timespec *ddue, Timespec *post,
char **memo, Account **acct, gboolean *answer);
@@ -87,7 +87,7 @@
const char *date_label_message,
const char *acct_label_message,
gboolean ok_is_default,
- GList * acct_types, GNCBook *book,
+ GList * acct_types, QofBook *book,
/* Returned Data... */
Timespec *date, Account **acct);
Modified: gnucash/trunk/src/business/business-gnome/dialog-employee.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-employee.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-employee.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -66,7 +66,7 @@
} EmployeeDialogType;
struct _employee_select_window {
- GNCBook * book;
+ QofBook * book;
QueryNew * q;
};
@@ -100,7 +100,7 @@
EmployeeDialogType dialog_type;
GUID employee_guid;
gint component_id;
- GNCBook * book;
+ QofBook * book;
GncEmployee * created_employee;
};
@@ -373,7 +373,7 @@
}
static EmployeeWindow *
-gnc_employee_new_window (GNCBook *bookp,
+gnc_employee_new_window (QofBook *bookp,
GncEmployee *employee)
{
EmployeeWindow *ew;
@@ -567,7 +567,7 @@
}
EmployeeWindow *
-gnc_ui_employee_new (GNCBook *bookp)
+gnc_ui_employee_new (QofBook *bookp)
{
EmployeeWindow *ew;
@@ -671,7 +671,7 @@
}
GNCSearchWindow *
-gnc_employee_search (GncEmployee *start, GNCBook *book)
+gnc_employee_search (GncEmployee *start, QofBook *book)
{
GNCIdType type = GNC_EMPLOYEE_MODULE_NAME;
struct _employee_select_window *sw;
Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -108,7 +108,7 @@
AS_STRING_FUNC(InvoiceDialogType, ENUM_INVOICE_TYPE)
struct _invoice_select_window {
- GNCBook * book;
+ QofBook * book;
GncOwner * owner;
QueryNew * q;
GncOwner owner_def;
@@ -172,7 +172,7 @@
InvoiceDialogType dialog_type;
GUID invoice_guid;
gint component_id;
- GNCBook * book;
+ QofBook * book;
GncInvoice * created_invoice;
GncOwner owner;
GncOwner job;
@@ -1730,7 +1730,7 @@
}
static InvoiceWindow *
-gnc_invoice_new_page (GNCBook *bookp, InvoiceDialogType type,
+gnc_invoice_new_page (QofBook *bookp, InvoiceDialogType type,
GncInvoice *invoice, GncOwner *owner,
GncMainWindow *window)
{
@@ -2083,7 +2083,7 @@
}
static InvoiceWindow *
-gnc_invoice_window_new_invoice (GNCBook *bookp, GncOwner *owner,
+gnc_invoice_window_new_invoice (QofBook *bookp, GncOwner *owner,
GncInvoice *invoice)
{
InvoiceWindow *iw;
@@ -2217,7 +2217,7 @@
}
InvoiceWindow *
-gnc_ui_invoice_new (GncOwner *ownerp, GNCBook *bookp)
+gnc_ui_invoice_new (GncOwner *ownerp, QofBook *bookp)
{
InvoiceWindow *iw;
GncOwner owner;
@@ -2296,7 +2296,7 @@
}
GNCSearchWindow *
-gnc_invoice_search (GncInvoice *start, GncOwner *owner, GNCBook *book)
+gnc_invoice_search (GncInvoice *start, GncOwner *owner, QofBook *book)
{
GNCIdType type = GNC_INVOICE_MODULE_NAME;
struct _invoice_select_window *sw;
@@ -2554,7 +2554,7 @@
}
DialogQueryList *
-gnc_invoice_show_bills_due (GNCBook *book, double days_in_advance)
+gnc_invoice_show_bills_due (QofBook *book, double days_in_advance)
{
GNCIdType type = GNC_INVOICE_MODULE_NAME;
Query *q;
@@ -2629,7 +2629,7 @@
void
gnc_invoice_remind_bills_due (void)
{
- GNCBook *book;
+ QofBook *book;
gint days;
if (!gnc_current_session_exist()) return;
Modified: gnucash/trunk/src/business/business-gnome/dialog-job.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-job.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-job.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -61,7 +61,7 @@
} JobDialogType;
struct _job_select_window {
- GNCBook * book;
+ QofBook * book;
GncOwner * owner;
QueryNew * q;
GncOwner owner_def;
@@ -78,7 +78,7 @@
JobDialogType dialog_type;
GUID job_guid;
gint component_id;
- GNCBook * book;
+ QofBook * book;
GncJob * created_job;
GncOwner owner;
@@ -286,7 +286,7 @@
}
static JobWindow *
-gnc_job_new_window (GNCBook *bookp, GncOwner *owner, GncJob *job)
+gnc_job_new_window (QofBook *bookp, GncOwner *owner, GncJob *job)
{
JobWindow *jw;
GladeXML *xml;
@@ -386,7 +386,7 @@
}
GncJob *
-gnc_ui_job_new_return_handle (GncOwner *owner, GNCBook *book)
+gnc_ui_job_new_return_handle (GncOwner *owner, QofBook *book)
{
JobWindow *jw;
if (!book) return NULL;
@@ -395,7 +395,7 @@
}
JobWindow *
-gnc_ui_job_new (GncOwner *ownerp, GNCBook *bookp)
+gnc_ui_job_new (GncOwner *ownerp, QofBook *bookp)
{
JobWindow *jw;
GncOwner owner;
@@ -503,7 +503,7 @@
}
GNCSearchWindow *
-gnc_job_search (GncJob *start, GncOwner *owner, GNCBook *book)
+gnc_job_search (GncJob *start, GncOwner *owner, QofBook *book)
{
QueryNew *q, *q2 = NULL;
GNCIdType type = GNC_JOB_MODULE_NAME;
Modified: gnucash/trunk/src/business/business-gnome/dialog-order.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-order.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-order.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -67,7 +67,7 @@
} OrderDialogType;
struct _order_select_window {
- GNCBook * book;
+ QofBook * book;
GncOwner * owner;
QueryNew * q;
GncOwner owner_def;
@@ -95,7 +95,7 @@
OrderDialogType dialog_type;
GUID order_guid;
gint component_id;
- GNCBook * book;
+ QofBook * book;
GncOrder * created_order;
GncOwner owner;
@@ -522,7 +522,7 @@
}
static OrderWindow *
-gnc_order_new_window (GNCBook *bookp, OrderDialogType type,
+gnc_order_new_window (QofBook *bookp, OrderDialogType type,
GncOrder *order, GncOwner *owner)
{
OrderWindow *ow;
@@ -641,7 +641,7 @@
}
static OrderWindow *
-gnc_order_window_new_order (GNCBook *bookp, GncOwner *owner)
+gnc_order_window_new_order (QofBook *bookp, GncOwner *owner)
{
OrderWindow *ow;
GladeXML *xml;
@@ -720,7 +720,7 @@
}
OrderWindow *
-gnc_ui_order_new (GncOwner *ownerp, GNCBook *bookp)
+gnc_ui_order_new (GncOwner *ownerp, QofBook *bookp)
{
OrderWindow *ow;
GncOwner owner;
@@ -789,7 +789,7 @@
}
GNCSearchWindow *
-gnc_order_search (GncOrder *start, GncOwner *owner, GNCBook *book)
+gnc_order_search (GncOrder *start, GncOwner *owner, QofBook *book)
{
GNCIdType type = GNC_ORDER_MODULE_NAME;
struct _order_select_window *sw;
Modified: gnucash/trunk/src/business/business-gnome/dialog-order.h
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-order.h 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-order.h 2009-07-13 16:41:02 UTC (rev 18200)
@@ -33,11 +33,11 @@
/* Create and edit an order */
OrderWindow * gnc_ui_order_edit (GncOrder *order);
-OrderWindow * gnc_ui_order_new (GncOwner *owner, GNCBook *book);
+OrderWindow * gnc_ui_order_new (GncOwner *owner, QofBook *book);
/* Search for orders */
GNCSearchWindow * gnc_order_search (GncOrder *start, GncOwner *owner,
- GNCBook *book);
+ QofBook *book);
/*
* These callbacks are for use with the gnc_general_search widget
Modified: gnucash/trunk/src/business/business-gnome/dialog-payment.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-payment.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-payment.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -63,7 +63,7 @@
GtkWidget * acct_tree;
gint component_id;
- GNCBook * book;
+ QofBook * book;
GncOwner owner;
GncInvoice * invoice;
GList * acct_types;
@@ -395,7 +395,7 @@
}
static PaymentWindow *
-new_payment_window (GncOwner *owner, GNCBook *book, GncInvoice *invoice)
+new_payment_window (GncOwner *owner, QofBook *book, GncInvoice *invoice)
{
PaymentWindow *pw;
GladeXML *xml;
@@ -533,7 +533,7 @@
}
PaymentWindow *
-gnc_ui_payment_new_with_invoice (GncOwner *owner, GNCBook *book,
+gnc_ui_payment_new_with_invoice (GncOwner *owner, QofBook *book,
GncInvoice *invoice)
{
GncOwner owner_def;
@@ -551,7 +551,7 @@
}
PaymentWindow *
-gnc_ui_payment_new (GncOwner *owner, GNCBook *book)
+gnc_ui_payment_new (GncOwner *owner, QofBook *book)
{
return gnc_ui_payment_new_with_invoice (owner, book, NULL);
}
Modified: gnucash/trunk/src/business/business-gnome/dialog-payment.h
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-payment.h 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-payment.h 2009-07-13 16:41:02 UTC (rev 18200)
@@ -31,9 +31,9 @@
#include "gncInvoice.h"
/* Create a payment window */
-PaymentWindow * gnc_ui_payment_new (GncOwner *owner, GNCBook *book);
+PaymentWindow * gnc_ui_payment_new (GncOwner *owner, QofBook *book);
PaymentWindow * gnc_ui_payment_new_with_invoice (GncOwner *owner,
- GNCBook *book,
+ QofBook *book,
GncInvoice *invoice);
/* Destroy a payment window */
Modified: gnucash/trunk/src/business/business-gnome/dialog-vendor.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-vendor.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-gnome/dialog-vendor.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -66,7 +66,7 @@
} VendorDialogType;
struct _vendor_select_window {
- GNCBook * book;
+ QofBook * book;
QueryNew * q;
};
@@ -99,7 +99,7 @@
VendorDialogType dialog_type;
GUID vendor_guid;
gint component_id;
- GNCBook * book;
+ QofBook * book;
GncVendor * created_vendor;
GncTaxTable * taxtable;
@@ -344,7 +344,7 @@
}
static VendorWindow *
-gnc_vendor_new_window (GNCBook *bookp, GncVendor *vendor)
+gnc_vendor_new_window (QofBook *bookp, GncVendor *vendor)
{
VendorWindow *vw;
GladeXML *xml;
@@ -495,7 +495,7 @@
}
VendorWindow *
-gnc_ui_vendor_new (GNCBook *bookp)
+gnc_ui_vendor_new (QofBook *bookp)
{
VendorWindow *vw;
@@ -635,7 +635,7 @@
}
GNCSearchWindow *
-gnc_vendor_search (GncVendor *start, GNCBook *book)
+gnc_vendor_search (GncVendor *start, QofBook *book)
{
GNCIdType type = GNC_VENDOR_MODULE_NAME;
struct _vendor_select_window *sw;
Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedger.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedger.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedger.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -264,7 +264,7 @@
}
/* Create and return a new GncEntry Ledger */
-GncEntryLedger * gnc_entry_ledger_new (GNCBook *book, GncEntryLedgerType type)
+GncEntryLedger * gnc_entry_ledger_new (QofBook *book, GncEntryLedgerType type)
{
GncEntryLedger *ledger;
Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedger.h
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedger.h 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedger.h 2009-07-13 16:41:02 UTC (rev 18200)
@@ -79,7 +79,7 @@
/** Prototypes ***************************************************/
/* Create and return a new GncEntry Ledger */
-GncEntryLedger * gnc_entry_ledger_new (GNCBook *book, GncEntryLedgerType type);
+GncEntryLedger * gnc_entry_ledger_new (QofBook *book, GncEntryLedgerType type);
/* Set the default order for this ledger */
void gnc_entry_ledger_set_default_order (GncEntryLedger *ledger,
Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerP.h
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerP.h 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerP.h 2009-07-13 16:41:02 UTC (rev 18200)
@@ -43,7 +43,7 @@
GncEntry * hint_entry; /* A Hint for where to display */
gncUIWidget parent;
- GNCBook * book;
+ QofBook * book;
Table * table;
GncOrder * order;
GncInvoice * invoice;
Modified: gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.c
===================================================================
--- gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.c 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.c 2009-07-13 16:41:02 UTC (rev 18200)
@@ -73,7 +73,7 @@
GncTaxTable * current_table;
GncTaxTableEntry * current_entry;
- GNCBook * book;
+ QofBook * book;
gint component_id;
};
@@ -640,14 +640,14 @@
find_handler (gpointer find_data, gpointer user_data)
{
TaxTableWindow *ttw = user_data;
- GNCBook *book = find_data;
+ QofBook *book = find_data;
return (ttw != NULL && ttw->book == book);
}
/* Create a tax-table window */
TaxTableWindow *
-gnc_ui_tax_table_window_new (GNCBook *book)
+gnc_ui_tax_table_window_new (QofBook *book)
{
TaxTableWindow *ttw;
GladeXML *xml;
@@ -749,7 +749,7 @@
/* Create a new tax-table by name */
GncTaxTable *
-gnc_ui_tax_table_new_from_name (GNCBook *book, const char *name)
+gnc_ui_tax_table_new_from_name (QofBook *book, const char *name)
{
TaxTableWindow *ttw;
Modified: gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.h
===================================================================
--- gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.h 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.h 2009-07-13 16:41:02 UTC (rev 18200)
@@ -30,10 +30,10 @@
#include "gncTaxTable.h"
/* Create a new tax-table by name */
-GncTaxTable * gnc_ui_tax_table_new_from_name (GNCBook *book, const char *name);
+GncTaxTable * gnc_ui_tax_table_new_from_name (QofBook *book, const char *name);
/* Create a tax-table window */
-TaxTableWindow * gnc_ui_tax_table_window_new (GNCBook *book);
+TaxTableWindow * gnc_ui_tax_table_window_new (QofBook *book);
/* Destroy a tax-table window */
void gnc_ui_tax_table_window_destroy (TaxTableWindow *ttw);
Modified: gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.i
===================================================================
--- gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.i 2009-07-11 19:46:04 UTC (rev 18199)
+++ gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.i 2009-07-13 16:41:02 UTC (rev 18200)
@@ -9,4 +9,4 @@
%import "base-typemaps.i"
-TaxTableWindow * gnc_ui_tax_table_window_new (GNCBook *book);
+TaxTableWindow * gnc_ui_tax_table_window_new (QofBook *book);
More information about the gnucash-changes
mailing list