GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-dup-trans.h
1 /********************************************************************\
2  * dialog-dup-trans.h -- duplicate transaction dialog *
3  * Copyright (C) 2001 Gnumatic, Inc. *
4  * Author: Dave Peticolas <[email protected]> *
5  * Copyright (C) 2011, Christian Stimming *
6  * Author: Christian Stimming
7  * *
8  * This program is free software; you can redistribute it and/or *
9  * modify it under the terms of the GNU General Public License as *
10  * published by the Free Software Foundation; either version 2 of *
11  * the License, or (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License*
19  * along with this program; if not, contact: *
20  * *
21  * Free Software Foundation Voice: +1-617-542-5942 *
22  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
23  * Boston, MA 02110-1301, USA [email protected] *
24 \********************************************************************/
25 
26 
27 #ifndef DIALOGDUPTRANS_H
28 #define DIALOGDUPTRANS_H
29 
30 #include <gtk/gtk.h>
31 #include <gnc-date.h>
32 
33 
34 /********************************************************************\
35  * gnc_dup_trans_dialog *
36  * opens up a window to do an automatic transfer between accounts *
37  * *
38  * Args: parent - the parent of the window to be created *
39  * title - the text of the title label, otherwise *
40  * defaults to "New Transaction Information" *
41  * show_date - TRUE to display date label and edit widgets *
42  * date - the initial date to use, and the output *
43  * parameter for the new date *
44  * num - input num field *
45  * out_num - output num field, g_newed string *
46  * tnum - input tnum field, if used, else NULL *
47  * out_tnum - output tnum field, g_newed string *
48  * Return: TRUE if user closes dialog with 'OK' *
49 \********************************************************************/
50 gboolean
51 gnc_dup_trans_dialog (GtkWidget * parent, const char* title, gboolean show_date,
52  time64 *date_p, const char *num, char **out_num,
53  const char *tnum, char **out_tnum);
54 
55 gboolean
56 gnc_dup_trans_dialog_gdate (GtkWidget * parent, GDate *gdate_p,
57  const char *num, char **out_num);
58 
59 
70 gboolean
71 gnc_dup_date_dialog (GtkWidget * parent, const char* title, GDate *date);
72 
73 #endif // DIALOGDUPTRANS_H
Date and Time handling routines.
gint64 time64
Definition: gnc-date.h:83