dialog-date-close.h

00001 /*
00002  * dialog-date-close.h -- Dialog to ask a question and request a date
00003  * Copyright (C) 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 #ifndef _DIALOG_DATE_CLOSE_H
00025 #define _DIALOG_DATE_CLOSE_H
00026 
00027 #include "Account.h"
00028 #include "gnc-book.h"
00029 #include "qof.h"
00030 #include "gncBillTerm.h"
00031 
00032 gboolean
00033 gnc_dialog_date_close_parented (GtkWidget *parent, const char *message,
00034                                 const char *label_message,
00035                                 gboolean ok_is_default,
00036                                 /* Returned data ... */
00037                                 Timespec *date);
00038 
00039 
00040 /* 
00041  * Note that the dialog will "own" (and free) the acct_types list.
00042  * it should be a list of GNCAccountTypes.  If memo is non-NULL,
00043  * it will g_malloc() a string.  The caller should g_free() it.
00044  * The value of *acct will be used as preselection of the account
00045  * selection widget.
00046  */
00047 
00048 gboolean
00049 gnc_dialog_dates_acct_question_parented (GtkWidget *parent, const char *message,
00050                                 const char *ddue_label_message,
00051                                 const char *post_label_message,
00052                                 const char *acct_label_message,
00053                                 const char *question_check_message,
00054                                 gboolean ok_is_default,
00055                                 GList * acct_types, GNCBook *book,
00056                                 GncBillTerm *terms,
00057                                 /* Returned Data... */
00058                                 Timespec *ddue, Timespec *post,
00059                                 char **memo, Account **acct, gboolean *answer);
00060 
00061 #define gnc_dialog_dates_acct_parented(parent, message, \
00062                                 ddue_label_message,                                                     \
00063                                 post_label_message,                                                     \
00064                                 acct_label_message,                                                     \
00065                                 ok_is_default,                                                          \
00066                                 acct_types, book,                                                       \
00067                                 terms,                                                                          \
00068                                 /* Returned Data... */                                          \
00069                                 ddue, post,                                                                     \
00070                                 memo, acct)                                                                     \
00071                 gnc_dialog_dates_acct_question_parented (parent, message,       \
00072                                 ddue_label_message,                                                     \
00073                                 post_label_message,                                                     \
00074                                 acct_label_message,                                                     \
00075                                 NULL,                                           \
00076                                 ok_is_default,                                                          \
00077                                 acct_types, book,                                                       \
00078                                 terms,                                                                          \
00079                                 /* Returned Data... */                                          \
00080                                 ddue, post,                                                                     \
00081                                 memo, acct, NULL)                                                                       \
00082 
00083 
00084 gboolean
00085 gnc_dialog_date_acct_parented (GtkWidget *parent, const char *message,
00086                                const char *date_label_message,
00087                                const char *acct_label_message,
00088                                gboolean ok_is_default,
00089                                GList * acct_types, GNCBook *book,
00090                                 /* Returned Data... */
00091                                Timespec *date, Account **acct);
00092 
00093 #endif /* _DIALOG_DATE_CLOSE_H */

Generated on Fri Oct 10 05:06:04 2008 for GnuCash by  doxygen 1.5.2