Added "comments" dialog.
[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
30 #define PSPPIRE_RESPONSE_PASTE 1
31 #define PSPPIRE_RESPONSE_GOTO 2
32 #define PSPPIRE_RESPONSE_CONTINUE 3
33
34 G_BEGIN_DECLS
35
36 #define PSPPIRE_DIALOG_TYPE            (psppire_dialog_get_type ())
37 #define PSPPIRE_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_DIALOG_TYPE, PsppireDialog))
38 #define PSPPIRE_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_DIALOG_TYPE, PsppireDialogClass))
39 #define PSPPIRE_IS_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_DIALOG_TYPE))
40 #define PSPPIRE_IS_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_DIALOG_TYPE))
41
42
43 typedef struct _PsppireDialog       PsppireDialog;
44 typedef struct _PsppireDialogClass  PsppireDialogClass;
45
46 struct _PsppireDialog
47 {
48   GtkWindow window;
49   GtkWidget *box;
50
51   /* Private */
52   GMainLoop *loop;
53   gint response;
54 };
55
56 struct _PsppireDialogClass
57 {
58   GtkWindowClass parent_class;
59 };
60
61 GType          psppire_dialog_get_type        (void);
62 GtkWidget*     psppire_dialog_new             (void);
63 void           psppire_dialog_reload          (PsppireDialog *);
64 void           psppire_dialog_close           (PsppireDialog *);
65 gint           psppire_dialog_run             (PsppireDialog *);
66
67
68 GType psppire_orientation_get_type (void);
69
70
71 typedef enum
72   {
73     PSPPIRE_HORIZONTAL,
74     PSPPIRE_VERTICAL
75   } PsppireOrientation;
76
77 #define G_TYPE_PSPPIRE_ORIENTATION (psppire_orientation_get_type ())
78
79
80 G_END_DECLS
81
82 #endif /* __PSPPIRE_DIALOG_H__ */
83