GnuCash 2.4.99
dialog-dup-trans.h
00001 /********************************************************************\
00002  * dialog-dup-trans.h -- duplicate transaction dialog               *
00003  * Copyright (C) 2001 Gnumatic, Inc.                                *
00004  * Author: Dave Peticolas <dave@krondo.com>                         *
00005  * Copyright (C) 2011, Christian Stimming                           *
00006  * Author: Christian Stimming
00007  *                                                                  *
00008  * This program is free software; you can redistribute it and/or    *
00009  * modify it under the terms of the GNU General Public License as   *
00010  * published by the Free Software Foundation; either version 2 of   *
00011  * the License, or (at your option) any later version.              *
00012  *                                                                  *
00013  * This program is distributed in the hope that it will be useful,  *
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of   *
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
00016  * GNU General Public License for more details.                     *
00017  *                                                                  *
00018  * You should have received a copy of the GNU General Public License*
00019  * along with this program; if not, contact:                        *
00020  *                                                                  *
00021  * Free Software Foundation           Voice:  +1-617-542-5942       *
00022  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652       *
00023  * Boston, MA  02110-1301,  USA       gnu@gnu.org                   *
00024 \********************************************************************/
00025 
00026 
00027 #ifndef DIALOGDUPTRANS_H
00028 #define DIALOGDUPTRANS_H
00029 
00030 #include <gtk/gtk.h>
00031 
00032 
00033 /********************************************************************\
00034  * gnc_dup_trans_dialog                                             *
00035  *   opens up a window to do an automatic transfer between accounts *
00036  *                                                                  *
00037  * Args:   parent  - the parent of the window to be created         *
00038  *         date    - the initial date to use, and the output        *
00039  *                   parameter for the new date                     *
00040  *         num     - input num field                                *
00041  *         out_num - output num field, g_newed string               *
00042  * Return: TRUE if user closes dialog with 'OK'                     *
00043 \********************************************************************/
00044 gboolean
00045 gnc_dup_trans_dialog (GtkWidget * parent, time_t *date_p,
00046                       const char *num, char **out_num);
00047 
00048 gboolean
00049 gnc_dup_trans_dialog_gdate (GtkWidget * parent, GDate *gdate_p,
00050                             const char *num, char **out_num);
00051 
00052 
00063 gboolean
00064 gnc_dup_date_dialog (GtkWidget * parent, const char* title, GDate *date);
00065 
00066 #endif // DIALOGDUPTRANS_H
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines