1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2004 Free Software Foundation
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 #include "relocatable.h"
23 #include <data/format.h>
24 #include <data/value.h>
27 #include <glade/glade.h>
30 GtkRecentChooserMenu was added in 2.10.0
31 but it didn't support GtkRecentFilters until
34 #define RECENT_LISTS_AVAILABLE GTK_CHECK_VERSION (2, 10, 2)
38 /* Formats a value according to FORMAT
39 The returned string must be freed when no longer required */
40 gchar * value_to_text (union value v, struct fmt_spec format);
43 gboolean text_to_value (const gchar *text, union value *v,
44 struct fmt_spec format);
46 GtkWidget * get_widget_assert (GladeXML *xml, const gchar *name);
48 /* Converts a string in the pspp locale to utf-8 */
49 char * pspp_locale_to_utf8 (const gchar *text, gssize len, GError **err);
52 void connect_help (GladeXML *);
54 void reference_manual (GtkMenuItem *, gpointer);
56 struct getl_interface;
57 gboolean execute_syntax (struct getl_interface *sss);
59 #define XML_NEW(FILE) \
60 glade_xml_new (relocate(PKGDATADIR "/" FILE), NULL, NULL)
63 void marshaller_VOID__INT_INT_INT (GClosure *closure,
66 const GValue *param_values,
67 gpointer invocation_hint,
68 gpointer marshal_data);
71 /* Create a deep copy of SRC */
72 GtkListStore * clone_list_store (const GtkListStore *src);