GnuCash c935c2f+
Loading...
Searching...
No Matches
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
33extern "C" {
34#endif
35
36#define GNC_TYPE_FREQUENCY (gnc_frequency_get_type())
37G_DECLARE_FINAL_TYPE (GncFrequency, gnc_frequency, GNC, FREQUENCY, GtkBox)
38
39
42GtkWidget* gnc_frequency_new(GList *recurrences, const GDate *start_date);
43GtkWidget* gnc_frequency_new_from_recurrence(GList *recurrences, const GDate *start_date);
44
50void gnc_frequency_setup(GncFrequency *gf, GList *recurrences, const GDate *start_date);
51void gnc_frequency_setup_recurrence(GncFrequency *gf, GList *recurrences, const GDate *start_date);
52
58void gnc_frequency_save_to_recurrence(GncFrequency *gf, GList **recurrences, GDate *out_start_date);
59
64void gnc_frequency_set_frequency_label_text (GncFrequency *gf, const gchar *txt);
65
70void 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.