GnuCash  5.6-150-g038405b370+
gnc-frequency.h
1 /********************************************************************\
2  * gnc-frequency.h -- GnuCash widget for frequency editing. *
3  * Copyright (C) 2001,2002 Joshua Sled <jsled@asynchronous.org> *
4  * Copyright (C) 2003 Linas Vepstas <linas@linas.org> *
5  * *
6  * This program is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License as *
8  * published by the Free Software Foundation; either version 2 of *
9  * the License, or (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License*
17  * along with this program; if not, contact: *
18  * *
19  * Free Software Foundation Voice: +1-617-542-5942 *
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21  * Boston, MA 02110-1301, USA gnu@gnu.org *
22  * *
23 \********************************************************************/
24 
25 #ifndef GNC_FREQUENCY_H
26 #define GNC_FREQUENCY_H
27 
28 #include "gnc-date-edit.h"
29 #include "FreqSpec.h"
30 #include "Recurrence.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #define GNC_TYPE_FREQUENCY (gnc_frequency_get_type())
37 G_DECLARE_FINAL_TYPE (GncFrequency, gnc_frequency, GNC, FREQUENCY, GtkBox)
38 
39 
42 GtkWidget* gnc_frequency_new(GList *recurrences, const GDate *start_date);
43 GtkWidget* gnc_frequency_new_from_recurrence(GList *recurrences, const GDate *start_date);
44 
50 void gnc_frequency_setup(GncFrequency *gf, GList *recurrences, const GDate *start_date);
51 void gnc_frequency_setup_recurrence(GncFrequency *gf, GList *recurrences, const GDate *start_date);
52 
58 void gnc_frequency_save_to_recurrence(GncFrequency *gf, GList **recurrences, GDate *out_start_date);
59 
64 void gnc_frequency_set_frequency_label_text (GncFrequency *gf, const gchar *txt);
65 
70 void gnc_frequency_set_date_label_text (GncFrequency *gf, const gchar *txt);
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* !defined( GNC_FREQUENCY_H ) */
Period / Date Frequency Specification.
Implementations.