X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-buttonbox.h;h=518a614898b9059850c57c8b221bd417d63951bc;hb=65d602ed236d685ffec00ad1552a193cf47b2e4d;hp=b9d8ea34ae218f34c586b81d1c12165f9d227a1e;hpb=8f157150f5fe225224e407161fb7f899d34b8b18;p=pspp diff --git a/src/ui/gui/psppire-buttonbox.h b/src/ui/gui/psppire-buttonbox.h index b9d8ea34ae..518a614898 100644 --- a/src/ui/gui/psppire-buttonbox.h +++ b/src/ui/gui/psppire-buttonbox.h @@ -1,37 +1,75 @@ -#ifndef __PSPPIRE_BUTTONBOX_H__ -#define __PSPPIRE_BUTTONBOX_H__ +/* PSPPIRE - a graphical user interface for PSPP. + Copyright (C) 2007, 2010, 2011, 2012 Free Software Foundation + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + + +#ifndef __PSPPIRE_BUTTON_BOX_H__ +#define __PSPPIRE_BUTTON_BOX_H__ #include #include -#include +#include G_BEGIN_DECLS -#define PSPPIRE_BUTTONBOX_TYPE (psppire_button_box_get_type ()) -#define PSPPIRE_BUTTONBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonBox)) -#define PSPPIRE_BUTTONBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_BUTTONBOX_TYPE, PsppireButtonBoxClass)) -#define PSPPIRE_IS_BUTTONBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_BUTTONBOX_TYPE)) -#define PSPPIRE_IS_BUTTONBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_BUTTONBOX_TYPE)) +#define PSPPIRE_BUTTON_BOX_TYPE (psppire_button_box_get_type ()) +#define PSPPIRE_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PSPPIRE_BUTTON_BOX_TYPE, PsppireButtonBox)) +#define PSPPIRE_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PSPPIRE_BUTTON_BOX_TYPE, PsppireButtonBoxClass)) +#define PSPPIRE_IS_BUTTON_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PSPPIRE_BUTTON_BOX_TYPE)) +#define PSPPIRE_IS_BUTTON_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PSPPIRE_BUTTON_BOX_TYPE)) typedef struct _PsppireButtonBox PsppireButtonBox; typedef struct _PsppireButtonBoxClass PsppireButtonBoxClass; + +enum + { + PSPPIRE_BUTTON_OK = 0, + PSPPIRE_BUTTON_GOTO, + PSPPIRE_BUTTON_CONTINUE, + PSPPIRE_BUTTON_CANCEL, + PSPPIRE_BUTTON_CLOSE, + PSPPIRE_BUTTON_HELP, + PSPPIRE_BUTTON_RESET, + PSPPIRE_BUTTON_PASTE, + n_PsppireButtonBoxButtons + }; + + struct _PsppireButtonBox { - GtkVButtonBox parent; + GtkButtonBox parent; + + /* */ + GtkWidget *button[n_PsppireButtonBoxButtons]; + guint def; }; struct _PsppireButtonBoxClass { - GtkVButtonBoxClass parent_class; + GtkButtonBoxClass parent_class; }; GType psppire_button_box_get_type (void); -GtkWidget* psppire_buttonbox_new (void); + + +#define PSPPIRE_TYPE_BUTTON_MASK psppire_button_flags_get_type() G_END_DECLS -#endif /* __PSPPIRE_BUTTONBOX_H__ */ +#endif /* __PSPPIRE_BUTTON_BOX_H__ */