From d52c462e5fd3eae7d00505a64a013e811d43234c Mon Sep 17 00:00:00 2001 From: jcorgan Date: Sat, 23 Aug 2008 02:26:15 +0000 Subject: Merged changeset r9285:9377 from jblum/grc into trunk, with distcheck fixes and local modifications. Integrates previously separate GNU Radio Companion into top-level component 'grc'. (Josh Blum) git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9378 221aa14e-8319-0410-a670-987f0aec2ac5 --- grc/data/grc_gnuradio/blocks/variable_slider.xml | 92 ++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 grc/data/grc_gnuradio/blocks/variable_slider.xml (limited to 'grc/data/grc_gnuradio/blocks/variable_slider.xml') diff --git a/grc/data/grc_gnuradio/blocks/variable_slider.xml b/grc/data/grc_gnuradio/blocks/variable_slider.xml new file mode 100644 index 000000000..2f6374b9a --- /dev/null +++ b/grc/data/grc_gnuradio/blocks/variable_slider.xml @@ -0,0 +1,92 @@ + + + + Variable Slider + variable_slider + $value +_$(id)_control = grc_wxgui.slider_$(slider_type)_control( + window=self.GetWin(), + callback=self.set_$(id), + #if $label.eval + label=$label, + #else + label="$id", + #end if + value=$id, + min=$min, + max=$max, + num_steps=$num_steps, +) +#set $grid_pos = $grid_pos.eval +#if not grid_pos +self.Add(_$(id)_control) +#else +self.GridAdd(_$(id)_control, $grid_pos[0], $grid_pos[1], $grid_pos[2], $grid_pos[3]) +#end if + + Label + label + + string + + + Default Value + value + 50 + real + + + Minimum + min + 0 + real + + + Maximum + max + 100 + real + + + Num Steps + num_steps + 100 + int + + + Slider Type + slider_type + horizontal + enum + + + + + Grid Position + grid_pos + + grid_pos + + $min <= $value <= $max + $min < $max + 0 < $num_steps <= 1000 + +This block creates a variable with a slider. \ +Leave the label blank to use the variable id as the label. \ +The value must be a real number. \ +The value must be between the minimum and the maximum. \ +The number of steps must be between 0 and 1000. + +Use the Grid Position (row, column, row span, column span) to position the graphical element in the window. + + -- cgit