GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-invoice.h
1 /*
2  * dialog-invoice.h -- Dialog(s) for Invoice search and entry
3  * Copyright (C) 2002 Derek Atkins
4  * Author: Derek Atkins <[email protected]>
5  *
6  * Copyright (c) 2005,2006 David Hampton <[email protected]>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, contact:
20  *
21  * Free Software Foundation Voice: +1-617-542-5942
22  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
23  * Boston, MA 02110-1301, USA [email protected]
24  */
25 
26 
27 #ifndef GNC_DIALOG_INVOICE_H_
28 #define GNC_DIALOG_INVOICE_H_
29 
30 typedef struct _invoice_window InvoiceWindow;
31 
32 #include "qof.h"
33 #include "gncInvoice.h"
34 #include "gncOwner.h"
35 #include "dialog-search.h"
36 #include "dialog-query-view.h"
37 
38 typedef enum
39 {
40  INVSORT_BY_STANDARD = 0,
41  INVSORT_BY_DATE,
42  INVSORT_BY_DATE_ENTERED,
43  INVSORT_BY_DESC,
44  INVSORT_BY_QTY,
45  INVSORT_BY_PRICE
46 } invoice_sort_type_t;
47 
48 
49 /* Create and edit an invoice */
50 InvoiceWindow * gnc_ui_invoice_edit (GncInvoice *invoice);
51 InvoiceWindow * gnc_ui_invoice_new (GncOwner *owner, QofBook *book);
52 
63 InvoiceWindow * gnc_ui_invoice_duplicate (GncInvoice *invoice, gboolean open_properties, const GDate *new_date);
64 
65 /* Search for invoices */
66 GNCSearchWindow * gnc_invoice_search (GncInvoice *start, GncOwner *owner, QofBook *book);
67 
68 void gnc_business_call_owner_report (GncOwner *owner, Account *acc);
69 
70 void gnc_invoice_window_sort (InvoiceWindow *iw, invoice_sort_type_t sort_code);
71 
72 GtkWidget * gnc_invoice_window_create_summary_bar (InvoiceWindow *iw);
73 
74 void gnc_invoice_window_changed (InvoiceWindow *iw, GtkWidget *window);;
75 
76 gchar *gnc_invoice_get_help (InvoiceWindow *iw);
77 
78 gchar *gnc_invoice_get_title (InvoiceWindow *iw);
79 
80 #ifdef __GNC_PLUGIN_PAGE_H
81 #include "gnc-main-window.h"
82 GncPluginPage *gnc_invoice_recreate_page (GncMainWindow *window, GKeyFile *key_file, const gchar *group_name);
83 void gnc_invoice_save_page (InvoiceWindow *iw, GKeyFile *key_file, const gchar *group_name);
84 #endif
85 
86 GtkWidget * gnc_invoice_create_page (InvoiceWindow *iw, gpointer page);
87 
88 DialogQueryView *gnc_invoice_show_bills_due (QofBook *book, double days_in_advance);
89 
90 GtkWidget *gnc_invoice_get_register(InvoiceWindow *iw);
91 
92 /* definitions for CB functions */
93 void gnc_invoice_window_destroy_cb (GtkWidget *widget, gpointer data);
94 
95 void gnc_invoice_window_new_invoice_cb (GtkWidget *widget, gpointer data);
96 void gnc_invoice_window_printCB (GtkWidget *widget, gpointer data);
97 void gnc_invoice_window_cut_cb (GtkWidget *widget, gpointer data);
98 void gnc_invoice_window_copy_cb (GtkWidget *widget, gpointer data);
99 void gnc_invoice_window_paste_cb (GtkWidget *widget, gpointer data);
100 void gnc_invoice_window_editCB (GtkWidget *widget, gpointer data);
101 void gnc_invoice_window_duplicateInvoiceCB (GtkWidget *widget, gpointer data);
102 void gnc_invoice_window_postCB (GtkWidget *widget, gpointer data);
103 void gnc_invoice_window_unpostCB (GtkWidget *widget, gpointer data);
104 void gnc_invoice_window_recordCB (GtkWidget *widget, gpointer data);
105 void gnc_invoice_window_cancelCB (GtkWidget *widget, gpointer data);
106 void gnc_invoice_window_deleteCB (GtkWidget *widget, gpointer data);
107 void gnc_invoice_window_blankCB (GtkWidget *widget, gpointer data);
108 void gnc_invoice_window_duplicateCB (GtkWidget *widget, gpointer data);
109 void gnc_invoice_window_payment_cb (GtkWidget *widget, gpointer data);
110 void gnc_invoice_window_report_owner_cb (GtkWidget *widget, gpointer data);
111 
112 void gnc_invoice_window_entryUpCB (GtkWidget *widget, gpointer data);
113 void gnc_invoice_window_entryDownCB (GtkWidget *widget, gpointer data);
114 
115 #endif /* GNC_DIALOG_INVOICE_H_ */
Business Interface: Object OWNERs.
Functions for adding content to a window.
Business Invoice Interface.