1 /* PSPPIRE - a graphical user interface for PSPP.
2 Copyright (C) 2008 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/>. */
18 #include <glib-object.h>
21 #include "psppire-window.h"
23 #ifndef __PSPPIRE_WINDOW_REGISTER_H__
24 #define __PSPPIRE_WINDOW_REGISTER_H__
29 #define PSPPIRE_TYPE_WINDOW_REGISTER (psppire_window_register_get_type ())
31 #define PSPPIRE_WINDOW_REGISTER(obj) \
32 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
33 PSPPIRE_TYPE_WINDOW_REGISTER, PsppireWindowRegister))
35 #define PSPPIRE_WINDOW_REGISTER_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_CAST ((klass), \
37 PSPPIRE_TYPE_WINDOW_REGISTER, \
38 PsppireWindowRegisterClass))
41 #define PSPPIRE_IS_WINDOW_REGISTER(obj) \
42 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_TYPE_WINDOW_REGISTER))
44 #define PSPPIRE_IS_WINDOW_REGISTER_CLASS(klass) \
45 (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_TYPE_WINDOW_REGISTER))
48 #define PSPPIRE_WINDOW_REGISTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), \
49 PSPPIRE_TYPE_WINDOW_REGISTER, \
50 PsppireWindowRegisterClass))
52 typedef struct _PsppireWindowRegister PsppireWindowRegister;
53 typedef struct _PsppireWindowRegisterClass PsppireWindowRegisterClass;
56 struct _PsppireWindowRegister
61 gboolean dispose_has_run ;
62 GHashTable *name_table;
66 struct _PsppireWindowRegisterClass
68 GObjectClass parent_class;
72 GType psppire_window_register_get_type (void) G_GNUC_CONST;
74 PsppireWindowRegister * psppire_window_register_new (void);
76 void psppire_window_register_insert (PsppireWindowRegister *wr, PsppireWindow *window,
79 void psppire_window_register_remove (PsppireWindowRegister *wr, const gchar *name);
82 PsppireWindow *psppire_window_register_lookup (PsppireWindowRegister *wr, const gchar *name);
85 void psppire_window_register_foreach (PsppireWindowRegister *wr, GHFunc func,
88 void psppire_window_register_minimise_all (PsppireWindowRegister *wr);
90 gint psppire_window_register_n_items (PsppireWindowRegister *wr);
95 #endif /* __PSPPIRE_WINDOW_REGISTER_H__ */