X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-buttonbox.h;h=3f865facd040e33cd937112cddf66aca8c7e6ac5;hb=26763488cfe4213eb1dfdc5966a3659a0e89887f;hp=3e589c85a942ee5fb5b5230b3d09c46cd5751934;hpb=09a1109ddc398f36fe720208e1d38053850cbd2a;p=pspp-builds.git diff --git a/src/ui/gui/psppire-buttonbox.h b/src/ui/gui/psppire-buttonbox.h index 3e589c85..3f865fac 100644 --- a/src/ui/gui/psppire-buttonbox.h +++ b/src/ui/gui/psppire-buttonbox.h @@ -1,11 +1,27 @@ +/* PSPPIRE - a graphical user interface for PSPP. + Copyright (C) 2007 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_BUTTONBOX_H__ #define __PSPPIRE_BUTTONBOX_H__ #include #include -#include - +#include G_BEGIN_DECLS @@ -19,18 +35,45 @@ G_BEGIN_DECLS typedef struct _PsppireButtonBox PsppireButtonBox; typedef struct _PsppireButtonBoxClass PsppireButtonBoxClass; +enum + { + PSPPIRE_BUTTON_OK = 0, + PSPPIRE_BUTTON_GOTO, + PSPPIRE_BUTTON_CONTINUE, + PSPPIRE_BUTTON_CANCEL, + PSPPIRE_BUTTON_HELP, + PSPPIRE_BUTTON_RESET, + PSPPIRE_BUTTON_PASTE, + n_PsppireButtonBoxButtons + }; + struct _PsppireButtonBox { - GtkVButtonBox parent; + GtkButtonBox parent; + + /* */ + GtkWidget *button[n_PsppireButtonBoxButtons]; }; struct _PsppireButtonBoxClass { - GtkVButtonBoxClass parent_class; + GtkButtonBoxClass parent_class; }; GType psppire_button_box_get_type (void); -GtkWidget* psppire_buttonbox_new (void); + + +/* Internal function. Do not use */ +void +_psppire_button_box_child_requisition (GtkWidget *widget, + int *nvis_children, + int *nvis_secondaries, + int *width, + + +#define G_TYPE_PSPPIRE_BUTTON_MASK \ + (psppire_button_flags_get_type()) + int *height); G_END_DECLS