Added the Compute dialog box.
[pspp-builds.git] / src / ui / gui / window-manager.h
1 /*
2     PSPPIRE --- A Graphical User Interface for PSPP
3     Copyright (C) 2007  Free Software Foundation
4
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13     GNU General Public License for more details.
14
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18     02110-1301, USA. */
19
20
21 #ifndef WINDOW_MANAGER_H
22 #define WINDOW_MANAGER_H
23
24 #include <gtk/gtk.h>
25
26 enum window_type
27   {
28     WINDOW_DATA,
29     WINDOW_SYNTAX
30   };
31
32
33 struct editor_window
34  {
35   GtkWindow *window;      /* The top level window of the editor */
36   gchar *name;            /* The name of this editor (UTF-8) */
37   enum window_type type;
38  } ;
39
40 struct editor_window * window_create (enum window_type type,
41                                       const gchar *name);
42
43 const gchar * window_name (const struct editor_window *);
44
45 /* Set the name of this window based on FILENAME.
46    FILENAME is in "filename encoding" */
47 void window_set_name_from_filename (struct editor_window *e,
48                                     const gchar *filename);
49
50 void default_window_name (struct editor_window *w);
51
52 void minimise_all_windows (void);
53
54
55 #endif