X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=src%2Fui%2Fgui%2Fval-labs-dialog.h;h=379a5eeb3ee8fd1bf7968806582b605d788ac7f2;hb=cff03324423d6ff8a35a52d078d75f0a1a028c70;hp=be5580f0d80f40a09a26238851283adf06b4e26c;hpb=cf63d499efd5e6ca3a7dcc6386b3b87bd31bfda9;p=pspp
diff --git a/src/ui/gui/val-labs-dialog.h b/src/ui/gui/val-labs-dialog.h
index be5580f0d8..379a5eeb3e 100644
--- a/src/ui/gui/val-labs-dialog.h
+++ b/src/ui/gui/val-labs-dialog.h
@@ -1,26 +1,21 @@
-/*
- PSPPIRE --- A Graphical User Interface for PSPP
- Copyright (C) 2005 Free Software Foundation
+/* 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_VAL_LABS_DIALOG_H
-#define __PSPPIRE_VAL_LABS_DIALOG_H
+#ifndef PSPPIRE_VAL_LABS_DIALOG_H
+#define PSPPIRE_VAL_LABS_DIALOG_H
/* This module describes the behaviour of the Value Labels dialog box,
@@ -28,24 +23,31 @@
#include
-#include
-
+#include "data/format.h"
+#include "data/variable.h"
+#include "ui/gui/psppire-dialog.h"
+#include "ui/gui/psppire-var-store.h"
-struct val_labs;
+G_BEGIN_DECLS
-struct val_labs_dialog
-{
- GtkWidget *window;
+#define PSPPIRE_TYPE_VAL_LABS_DIALOG (psppire_val_labs_dialog_get_type())
+#define PSPPIRE_VAL_LABS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),PSPPIRE_TYPE_VAL_LABS_DIALOG,PsppireValLabsDialog))
+#define PSPPIRE_VAL_LABS_DIALOG_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class),PSPPIRE_TYPE_VAL_LABS_DIALOG,PsppireValLabsDialogClass))
+#define PSPPIRE_IS_VAL_LABS_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),PSPPIRE_TYPE_VAL_LABS_DIALOG))
+#define PSPPIRE_IS_VAL_LABS_DIALOG_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class),PSPPIRE_TYPE_VAL_LABS_DIALOG))
+#define PSPPIRE_VAL_LABS_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),PSPPIRE_TYPE_VAL_LABS_DIALOG,PsppireValLabsDialogClass))
+typedef struct _PsppireValLabsDialog PsppireValLabsDialog;
+typedef struct _PsppireValLabsDialogClass PsppireValLabsDialogClass;
- /* The variable to be updated */
- struct variable *pv;
+struct _PsppireValLabsDialog {
+ PsppireDialog parent;
- /* Local copy of labels */
struct val_labs *labs;
+ gchar *encoding;
+ struct fmt_spec format;
/* Actions */
- GtkWidget *ok;
GtkWidget *add_button;
GtkWidget *remove_button;
GtkWidget *change_button;
@@ -61,12 +63,21 @@ struct val_labs_dialog
GtkWidget *treeview;
};
+struct _PsppireValLabsDialogClass {
+ PsppireDialogClass parent_class;
+};
+GType psppire_val_labs_dialog_get_type (void) G_GNUC_CONST;
+PsppireValLabsDialog* psppire_val_labs_dialog_new (const struct variable *);
+void psppire_val_labs_dialog_set_variable (PsppireValLabsDialog *,
+ const struct variable *);
+const struct val_labs *psppire_val_labs_dialog_get_value_labels (
+ const PsppireValLabsDialog *);
-struct val_labs_dialog * val_labs_dialog_create(GladeXML *xml);
-
-void val_labs_dialog_show(struct val_labs_dialog *dialog);
+struct val_labs *psppire_val_labs_dialog_run (GtkWindow *parent_window,
+ const struct variable *);
+G_END_DECLS
-#endif
+#endif /* psppire-val-labs-dialog.h */