GnuCash 2.4.99
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 "qof.h"
00029 #include "gncBillTerm.h"
00030 
00031 gboolean
00032 gnc_dialog_date_close_parented (GtkWidget *parent, const char *message,
00033                                 const char *label_message,
00034                                 gboolean ok_is_default,
00035                                 /* Returned data ... */
00036                                 Timespec *date);
00037 
00038 
00039 /*
00040  * Note that the dialog will "own" (and free) the acct_types list.
00041  * it should be a list of GNCAccountTypes.  If memo is non-NULL,
00042  * it will g_malloc() a string.  The caller should g_free() it.
00043  * The value of *acct will be used as preselection of the account
00044  * selection widget.
00045  */
00046 
00047 gboolean
00048 gnc_dialog_dates_acct_question_parented (GtkWidget *parent, const char *message,
00049         const char *ddue_label_message,
00050         const char *post_label_message,
00051         const char *acct_label_message,
00052         const char *question_check_message,
00053         gboolean ok_is_default,
00054         gboolean set_default_acct,
00055         GList * acct_types, GList * acct_commodities,
00056         QofBook *book, 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, QofBook *book,
00090                                /* Returned Data... */
00091                                Timespec *date, Account **acct);
00092 
00093 #endif /* _DIALOG_DATE_CLOSE_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines