typedef struct _PsppireDialog PsppireDialog;
typedef struct _PsppireDialogClass PsppireDialogClass;
+typedef gboolean (*ContentsAreValid) (gpointer);
+
+
struct _PsppireDialog
{
GtkWindow window;
/* Private */
GMainLoop *loop;
gint response;
+
+ ContentsAreValid contents_are_valid;
+ gpointer validity_data;
};
struct _PsppireDialogClass
GtkWindowClass parent_class;
};
+
GType psppire_dialog_get_type (void);
GtkWidget* psppire_dialog_new (void);
void psppire_dialog_reload (PsppireDialog *);
void psppire_dialog_close (PsppireDialog *);
gint psppire_dialog_run (PsppireDialog *);
+void psppire_dialog_set_valid_predicate (PsppireDialog *,
+ ContentsAreValid,
+ gpointer );
+void psppire_dialog_notify_change (PsppireDialog *);
+
GType psppire_orientation_get_type (void);
typedef enum
{
PSPPIRE_HORIZONTAL,
- PSPPIRE_VERTICAL
+ PSPPIRE_VERTICAL,
+ PSPPIRE_TABULAR
} PsppireOrientation;
#define G_TYPE_PSPPIRE_ORIENTATION (psppire_orientation_get_type ())