96 Commits

Author SHA1 Message Date
Daniel Estévez
f7b371a4e0 grc: add option to show properties field colors
In #6888 the colors that indicate the type of each field in the
block properties were replaced by labels, because colors can give
contrast problems, specially in dark mode. I personally find colors
useful, because they help me to identify quickly the field that I
want to edit (perhaps I'm just too used to having colors).

This commit adds the field colors back, but only as an optional
feature controlled by an entry in the View menu. This setting is
saved to the GRC preferences, and it defaults to colors disabled.
Users that prefer colors can simply enable the old behavior in this
menu entry.

The new labels to the right of each field that indicate the field
type are always shown, regardless of whether field colors are enabled.
Even when colors are shown, the labels can be a useful reminder of
what type each color stands for, and they don't use too much screen
real state.

Signed-off-by: Daniel Estévez <daniel@destevez.net>
2024-03-21 07:51:25 -04:00
Josh Morman
b7828c950c grc: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
2021-11-24 14:41:53 -05:00
Jeff Dumps
5cd0e1275b grc: added shortcuts zoom in/out/reset
Co-authored-by: Jeff Dumps <jeffdumps@gmail.com>
Co-authored-by: Derek Kozel <derek@bitstovolts.com>
Signed-off-by: Derek Kozel <derek@bitstovolts.com>
2021-10-11 21:30:25 +01:00
Jason Uher
3d08af346d grc: optionally show variable names in graph #4109 (#4279)
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>
2021-03-16 06:39:20 -04:00
Marcus Müller
12eaa9c9a7 GRC: Actions with preferences now explicitly default to something 2021-01-13 10:07:07 +01:00
Marcus Müller
20c02c2312 GRC: Actions.py needed code formatting to be workable 2021-01-13 10:07:07 +01:00
Clayton Smith
24acd82b02 grc: remove six 2020-10-05 09:36:11 +02:00
Oleksandr Kravchuk
43e6a43e3d python: Remove unnecessary 'from __future__ import'
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
2020-08-03 11:40:27 +02:00
alekhgupta1441
045d9ebd1e grc: Updated Actions 2020-05-06 07:47:36 -04:00
Davide Gerhard
5f1a5459c4 gnuradio-companion: add Meta modifier key for macOS
implements support for the Meta key on macOS.
Others platforms continue to use Ctrl.
2020-04-19 15:25:46 -04:00
Jacob Gilbert
1072bd85e7 grc: add hotkeys to clear/save console, and to toggle autoscroll, updated shortcut help menu accordingly 2020-04-09 21:05:39 +01:00
alekhgupta1441
7a29b54b4a grc: Added a new menu option under Help for Keyboard-Shortcuts 2020-03-28 07:52:20 -04:00
devnulling
9a453c2ca6 Update license header to SPDX format 2020-01-27 19:56:21 -08:00
Josh Morman
0b4f462c71 grc: option toggle the show id on all blocks
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
2019-09-17 14:30:50 -05:00
luz.paz
df74123002 Fix for misc. documentation + trivial typos
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/
2019-07-17 22:54:23 +02:00
aru31
cc335de1cf grc: fix for GRC's block hotkeys 2019-02-14 13:04:16 +01:00
Håkon Vågsether
d018f12af3 Fixed a bug where GRC's Create New button and Ctrl+N were greyed out/didn't work.
The Create New dropdown list is now assigned to its own action, separate
from Ctrl+N and the Create New button.
2018-10-06 19:04:42 +02:00
Clayton Smith
073dfeb123 Give the GRC GUI a better default configuration. 2018-09-22 00:17:59 +02:00
Håkon Vågsether
328c9e3ad9 Added the Delete key to the delete action 2017-11-09 19:39:25 +01:00
Seth Hitefield
b4cd681e1c grc: gtk3: Converted actions to Gio.Action instead of Gtk.Action 2017-05-03 07:07:59 -07:00
Sebastian Koslowski
7db5091a84 grc: fix regressions from gtk3 merge 2017-03-22 14:18:58 +01:00
Johnathan Corgan
be5217257b Merge branch 'next' into python3
Conflicts:
	gr-blocks/swig/blocks_swig.py.in
	gr-uhd/apps/uhd_app.py
2017-03-16 22:27:04 -07:00
Kartik Patel
a7c6b86288 grc: 'Save a copy' feature added 2017-01-26 22:42:46 +05:30
Kartik Patel
0ae76e24ca grc: Add 'Create Duplicate' feature 2017-01-26 03:37:07 +05:30
Seth Hitefield
ae0764ced9 grc: refactor: Moved preferences to Config.py 2016-09-23 16:18:00 -04:00
Seth Hitefield
bf3a2d1093 grc: refactor: Cleaned up imports 2016-09-22 12:15:51 -04:00
Sebastian Koslowski
8b374557a7 grc: gtk3: make screnshots as png, pdf and svg 2016-09-12 12:15:35 -06:00
Sebastian Koslowski
b9881b6ff5 grc: py3k compat using python-modernize 2016-06-09 14:47:35 +02:00
Sebastian Koslowski
59cb4ebdd2 gtk3: add flowgraph draw code and other gtk3 fixes (WIP) 2016-05-24 13:02:23 -04:00
Seth Hitefield
f337362360 grc: Main window opens with pygobject and gtk3. Still throws tons of errors. 2016-05-24 11:11:33 -04:00
Seth Hitefield
81e40bb3d8 grc: Renamed reports window to console. 2016-05-20 13:35:26 +02:00
Seth Hitefield
45962440c1 grc: Variable editor tweaks. 2016-05-19 20:32:49 +02:00
Seth Hitefield
e381101f0d grc: Added the variable editor panel 2016-05-18 19:02:22 -04:00
Sebastian Koslowski
3cde3cb26a grc: optionally hide all variable blocks 2016-05-18 18:59:31 -04:00
Sebastian Koslowski
db0f6c8e20 grc: minor fixes/clean-ups 2016-05-18 18:59:31 -04:00
Glenn Richardson
1d946be32b grc: block alignment tools 2016-05-18 16:25:17 +02:00
Sebastian Koslowski
73b489e183 grc: add select all action 2016-04-04 15:34:49 +02:00
Sebastian Koslowski
30f1efebbe grc: #fff as canvas bg color 2016-02-05 09:41:41 +01:00
Johnathan Corgan
a256976b1a Merge branch 'maint' 2015-12-07 15:38:59 -08:00
Sebastian Koslowski
fa5c08a972 grc: typo in tooltip 2015-12-03 17:19:30 +01:00
Sebastian Koslowski
17e2e03609 grc: fix Action to str method 2015-11-24 16:36:10 +01:00
Glenn Richardson
56d2dd26b6 grc: added recently opened flowgraph submenu and toolbar button dropdown menu 2015-11-16 17:16:51 +01:00
Sebastian Koslowski
7e5137830c grc: open and update params from external editor 2015-11-11 21:39:35 +01:00
Glenn Richardson
86875a71a4 grc: simple dialog for selecting QSS theme for QT GUI apps 2015-10-01 21:51:52 +02:00
Sebastian Koslowski
66bc56b050 grc: fixup Actions*.py 2015-10-01 21:50:53 +02:00
Seth Hitefield
61df6d4470 grc: Flowgraph complexity. Shows under options block when enabled. 2015-09-26 14:28:33 +02:00
Sebastian Koslowski
635149810c grc: rewrite Preferences.py 2015-08-13 13:49:07 +02:00
Sebastian Koslowski
49bbf0a29f grc: only show code preview tab after user enables it 2015-07-17 10:03:17 +02:00
Sebastian Koslowski
d6669ecb5b grc: add default value to ToggleActions 2015-07-17 10:01:04 +02:00
Seth Hitefield
ddf8795058 grc: Added ability to bypass blocks (Suggested by Chris Headley).
Only for blocks that have a single source and sink of the same type.
Feature can be disabled per block using the 'disable_bypass' flag in the block definition.
2015-06-11 09:40:24 +02:00