X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action.h;h=8f79acc4c0dedd9dbec693543c5f1a60ded6dbd9;hb=c7a68fbae35e58dc3982c5b1ab0a501fccea17d9;hp=6abe81419c2ebeee35be8250c7dd00839800c5cc;hpb=258cbd9cdf386687122b0854274923acafc786d4;p=pspp diff --git a/src/ui/gui/psppire-dialog-action.h b/src/ui/gui/psppire-dialog-action.h index 6abe81419c..8f79acc4c0 100644 --- a/src/ui/gui/psppire-dialog-action.h +++ b/src/ui/gui/psppire-dialog-action.h @@ -14,13 +14,13 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -/* +/* This is a an abstract base class, which implements GAction. It's purpose is to abstract the way in which dialog boxes behave. - That is, this action will fire whenever a dialog box is to be + That is, this action will fire whenever a dialog box is to be popped up. - - Additionally, most dialog boxes generate syntax to + + Additionally, most dialog boxes generate syntax to be run by the pspp back-end. This provides an abstraction to do that. The programmer needs only to provide the function to generate the syntax. This base class looks after the rest. @@ -83,6 +83,7 @@ struct _PsppireDialogAction struct _PsppireDialogActionClass { GObjectClass parent_class; + GtkBuilder * (*initial_activate) (PsppireDialogAction *, GVariant *); void (*activate) (PsppireDialogAction *, GVariant *); char * (*generate_syntax) (const PsppireDialogAction *); }; @@ -91,21 +92,17 @@ GType psppire_dialog_action_get_type (void) ; typedef void (*PsppireDialogActionRefresh) (PsppireDialogAction *) ; -void psppire_dialog_action_set_refresh (PsppireDialogAction *pda, +void psppire_dialog_action_set_refresh (PsppireDialogAction *pda, PsppireDialogActionRefresh refresh); -void psppire_dialog_action_set_valid_predicate (PsppireDialogAction *act, +void psppire_dialog_action_set_valid_predicate (PsppireDialogAction *act, ContentsAreValid dialog_state_valid); -typedef void (*activation) (PsppireDialogAction *); - -void psppire_dialog_action_set_activation (gpointer class, activation a); +GtkBuilder * psppire_dialog_action_get_xml (PsppireDialogAction *da); -GHashTable *psppire_dialog_action_get_hash_table (PsppireDialogAction *act); void psppire_dialog_action_activate_null (PsppireDialogAction *act); - G_END_DECLS #endif /* __PSPPIRE_DIALOG_ACTION_H__ */