GnuCash 2.4.99
dialog-vendor.h
00001 /*
00002  * dialog-vendor.h -- Dialog(s) for Vendor search and entry
00003  * Copyright (C) 2001 Derek Atkins
00004  * Author: Derek Atkins <warlord@MIT.EDU>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of
00009  * the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, contact:
00018  *
00019  * Free Software Foundation           Voice:  +1-617-542-5942
00020  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00021  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00022  */
00023 
00024 
00025 #ifndef GNC_DIALOG_VENDOR_H_
00026 #define GNC_DIALOG_VENDOR_H_
00027 
00028 typedef struct _vendor_window VendorWindow;
00029 
00030 #include "gncVendor.h"
00031 #include "dialog-search.h"
00032 
00033 /* Create or Edit Vendors */
00034 VendorWindow * gnc_ui_vendor_edit (GncVendor *vendor);
00035 VendorWindow * gnc_ui_vendor_new (QofBook *book);
00036 
00037 /* Search for vendors */
00038 GNCSearchWindow * gnc_vendor_search (GncVendor *start, QofBook *book);
00039 
00040 /*
00041  * These callbacks are for use with the gnc_general_search widget
00042  *
00043  * select() provides a Select Dialog and returns it.
00044  * edit() opens the existing vendor for editing and returns NULL.
00045  */
00046 GNCSearchWindow * gnc_vendor_search_select (gpointer start, gpointer book);
00047 GNCSearchWindow * gnc_vendor_search_edit (gpointer start, gpointer book);
00048 
00049 #endif /* GNC_DIALOG_VENDOR_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines