GnuCash c935c2f+
Loading...
Searching...
No Matches
dialog-dup-trans.h
1/********************************************************************\
2 * dialog-dup-trans.h -- duplicate transaction dialog *
3 * Copyright (C) 2001 Gnumatic, Inc. *
4 * Author: Dave Peticolas <dave@krondo.com> *
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 gnu@gnu.org *
24\********************************************************************/
25
26
27#ifndef DIALOGDUPTRANS_H
28#define DIALOGDUPTRANS_H
29
30#include <gtk/gtk.h>
31#include <gnc-date.h>
32
33#ifdef __cplusplus
34extern "C"
35{
36#endif
37
38
39/***********************************************************************\
40 * gnc_dup_trans_dialog *
41 * opens up a window to do an automatic transfer between accounts *
42 * *
43 * Args: parent - the parent of the window to be created *
44 * title - the text of the title label, otherwise *
45 * defaults to "New Transaction Information" *
46 * show_date - TRUE to display date label and edit widgets *
47 * date - the initial date to use, and the output *
48 * parameter for the new date *
49 * num - input num field *
50 * out_num - output num field, g_newed string *
51 * tnum - input tnum field, if used, else NULL *
52 * out_tnum - output tnum field, g_newed string *
53 * tdoclink - input document link field, if used, else NULL*
54 * out_tdoclink - output document link field, g_newed string *
55 * Return: TRUE if user closes dialog with 'OK' *
56\***********************************************************************/
57gboolean
58gnc_dup_trans_dialog (GtkWidget * parent, const char* title,
59 gboolean show_date, time64 *date_p,
60 const char *num, char **out_num,
61 const char *tnum, char **out_tnum,
62 const char *tdoclink, char **out_tdoclink);
63
64gboolean
65gnc_dup_trans_dialog_gdate (GtkWidget * parent, GDate *gdate_p,
66 const char *num, char **out_num);
67
68
79gboolean
80gnc_dup_date_dialog (GtkWidget * parent, const char* title, GDate *date);
81
93gboolean
94gnc_dup_time64_dialog (GtkWidget * parent, const char *window_title,
95 const char* title, time64 *date);
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif // DIALOGDUPTRANS_H
Date and Time handling routines.
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
Definition gnc-date.h:87