From fb5d1b80dc97bf940079b5a4b3b3f35002cc60aa Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Tue, 1 Mar 2011 18:05:34 -0800
Subject: qtgui-grc: rename the text entry and label blocks
---
gr-qtgui/grc/qtgui_entry.xml | 67 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
create mode 100644 gr-qtgui/grc/qtgui_entry.xml
(limited to 'gr-qtgui/grc/qtgui_entry.xml')
diff --git a/gr-qtgui/grc/qtgui_entry.xml b/gr-qtgui/grc/qtgui_entry.xml
new file mode 100644
index 000000000..63c14ad8f
--- /dev/null
+++ b/gr-qtgui/grc/qtgui_entry.xml
@@ -0,0 +1,67 @@
+
+
+
+ QT GUI Entry
+ variable_qtgui_entry
+ QT GUI Widgets
+ from PyQt4 import Qt
+ self.$(id) = $(id) = $value
+ #set $win = 'self._%s_tool_bar'%$id
+$win = Qt.QToolBar(self)
+#if not $label()
+ #set $label = '"%s"'%$id
+#end if
+$(win).addWidget(Qt.QLabel($label+" ", None))
+self._$(id)_line_edit = Qt.QLineEdit(str(self.$id))
+self._$(id)_tool_bar.addWidget(self._$(id)_line_edit)
+self._$(id)_line_edit.returnPressed.connect(
+ lambda: self.set_$(id)($(type.conv)(self._$(id)_line_edit.text())))
+$(gui_hint()($win))
+ self.set_$(id)($value)
+ self._$(id)_line_edit.setText(str($id))
+
+ Label
+ label
+
+ string
+ #if $label() then 'none' else 'part'#
+
+
+ Type
+ type
+ int
+ enum
+ part
+
+
+
+
+
+
+
+ Default Value
+ value
+ 0
+ $type
+
+
+ GUI Hint
+ gui_hint
+
+ gui_hint
+ part
+
+
+This block creates a variable with a text entry box. \
+Leave the label blank to use the variable id as the label.
+
+The GUI hint can be used to position the widget within the application. \
+The hint is of the form [tab_id@tab_index]: [row, col, row_span, col_span]. \
+Both the tab specification and the grid position are optional.
+
+
--
cgit
From 47096a9ec323ad88c83afbaefa4686284449048c Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Wed, 2 Mar 2011 22:13:11 -0800
Subject: qtgui-grc: add engineering notation to entry and label + other tweaks
---
gr-qtgui/grc/qtgui_entry.xml | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
(limited to 'gr-qtgui/grc/qtgui_entry.xml')
diff --git a/gr-qtgui/grc/qtgui_entry.xml b/gr-qtgui/grc/qtgui_entry.xml
index 63c14ad8f..32c879420 100644
--- a/gr-qtgui/grc/qtgui_entry.xml
+++ b/gr-qtgui/grc/qtgui_entry.xml
@@ -10,20 +10,21 @@
variable_qtgui_entry
QT GUI Widgets
from PyQt4 import Qt
+ from gnuradio import eng_notation
self.$(id) = $(id) = $value
#set $win = 'self._%s_tool_bar'%$id
$win = Qt.QToolBar(self)
#if not $label()
#set $label = '"%s"'%$id
#end if
-$(win).addWidget(Qt.QLabel($label+" ", None))
+$(win).addWidget(Qt.QLabel($label+": ", None))
self._$(id)_line_edit = Qt.QLineEdit(str(self.$id))
self._$(id)_tool_bar.addWidget(self._$(id)_line_edit)
self._$(id)_line_edit.returnPressed.connect(
- lambda: self.set_$(id)($(type.conv)(self._$(id)_line_edit.text())))
+ lambda: self.set_$(id)($(type.conv)(self._$(id)_line_edit.text().toAscii())))
$(gui_hint()($win))
self.set_$(id)($value)
- self._$(id)_line_edit.setText(str($id))
+ self._$(id)_line_edit.setText($(type.str)($id))
Label
label
@@ -37,11 +38,11 @@ $(gui_hint()($win))
int
enum
part
-
-
-
-
-
+
+
+
+
+
Default Value
--
cgit
From 9121b75d68a0c90deee814edffe387480b52019b Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Mon, 7 Mar 2011 18:40:57 -0800
Subject: qtgui-grc: minor tweaks to the various things
---
gr-qtgui/grc/qtgui_entry.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'gr-qtgui/grc/qtgui_entry.xml')
diff --git a/gr-qtgui/grc/qtgui_entry.xml b/gr-qtgui/grc/qtgui_entry.xml
index 32c879420..1a98402a0 100644
--- a/gr-qtgui/grc/qtgui_entry.xml
+++ b/gr-qtgui/grc/qtgui_entry.xml
@@ -17,7 +17,7 @@ $win = Qt.QToolBar(self)
#if not $label()
#set $label = '"%s"'%$id
#end if
-$(win).addWidget(Qt.QLabel($label+": ", None))
+$(win).addWidget(Qt.QLabel($label+": "))
self._$(id)_line_edit = Qt.QLineEdit(str(self.$id))
self._$(id)_tool_bar.addWidget(self._$(id)_line_edit)
self._$(id)_line_edit.returnPressed.connect(
--
cgit