1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2004, 2009, 2010 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>
28 #include "psppire-dict.h"
30 #include "gl/configmake.h"
32 void paste_syntax_to_window (const gchar *syntax);
37 /* Formats a value according to FORMAT
38 The returned string must be freed when no longer required */
39 gchar * value_to_text (union value v, const PsppireDict *dict, struct fmt_spec format);
43 text_to_value (const gchar *text,
44 const PsppireDict *dict,
45 const struct variable *var,
48 GObject *get_object_assert (GtkBuilder *builder, const gchar *name, GType type);
49 GtkAction * get_action_assert (GtkBuilder *builder, const gchar *name);
50 GtkWidget * get_widget_assert (GtkBuilder *builder, const gchar *name);
52 gchar * convert_glib_filename_to_system_filename (const gchar *fname,
55 void connect_help (GtkBuilder *);
57 #define builder_new(NAME) builder_new_real (relocate (PKGDATADIR "/" NAME))
59 GtkBuilder *builder_new_real (const gchar *name);
62 /* Create a deep copy of SRC */
63 GtkListStore * clone_list_store (const GtkListStore *src);
65 void psppire_box_pack_start_defaults (GtkBox *box, GtkWidget *widget);