Added the Compute dialog box.
[pspp-builds.git] / src / ui / gui / psppire-dialog.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 __PSPPIRE_DIALOG_H__
22 #define __PSPPIRE_DIALOG_H__
23
24
25 #include <glib.h>
26 #include <glib-object.h>
27 #include <gtk/gtkwindow.h>
28
29 #define PSPPIRE_RESPONSE_PASTE 1
30
31
32 G_BEGIN_DECLS
33
34 #define PSPPIRE_DIALOG_TYPE            (psppire_dialog_get_type ())
35 #define PSPPIRE_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_DIALOG_TYPE, PsppireDialog))
36 #define PSPPIRE_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_DIALOG_TYPE, PsppireDialogClass))
37 #define PSPPIRE_IS_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_DIALOG_TYPE))
38 #define PSPPIRE_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_DIALOG_TYPE))
39
40
41 typedef struct _PsppireDialog       PsppireDialog;
42 typedef struct _PsppireDialogClass  PsppireDialogClass;
43
44 struct _PsppireDialog
45 {
46   GtkWindow window;
47   GtkWidget *box;
48
49   /* Private */
50   GMainLoop *loop;
51   gint response;
52 };
53
54 struct _PsppireDialogClass
55 {
56   GtkWindowClass parent_class;
57 };
58
59 GType          psppire_dialog_get_type        (void);
60 GtkWidget*     psppire_dialog_new             (void);
61 void           psppire_dialog_reload          (PsppireDialog *);
62 void           psppire_dialog_close           (PsppireDialog *);
63 gint           psppire_dialog_run             (PsppireDialog *);
64
65
66 G_END_DECLS
67
68 #endif /* __PSPPIRE_DIALOG_H__ */
69