QT GUI Digital Number Control: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
 
Line 3: Line 3:


== Parameters ==
== Parameters ==
(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>
<b>(''R''):</b> <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>


; Id
; Id
: dtype: string
: The variable name
: The variable name


; Label
; Label
: dtype: string
: The label of the display
: The label of the display


; Min Freq (Hz)
; Min Freq (Hz)
: dtype: float
: default: '30e6'
: The minimum value which can be displayed
: The minimum value which can be displayed


; Max Freq (Hz)
; Max Freq (Hz)
: dtype: float
: default: '1700e6'
: The maximum value which can be displayed
: The maximum value which can be displayed


; Value (''R'')
; Value (''R'')
: dtype: real
: default: '100e6'
: The initial value to be displayed
: The initial value to be displayed


; Thousands Separator
; Thousands Separator
: dtype: enum
: options: [Comma, Period, None]
: default: 'Comma'
: options: ['Comma', 'Period', 'None']


; Message Property Name
; Message Property Name
: dtype: string
: default: 'freq'
: The name paired with the message value
: The name paired with the message value


; Background
; Background
: dtype: enum
: options: [silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]
: default: 'black'
: options: ['silver', 'gray', 'black', 'white', 'red', 'green', 'blue', 'navy', 'yellow', 'orange', 'purple', 'lime', 'aqua', 'teal']


; Font Color
; Font Color
: dtype: enum
: options: see above
: default: 'white'
: options: ['silver', 'gray', 'black', 'white', 'red', 'green', 'blue', 'navy', 'yellow', 'orange', 'purple', 'lime', 'aqua', 'teal']


; Read Only
; Read Only
: dtype: bool
: True / False
: default: 'False'


See [[GUI Hint]] for how to position the GUI within a window.
See [[GUI Hint]] for how to position the GUI within a window.

Latest revision as of 03:13, 5 November 2020

While it can be used for anything, this block replicates the frequency display found in many SDR receivers.
Added in 3.9

Parameters

(R): Run-time adjustable

Id
The variable name
Label
The label of the display
Min Freq (Hz)
The minimum value which can be displayed
Max Freq (Hz)
The maximum value which can be displayed
Value (R)
The initial value to be displayed
Thousands Separator
options: [Comma, Period, None]
Message Property Name
The name paired with the message value
Background
options: [silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]
Font Color
options: see above
Read Only
True / False

See GUI Hint for how to position the GUI within a window.

Example Flowgraph

This file can be found at [1]

Test dignum fg.png

Example Output

Test dignum out.png

Source Files

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
TODO