From: John Darrington Date: Wed, 23 Jun 2010 14:21:06 +0000 (+0200) Subject: Seperate the goto-case dialog into its own definition file X-Git-Tag: v0.7.6~356 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9ffedbdbf9cafa930ef8ed05fb9b31335041ce2;p=pspp-builds.git Seperate the goto-case dialog into its own definition file --- diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 038b2cf2..e496e4bb 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -9,6 +9,7 @@ UI_FILES = \ src/ui/gui/chi-square.ui \ src/ui/gui/descriptives.ui \ src/ui/gui/examine.ui \ + src/ui/gui/goto-case.ui \ src/ui/gui/factor.ui \ src/ui/gui/find.ui \ src/ui/gui/frequencies.ui \ diff --git a/src/ui/gui/goto-case-dialog.c b/src/ui/gui/goto-case-dialog.c index 7c152c3b..832e1f2d 100644 --- a/src/ui/gui/goto-case-dialog.c +++ b/src/ui/gui/goto-case-dialog.c @@ -35,15 +35,14 @@ refresh (const PsppireDataWindow *de, GtkBuilder *xml) case_count = psppire_data_store_get_case_count (ds); - gtk_spin_button_set_range (GTK_SPIN_BUTTON (case_num_entry), - 1, case_count); + gtk_spin_button_set_range (GTK_SPIN_BUTTON (case_num_entry), 1, case_count); } void goto_case_dialog (PsppireDataWindow *de) { gint response; - GtkBuilder *xml = builder_new ("psppire.ui"); + GtkBuilder *xml = builder_new ("goto-case.ui"); GtkWidget *dialog = get_widget_assert (xml, "goto-case-dialog"); diff --git a/src/ui/gui/goto-case.ui b/src/ui/gui/goto-case.ui new file mode 100644 index 00000000..48fb6e45 --- /dev/null +++ b/src/ui/gui/goto-case.ui @@ -0,0 +1,74 @@ + + + + + + + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + Goto Case + True + Vertical + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 1 + Goto Case Number: + + + 0 + + + + + True + adjustment1 + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + 1 + + + + + False + 5 + 0 + + + + + True + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + 5 + spread + PSPPIRE_BUTTON_GOTO_MASK | PSPPIRE_BUTTON_CANCEL_MASK + + + False + False + end + 1 + + + + + + + 1 + 1 + 1 + 10 + + diff --git a/src/ui/gui/psppire.ui b/src/ui/gui/psppire.ui index d1075c02..2d7efb10 100644 --- a/src/ui/gui/psppire.ui +++ b/src/ui/gui/psppire.ui @@ -2083,67 +2083,6 @@ - - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - Goto Case - True - Vertical - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 1 - Goto Case Number: - - - 0 - - - - - True - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - - - 1 - - - - - False - 5 - 0 - - - - - True - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - 5 - spread - PSPPIRE_BUTTON_GOTO_MASK | PSPPIRE_BUTTON_CANCEL_MASK - - - False - False - end - 1 - - - - - GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK Select Cases: Random Sample