[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-commit
Subject:    [Commit-gnuradio] r9060 - in grc/trunk/src/grc_gnuradio: . blocks/operators
From:       jblum () gnuradio ! org
Date:       2008-07-30 19:43:48
Message-ID: 20080730194348.D174F380074 () nyquist ! gnuradio ! org
[Download RAW message or body]

Author: jblum
Date: 2008-07-30 13:43:48 -0600 (Wed, 30 Jul 2008)
New Revision: 9060

Modified:
   grc/trunk/src/grc_gnuradio/Param.py
   grc/trunk/src/grc_gnuradio/blocks/operators/gr_fft_vxx.xml
Log:
hide IO types, and non var IDs

Modified: grc/trunk/src/grc_gnuradio/Param.py
===================================================================
--- grc/trunk/src/grc_gnuradio/Param.py	2008-07-30 19:33:46 UTC (rev 9059)
+++ grc/trunk/src/grc_gnuradio/Param.py	2008-07-30 19:43:48 UTC (rev 9060)
@@ -39,6 +39,23 @@
 		'grid_pos', 'import',
 	]
 
+	def get_hide(self):
+		"""!
+		Get the hide value from the base class.
+		If hide was empty and this is a type controller, set hide to part.
+		@return hide the hide param string
+		"""
+		hide = _Param.get_hide(self)
+		#hide IO controlling params
+		if not hide and self.get_key() in (
+			'type', 'vlen', 'num_inputs', 'num_outputs'
+		): hide = 'part'
+		#hide ID in non variable blocks
+		elif not hide and self.get_key() == 'id' and self.get_parent().get_key() not in (
+			'variable', 'variable_slider', 'variable_chooser', 'variable_text_box', 'parameter', 'options'
+		): hide = 'part'
+		return hide
+
 	def evaluate(self):
 		"""!
 		Evaluate the value.

Modified: grc/trunk/src/grc_gnuradio/blocks/operators/gr_fft_vxx.xml
===================================================================
--- grc/trunk/src/grc_gnuradio/blocks/operators/gr_fft_vxx.xml	2008-07-30 19:33:46 UTC (rev 9059)
+++ grc/trunk/src/grc_gnuradio/blocks/operators/gr_fft_vxx.xml	2008-07-30 19:43:48 UTC (rev 9060)
@@ -18,7 +18,6 @@
 		<name>Input Type</name>
 		<key>type</key>
 		<type>enum</type>
-		<hide>part</hide>
 		<option>
 			<name>Complex</name>
 			<key>complex</key>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic