GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-vendor.h
1 /*
2  * dialog-vendor.h -- Dialog(s) for Vendor search and entry
3  * Copyright (C) 2001 Derek Atkins
4  * Author: Derek Atkins <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA [email protected]
22  */
23 
24 
25 #ifndef GNC_DIALOG_VENDOR_H_
26 #define GNC_DIALOG_VENDOR_H_
27 
28 typedef struct _vendor_window VendorWindow;
29 
30 #include "gncVendor.h"
31 #include "dialog-search.h"
32 
33 /* Create or Edit Vendors */
34 VendorWindow * gnc_ui_vendor_edit (GncVendor *vendor);
35 VendorWindow * gnc_ui_vendor_new (QofBook *book);
36 
37 /* Search for vendors */
38 GNCSearchWindow * gnc_vendor_search (GncVendor *start, QofBook *book);
39 
40 /*
41  * These callbacks are for use with the gnc_general_search widget
42  *
43  * select() provides a Select Dialog and returns it.
44  * edit() opens the existing vendor for editing and returns NULL.
45  */
46 GNCSearchWindow * gnc_vendor_search_select (gpointer start, gpointer book);
47 GNCSearchWindow * gnc_vendor_search_edit (gpointer start, gpointer book);
48 
49 #endif /* GNC_DIALOG_VENDOR_H_ */
Vendor Interface.