X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fmissing-val-dialog.h;h=12bf110129d043bc369c5027ee481416bb5b34b8;hb=refs%2Fbuilds%2F20130402031823%2Fpspp;hp=4129d07cbffbc820fb77a87f3cd43bd0b1a295b3;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp
diff --git a/src/ui/gui/missing-val-dialog.h b/src/ui/gui/missing-val-dialog.h
index 4129d07cbf..12bf110129 100644
--- a/src/ui/gui/missing-val-dialog.h
+++ b/src/ui/gui/missing-val-dialog.h
@@ -1,44 +1,50 @@
-/*
- PSPPIRE --- A Graphical User Interface for PSPP
- Copyright (C) 2005 Free Software Foundation
- Written by John Darrington
+/* PSPPIRE - a graphical user interface for PSPP.
+ Copyright (C) 2005, 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 2 of the License, or
- (at your option) any later version.
+ 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.
+ 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, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
- 02110-1301, USA. */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see . */
-#ifndef __PSPPIRE_MISSING_VAL_DIALOG_H
-#define __PSPPIRE_MISSING_VAL_DIALOG_H
+#ifndef PSPPIRE_MISSING_VAL_DIALOG_H
+#define PSPPIRE_MISSING_VAL_DIALOG_H 1
/* This module describes the behaviour of the Missing Values dialog box,
used for input of the missing values in the variable sheet */
-
#include
-#include
+#include "data/format.h"
+#include "data/missing-values.h"
+#include "ui/gui/psppire-dialog.h"
+
+G_BEGIN_DECLS
+
+struct variable;
-#include "missing-values.h"
+#define PSPPIRE_TYPE_MISSING_VAL_DIALOG (psppire_missing_val_dialog_get_type())
+#define PSPPIRE_MISSING_VAL_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),PSPPIRE_TYPE_MISSING_VAL_DIALOG,PsppireMissingValDialog))
+#define PSPPIRE_MISSING_VAL_DIALOG_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class),PSPPIRE_TYPE_MISSING_VAL_DIALOG,PsppireMissingValDialogClass))
+#define PSPPIRE_IS_MISSING_VAL_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),PSPPIRE_TYPE_MISSING_VAL_DIALOG))
+#define PSPPIRE_IS_MISSING_VAL_DIALOG_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class),PSPPIRE_TYPE_MISSING_VAL_DIALOG))
+#define PSPPIRE_MISSING_VAL_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),PSPPIRE_TYPE_MISSING_VAL_DIALOG,PsppireMissingValDialogClass))
-struct missing_val_dialog
-{
- GtkWidget *window;
+typedef struct _PsppireMissingValDialog PsppireMissingValDialog;
+typedef struct _PsppireMissingValDialogClass PsppireMissingValDialogClass;
+
+struct _PsppireMissingValDialog {
+ PsppireDialog parent;
- /* The variable whose missing values are to be updated */
- struct PsppireVariable *pv;
-
- /* local copy */
struct missing_values mvl;
+ gchar *encoding;
+ struct fmt_spec format;
/* Radio Buttons */
GtkToggleButton *button_none;
@@ -52,8 +58,24 @@ struct missing_val_dialog
GtkWidget *discrete;
};
-struct missing_val_dialog * missing_val_dialog_create(GladeXML *xml);
+struct _PsppireMissingValDialogClass {
+ PsppireDialogClass parent_class;
+};
+
+GType psppire_missing_val_dialog_get_type (void) G_GNUC_CONST;
+PsppireMissingValDialog* psppire_missing_val_dialog_new (
+ const struct variable *);
+
+void psppire_missing_val_dialog_set_variable (PsppireMissingValDialog *,
+ const struct variable *);
+const struct missing_values *psppire_missing_val_dialog_get_missing_values (
+ const PsppireMissingValDialog *);
+
+void psppire_missing_val_dialog_run (GtkWindow *parent_window,
+ const struct variable *,
+ struct missing_values *);
+
-void missing_val_dialog_show(struct missing_val_dialog *dialog);
+G_END_DECLS
-#endif
+#endif /* PSPPIRE_MISSING_VAL_DIALOG_H */