GnuCash  5.6-150-g038405b370+
gnc-report-combo.h
1 /********************************************************************\
2  * gnc-report-combo.h -- report select widget for GnuCash *
3  * *
4  * Copyright (C) 2022 Bob Fewell *
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_REPORT_COMBO_H
26 #define GNC_REPORT_COMBO_H
27 
28 #ifdef __cplusplus
29 extern "C"
30 {
31 #endif
32 
33 #define GNC_TYPE_REPORT_COMBO (gnc_report_combo_get_type())
34 G_DECLARE_FINAL_TYPE (GncReportCombo, gnc_report_combo, GNC, REPORT_COMBO, GtkBox)
35 
36 typedef struct
37 {
38  char *report_guid;
39  char *report_name;
41 
49 GtkWidget *gnc_report_combo_new (GSList *report_list);
50 
57 void gnc_report_combo_refresh (GncReportCombo *grc, GSList *report_list);
58 
67 void gnc_report_combo_set_active (GncReportCombo *grc,
68  const char* active_report_guid,
69  const char* active_report_name);
70 
77 gchar * gnc_report_combo_get_active_guid (GncReportCombo *grc);
78 
85 gchar * gnc_report_combo_get_active_name (GncReportCombo *grc);
86 
93 void gnc_report_combo_set_active_guid_name (GncReportCombo *grc,
94  const gchar *guid_name);
95 
103 gchar * gnc_report_combo_get_active_guid_name (GncReportCombo *grc);
104 
111 gboolean gnc_report_combo_is_warning_visible_for_active (GncReportCombo *grc);
112 
113 #ifdef __cplusplus
114 }
115 #endif
116 
117 #endif /* __GNC_REPORT_COMBO_H__ */