Implemented the Rank Cases dialog
[pspp-builds.git] / src / ui / gui / data-editor.c
index bfb05b5f26db55296a6d9870f44df83128370b0f..dc7ca2852cb4532663652b26ed67050e6b722629 100644 (file)
@@ -37,6 +37,7 @@
 #include "compute-dialog.h"
 #include "goto-case-dialog.h"
 #include "find-dialog.h"
+#include "rank-dialog.h"
 #include "comments-dialog.h"
 #include "variable-info-dialog.h"
 #include "descriptives-dialog.h"
@@ -620,6 +621,16 @@ new_data_editor (void)
                    G_CALLBACK (find_dialog), de);
 
 
+  de->invoke_rank_dialog  =
+    gtk_action_new ("rank-dialog",
+                   _("Ran_k Cases"),
+                   _("Rank Cases"),
+                   "pspp-rank-cases");
+
+  g_signal_connect (de->invoke_rank_dialog, "activate",
+                   G_CALLBACK (rank_dialog), de);
+
+
   de->invoke_variable_info_dialog  =
     gtk_action_new ("variable-info-dialog",
                    _("Variables"),
@@ -722,6 +733,10 @@ new_data_editor (void)
                            get_widget_assert (de->xml, "button-find")
                            );
 
+  gtk_action_connect_proxy (de->invoke_rank_dialog,
+                           get_widget_assert (de->xml, "transform_rank")
+                           );
+
   gtk_action_connect_proxy (de->invoke_weight_cases_dialog,
                            get_widget_assert (de->xml, "data_weight-cases")
                            );