desktop: open a file via xdg-open without additional output window
[pspp] / src / ui / gui / psppire.h
1 /* PSPPIRE - a graphical user interface for PSPP.
2    Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011  Free Software Foundation
3
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.
8
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.
13
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/>. */
16
17 #ifndef PSPPIRE_H
18 #define PSPPIRE_H
19
20 #include <glib.h>
21 #include <gio/gio.h>
22 #include <gtk/gtk.h>
23
24 #include <stdbool.h>
25
26 struct lexer;
27
28
29 struct init_source
30 {
31   GSource parent;
32   int state;
33   GMainLoop *loop;
34   int filename_arg;
35   int *argc;
36   char ***argv;
37 };
38
39 bool initialize (const struct init_source *is);
40
41 void de_initialize (void);
42
43 void psppire_quit (GApplication *app);
44
45 const char * output_file_name (void);
46
47 void psppire_set_lexer (struct lexer *);
48
49 void register_selection_functions (void);
50
51 GtkWindow * psppire_preload_file (const gchar *file, GtkWindow *victim);
52
53
54 #endif /* PSPPIRE_H */