GnuCash 2.4.99
dialog-order.h
00001 /*
00002  * dialog-order.h -- Dialog(s) for Order search and entry
00003  * Copyright (C) 2001,2002 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_ORDER_H_
00026 #define GNC_DIALOG_ORDER_H_
00027 
00028 typedef struct _order_window OrderWindow;
00029 
00030 #include "gncOrder.h"
00031 #include "gncOwner.h"
00032 #include "dialog-search.h"
00033 
00034 /* Create and edit an order */
00035 OrderWindow * gnc_ui_order_edit (GncOrder *order);
00036 OrderWindow * gnc_ui_order_new (GncOwner *owner, QofBook *book);
00037 
00038 /* Search for orders */
00039 GNCSearchWindow * gnc_order_search (GncOrder *start, GncOwner *owner,
00040                                     QofBook *book);
00041 
00042 /*
00043  * These callbacks are for use with the gnc_general_search widget
00044  *
00045  * select() provides a Select Dialog and returns it.
00046  * edit() opens the existing order for editing and returns NULL.
00047  */
00048 GNCSearchWindow * gnc_order_search_select (gpointer start, gpointer book);
00049 GNCSearchWindow * gnc_order_search_edit (gpointer start, gpointer book);
00050 
00051 #endif /* GNC_DIALOG_ORDER_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines