GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-order.h
1 /*
2  * dialog-order.h -- Dialog(s) for Order search and entry
3  * Copyright (C) 2001,2002 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_ORDER_H_
26 #define GNC_DIALOG_ORDER_H_
27 
28 typedef struct _order_window OrderWindow;
29 
30 #include "gncOrder.h"
31 #include "gncOwner.h"
32 #include "dialog-search.h"
33 
34 /* Create and edit an order */
35 OrderWindow * gnc_ui_order_edit (GncOrder *order);
36 OrderWindow * gnc_ui_order_new (GncOwner *owner, QofBook *book);
37 
38 /* Search for orders */
39 GNCSearchWindow * gnc_order_search (GncOrder *start, GncOwner *owner,
40  QofBook *book);
41 
42 /*
43  * These callbacks are for use with the gnc_general_search widget
44  *
45  * select() provides a Select Dialog and returns it.
46  * edit() opens the existing order for editing and returns NULL.
47  */
48 GNCSearchWindow * gnc_order_search_select (gpointer start, gpointer book);
49 GNCSearchWindow * gnc_order_search_edit (gpointer start, gpointer book);
50 
51 #endif /* GNC_DIALOG_ORDER_H_ */
Business Interface: Object OWNERs.