Enable the value_labels popup dialog
[pspp] / src / ui / gui / psppire-dialog-action-recode.h
index 37d18d5c46ca1deccdd8e32ff021fef70592c87b..f46c34aaa628fea48a9f432dde18cc5bd38c1fce 100644 (file)
@@ -74,16 +74,13 @@ struct _PsppireDialogActionRecode
   GtkWidget *convert_button;
   GtkWidget *new_copy_label;
 
+
   GtkWidget *new_value_entry;
 
   GtkWidget *old_value_chooser;
 
   GtkListStore *value_map;
 
-  /* Indicates that the INTO {new variables} form of the dialog
-     is being used */
-  gboolean different;
-
   GtkWidget *acr;
 
   gboolean input_var_is_string;
@@ -92,22 +89,35 @@ struct _PsppireDialogActionRecode
   GtkWidget *new_label_entry;
   GtkWidget *change_button;
 
+  GtkWidget *output_variable_box;
+  
   GtkWidget *string_button;
   GtkWidget *width_entry;
-
-  /* A hash table of struct nlp's indexed by variable */
-  GHashTable *varmap;
 };
 
 
 struct _PsppireDialogActionRecodeClass
 {
   PsppireDialogActionClass parent_class;
-};
 
+  gboolean (*target_is_string) (const PsppireDialogActionRecode *);
+};
 
 GType psppire_dialog_action_recode_get_type (void) ;
 
+void psppire_dialog_action_recode_refresh (PsppireDialogAction *);
+
+void psppire_dialog_action_recode_pre_activate (PsppireDialogActionRecode *act, void (*populate_treeview) (PsppireDialogActionRecode *) );
+
+
+GType new_value_get_type (void);
+
+
+char *psppire_dialog_action_recode_generate_syntax (const PsppireDialogAction *act,
+                                                   void (*add_string_decls) (const PsppireDialogActionRecode *, struct string *),
+                                                   void (*add_into_clause) (const PsppireDialogActionRecode *, struct string *),
+                                                   void (*add_new_value_labels) (const PsppireDialogActionRecode *, struct string *));
+
 G_END_DECLS
 
 #endif /* __PSPPIRE_DIALOG_ACTION_RECODE_H__ */