summaryrefslogtreecommitdiff
path: root/grc/gui/canvas
Commit message (Collapse)AuthorAgeFilesLines
* cmake: replace deprecated distutilsVolker Schroer2021-12-201-1/+1
| | | | | | | | | | | * gnuradio: replace deprecated distutils Check if python packaging is available Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> * Add packaging requirement Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* grc: pep8 formattingJosh Morman2021-11-246-59/+93
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: block comment font size incorrect, ignoring config fileChris2021-10-111-23/+19
| | | | | font size was being imported incorrectly resulting in the default font size always being used for comments (#5088) Signed-off-by: chris <christopher.donohue@gmail.com>
* grc: Fix desync when dragging blockDavid Winter2021-07-091-4/+10
| | | | | | | | This commit fixes what's basically a broken numerical integration in the block dragging code, leading to a position desynchronization between mouse pointer and block. Signed-off-by: David Winter <david.winter@analog.com>
* GRC: Distinguishing colors for deprecated blocksMarcus Müller2021-06-012-10/+38
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* grc : fix block can move outside top and left boundaryChristophe SEGUINOT2021-04-061-1/+16
| | | | | | * gui : fix block can move outside top and left boundary Signed-off-by: Christophe Seguinot <christophe.seguinot@univ-lille.fr> Co-authored-by: Sebastian Koslowski <sebastian.koslowski@gmail.com>
* grc: optionally show variable names in graph #4109 (#4279)Jason Uher2021-03-161-18/+44
| | | | | | | | 1. Add option to show variable name only 2. Add option to show variable name and value 3. default to traditional behavior Signed-off-by: Jason Uher <jason.uher@jhuapl.edu>
* Revert " grc: restore pre-3.8 block id behavior"Josh Morman2021-03-101-2/+2
| | | | | | This reverts commit 1fbf9ba89c643f478024d6af797e0a0dbbdf5ba3. Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* grc: ensure that strings are valid utf8 when evaluating parametersDaniel Estévez2021-01-291-0/+6
| | | | | | | | | | | | | | | | | | | | | Some objects, notably PMTs can produce non-UTF-8 strings when their __str__() method is called. For instance >>> str(pmt.init_u8vector(1, [203])) '#[\udccb]' These kinds of strings eventually give a UnicodeEncodeError, for instance when calling print() or displaying them with GTK. Python3 strings are supposed to be valid UTF-8. When these objects are used inside block parameters in GRC, it will produce several tracebacks and hang up. This commit fixes the problem by sanitizing the strings to convert them to valid UTF-8. The sanitization uses the 'backslashreplace' error response from Python. Issue #3398 is caused by this problem. Signed-off-by: Martin Braun <martin@gnuradio.org>
* grc: Don't draw disabled and hidden blocks, even if they are selectedHåkon Vågsether2021-01-131-1/+3
| | | | Signed-off-by: Håkon Vågsether <hauk142@gmail.com>
* grc: restore pre-3.8 block id behaviorJacob Gilbert2020-12-171-2/+2
| | | | Prior to 3.8 block IDs were shown in the properties dialogue for every block as these are important for function of some GR features. #2795 brought this back as an option for 3.8+, however it forces the 'hide' value to effectively be 'none' instead of 'part' (not visible on the block canvas but visible in the properties dialogue) for all blocks. This changes this back to the pre-3.8 behavior where the ID value is not shown on the canvas but is shown in the properties dialogue.
* grc: fix pylint C0330: wrong hanging indentationClayton Smith2020-10-203-4/+3
|
* grc: fix pylint C0326: wrong number of spacesClayton Smith2020-10-203-4/+4
|
* grc: fix pylint C0303: Trailing whitespaceClayton Smith2020-10-202-2/+2
|
* grc: remove sixClayton Smith2020-10-053-11/+5
|
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-037-7/+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-0/+3
| | | | | | | | 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.
* grc: draw selected elements lastSebastian Koslowski2020-05-281-0/+3
|
* grc: auto-shift colliding blocks when pastingSebastian Koslowski2020-05-281-1/+6
|
* grc: fix pasting connections when block were renamed (fixes #3499)Sebastian Koslowski2020-05-281-14/+11
|
* grc: iterate all selected blocks when changing port type (fixes #3500)Sebastian Koslowski2020-05-281-2/+2
| | | | previously the first hit terminated further processing
* grc: Fix background color of raw types for dark themesVolker Schroer2020-05-211-1/+1
| | | | | | Using a gtk3 dark theme makes the content of raw types in grc variable or parameter blocks invisible. Changing the background color to a light grey fixes this issue.
* grc: add length to tooltip for variable with lenewxl2020-05-031-1/+4
| | | | Improving the module grc.gui.canvas.param to add length to tooltip of attributes of a block in grc.
* Update license header to SPDX formatdevnulling2020-01-278-104/+16
|
* GRC: Fix color for input boxes in parameter widget for dark themesArpit Gupta2020-01-071-0/+40
| | | | Co-Authored-By: Martin Braun <martin@gnuradio.org>
* grc: Fix drag style block connection with auto-hide port labelsCMorin2020-01-031-2/+2
|
* grc: include comments in flowgraph extent calculation (fixes #2854)Sebastian Koslowski2019-11-012-5/+22
| | | | | previously the extent (upper left und lower right bounding points) only included blocks, ports and connections.
* Revert "Added switch button for bool types"karel2019-11-011-3/+0
| | | | This reverts commit 007923c64d2505b37dffb8e11cb1e3ecf4e489eb.
* grc: option toggle the show id on all blocksJosh Morman2019-09-171-1/+3
| | | | | | | | | Addresses the issue of losing access to the block id on many/most blocks though there are scenarios where you may need to see them in GRC Added a menu item tied into the grc prefs that will show the block ids Fixes #2780
* grc: restore copy/paste behaviorJosh Morman2019-07-191-2/+8
| | | | | | | | | Restores the gnuradio 3.7 copy/paste behavior where the variable name is changed to x_# of the copied block if the name is in conflict. The issue in 3.8 was that blocks always got copied as variable_# even when there was no conflict in naming Fixes #2614
* Fix for misc. documentation + trivial typosluz.paz2019-07-171-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -L ans,sinc,hist,ist,ith,uint,fo -S ./volk` Fix typos in gnuradio-runtime/ Fix typos in gr-digital/ Fix typos in gr-qtgui/ Fix typos in gr-channels/ Fix typos in grc/ Fix typos gr-filter/ Fix typos in gr-uhd/ Fix typos in gr-blocks/ Fix typos in gr-fec/
* grc: add busports back into 3.8Josh Morman2019-07-154-22/+24
| | | | | | | | Bus ports had not been added back in since the refactor of grc Hopefully this fully enables busports though there are still some issues with the gr-fec flowgraphs Fixes #2277
* grc: fix for GRC's block hotkeysaru312019-02-141-1/+1
|
* grc: Improve exception handling (bare and unnecessary)Brennan Ashton2018-11-151-2/+3
|
* grc: Restore right click menu. Fixes #2062Brennan Ashton2018-11-021-4/+32
|
* Added switch button for bool typesHåkon Vågsether2018-09-221-0/+3
|
* Merge branch 'python3_fix' into python3_mergeAndrej Rode2018-06-232-6/+6
|\
| * grc: move some of the param checkers to separate fileSebastian Koslowski2017-11-091-1/+3
| |
| * grc: refactor: move Param cls to core.paramsSebastian Koslowski2017-11-081-3/+1
| |
| * Merge branch 'merges/next' into merges/python3Sebastian Koslowski2017-10-261-2/+2
| |
* | Fixed pasting blocks from clipboardHåkon Vågsether2018-03-221-27/+16
|/
* grc: added yaml/mako supportSebastian Koslowski2017-06-295-64/+65
| | | | Includes basic converter from XML/Cheetah to YAML/Mako based block format.
* grc: gtk3: Converted actions to Gio.Action instead of Gtk.ActionSeth Hitefield2017-05-031-1/+1
|
* grc: fix regressions from gtk3 mergeSebastian Koslowski2017-03-221-0/+3
|
* cmake: add DIRECTORY support to GR_PYTHON_INSTALL and use it for grcSebastian Koslowski2017-01-191-25/+0
|
* grc: gtk3: drag to connectSebastian Koslowski2017-01-112-11/+82
|
* grc: gtk3: invalid connection all redSebastian Koslowski2017-01-111-8/+9
|
* grc: gtk3: curved connectionsSebastian Koslowski2017-01-115-157/+223
|
* grc: gtk3: reimplemented custom bg colors for param entry boxesSebastian Koslowski2017-01-111-0/+1
|
* grc: gtk3: python3 error, some cmake fixesSebastian Koslowski2017-01-111-0/+25
|