summaryrefslogtreecommitdiff
path: root/grc/core/Constants.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: don't blacklist default fg idJosh Morman2022-01-061-0/+1
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: pep8 formattingJosh Morman2021-11-241-24/+25
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: Look up type aliases as a set instead of a single value.Ryan Volz2021-10-121-18/+16
| | | | | | | | | | | After #5127, we inadvertently had duplicate dictionary keys, meaning the last entry is the only one that actually existed and some desired aliases were missing. This changes the ALIAS_OF dictionary to ALIASES_OF where the values are now a set of aliases instead of a single string value. The one use of the ALIAS_OF dictionary was changed to operate on the returned set. Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* grc: Add aliases for "sc16==short" and "sc8==byte".Ryan Volz2021-10-051-0/+4
| | | | | | | | | | When type checking was added for GRC connections, the valid connections between a block with the "sc16" type (e.g. UHD blocks) and a block with the "short" type and a vector length of 2 (e.g. ishort->complex) now fail. Adding these aliases fixes that as a stop-gap until a better solution can be found. Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* grc: allow short and byte as valid types in an enumJeff Long2021-07-191-1/+1
| | | | Signed-off-by: Jeff Long <willcode4@gmail.com>
* grc: use new cache filename to avoid confusion with earlier cachesMarcus Müller2021-06-041-1/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* grc: match data type aliases as well as typesJeff Long2021-04-101-0/+16
| | | | Signed-off-by: Jeff Long <willcode4@gmail.com>
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-1/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* grc: Add dir_select parameter typeYamakaja2020-07-231-1/+1
| | | | | | | | This commit adds a new parameter type to GNURadio Companion that allows you to select directories using a gui. This functionality is very similar to that of the previously available "file_open" and "file_save" parameter types, and mainly differs by calling GTKs file chooser with FileChooserAction.SELECT_FOLDER.
* Update license header to SPDX formatdevnulling2020-01-271-13/+2
|
* grc: function_probe_block extra quotes with block_idJosh Morman2019-05-281-1/+1
| | | | | | | | | | Due to the way stringify_flag is called, the block_id, function_name and function_args are all given extra quotes which cause issues when generating the python source change/add new dtypes for function_probe Fixes #1783
* Merge branch 'python3_fix' into nextAndrej Rode2018-06-241-69/+52
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manual merge conflict resolution has been applied to following conflicts: * Typos: * gnuradio-runtime/python/gnuradio/ctrlport/GrDataPlotter.py * gr-blocks/python/blocks/qa_wavfile.py * gr-filter/examples/gr_filtdes_api.py * grc/blocks/parameter.xml * gr-uhd/python/uhd/__init__.py * ValueError -> RuntimeError: * gr-blocks/python/blocks/qa_hier_block2.py * relative Imports & other Py3k: * gr-digital/python/digital/psk_constellations.py * gr-digital/python/digital/qam_constellations.py * gr-digital/python/digital/test_soft_decisions.py * gr-digital/python/digital/gfsk.py * SequenceCompleter: * gr-utils/python/modtool/modtool_add.py * gr-utils/python/modtool/modtool_rename.py * gr-utils/python/modtool/modtool_rm.py * Updated API on next: * gr-blocks/grc/blocks_file_source.xml * gr-blocks/python/blocks/qa_file_source_sink.py * gr-qtgui/grc/qtgui_time_sink_x.xml * GRC Py3k Updates: * grc/core/Block.py * grc/core/Constants.py * grc/core/Platform.py * grc/core/utils/odict.py * grc/gui/Actions.py * grc/gui/Block.py * grc/gui/Executor.py * grc/gui/Port.py
| * grc: move some of the param checkers to separate fileSebastian Koslowski2017-11-091-10/+10
| |
| * grc: disable auto-conversion and implement json cacheSebastian Koslowski2017-11-081-0/+2
| |
| * grc: added yaml/mako supportSebastian Koslowski2017-06-291-11/+4
| | | | | | | | Includes basic converter from XML/Cheetah to YAML/Mako based block format.
| * Merge remote-tracking branch 'upstream/next' into gtk3Sebastian Koslowski2016-09-121-2/+1
| |\
| * \ Merge remote-tracking branch 'upstream/next' into gtk3Sebastian Koslowski2016-08-091-0/+1
| |\ \
| * | | grc: remove support for old msg queuesSebastian Koslowski2016-08-081-1/+0
| | | |
| * | | grc: refactor: Port, Param, Options init clean-upSebastian Koslowski2016-07-291-0/+11
| | | |
| * | | grc-refactor: block state handlingSebastian Koslowski2016-07-131-5/+0
| | | |
| * | | grc-refactor: move more port type color stuff to guiSebastian Koslowski2016-07-131-32/+24
| | | |
| * | | Merge remote-tracking branch 'grcwg/next_grcwg' into gtk3Sebastian Koslowski2016-07-131-0/+1
| |\ \ \
| * | | | grc: py3k compat using python-modernizeSebastian Koslowski2016-06-091-3/+7
| | | | |
| * | | | grc-refactor: move param entry colors spec in gui packageSebastian Koslowski2016-05-301-17/+2
| | | | |
* | | | | Merge branch 'master' into nextMartin Braun2018-02-031-1/+1
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Comment typo fixing.luz.paz2018-02-031-1/+1
| | |_|/ | |/| | | | | | | | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* | | | grc: remove support for old msg queuesSebastian Koslowski2016-09-051-2/+0
| | | | | | | | | | | | | | | | cherry-picked from gtk3 branch
* | | | grc: remove wxgui support from coreSebastian Koslowski2016-09-051-1/+0
|/ / /
* | | grc: also read user default flow graph from envSebastian Koslowski2016-08-031-1/+1
| | |
* | | grc: look for default_flow_graph.grc in ~/.grc_gnuradioChris Kuethe2016-08-031-0/+1
| |/ |/| | | | | allows users to create their own template flow graph
* | grc: separate core and OOT block trees via the category of each blockSebastian Koslowski2016-05-271-0/+1
|/ | | | | | | Each block get assigned a module based on the root of its category. The category is set via a block_tree.xml or else from its <category> tag. The category root is only interpreted as module name if it is in square brackets. Else the default module 'Others' is used.
* grc: add warning for block flagged deprecatedSebastian Koslowski2016-05-201-0/+1
|
* grc: Added bits (unpacked bytes) as a data typeMartin Braun2016-05-111-4/+7
| | | | | Note: Sizeof is left at 1, so this causes no warnings where flow graphs used to work.
* grc-refactor: move gui prefs to guiSebastian Koslowski2016-04-051-24/+1
|
* grc-refactor: Platform.pySebastian Koslowski2016-02-171-1/+1
|
* grc-refactor: rename grc/model/ to grc/core/Sebastian Koslowski2016-02-171-0/+168