summaryrefslogtreecommitdiff
path: root/grc/gui/DrawingArea.py
Commit message (Collapse)AuthorAgeFilesLines
* grc: pep8 formattingJosh Morman2021-11-241-2/+2
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* grc: added shortcuts zoom in/out/resetJeff Dumps2021-10-111-8/+23
| | | | | | Co-authored-by: Jeff Dumps <jeffdumps@gmail.com> Co-authored-by: Derek Kozel <derek@bitstovolts.com> Signed-off-by: Derek Kozel <derek@bitstovolts.com>
* grc: Include scale factor when computing drawing area size.Ryan Volz2021-09-301-1/+5
| | | | | | Fixes #4174. Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* grc: prevent search keystrokes from modifying flowgraph, take twoClayton Smith2020-08-201-1/+2
| | | | | | | | | | | | | | | | | After blocks are unselected, it's necessary to trigger an Action so that keystroke action handlers will be updated in Application._handle_action. In my previous pull request, I achieved this by replacing a FlowGraph.update_selected() call with a FlowGraph.update_selected_elements() call, since the latter happens to trigger an Action. However, this does not occur in all cases, because FlowGraph.update_selected_elements() can return early. To fix the issue, I've reverted that change and changed the DrawingArea's focus-out-event handler to explicitly trigger Actions.ELEMENT_SELECT(). After this change, blocks appear to be unselect in all cases when accessing the block search box.
* grc: prevent search keystrokes from modifying flowgraphClayton Smith2020-08-191-11/+7
| | | | | | | | | | | | | | | A confluence of bugs introduced while updating GRC to Python 3 results in keystrokes being sent to the drawing area while typing in the block search box. First, the drawing area needs to be placed in a Viewport before being added into a ScrolledWindow. Fixing this allows the drawing area to grab focus as intended when it is clicked. Second, the drawing area needs to unselect all blocks when it loses focus so that the relevant keystroke actions can be disabled. This functionality was commented out during the transition to Python 3, and I've restored it here.
* 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
* Update license header to SPDX formatdevnulling2020-01-271-13/+2
|
* grc: prevent scrolling to top of canvasJosh Morman2019-08-071-1/+6
| | | | | | | | | | | GRC was scrolling to the top of the canvas when clicking. This occurs when clicking into the console or search tree then back into the canvas, the view is reset to the top left. Commented out one line in _handle_mouse_button_press in DrawingArea.py - makes the problem go away. Fixes #2660
* grc: fix for GRC's block hotkeysaru312019-02-141-39/+0
|
* Merge branch 'python3_fix' into nextAndrej Rode2018-06-241-82/+171
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: gtk3: Small fixes for PR 1299Seth Hitefield2017-05-111-25/+28
| |
| * grc: gtk3: Converted actions to Gio.Action instead of Gtk.ActionSeth Hitefield2017-05-031-0/+44
| |
| * grc: gtk minor fixesSebastian Koslowski2017-03-091-1/+2
| |
| * grc: gtk3: curved connectionsSebastian Koslowski2017-01-111-3/+4
| |
| * grc: gtk3: reimplemented custom bg colors for param entry boxesSebastian Koslowski2017-01-111-1/+1
| |
| * grc: gtk3: fix block layout sizes when zoomingSebastian Koslowski2017-01-111-13/+18
| |
| * grc: gtk3: fix canvas extent after zoomingSebastian Koslowski2017-01-061-4/+7
| |
| * grc: refactor: Cleaned up importsSeth Hitefield2016-09-221-1/+1
| |
| * grc: gtk3: minor gui flowgraph cleanupSebastian Koslowski2016-08-301-1/+1
| |
| * grc: gtk3: fancier coloring for disabled and bypassed blocksSebastian Koslowski2016-08-081-1/+1
| |
| * grc: gtk3: fix bug in mouse motion handlingSebastian Koslowski2016-07-291-2/+3
| |
| * grc: py3k compat using python-modernizeSebastian Koslowski2016-06-091-0/+1
| |
| * grc: gtk3: remove canvas size and enable zoomingSebastian Koslowski2016-05-311-33/+93
| |
| * gtk3: add flowgraph draw code and other gtk3 fixes (WIP)Sebastian Koslowski2016-05-241-45/+12
| |
| * grc: Main window opens with pygobject and gtk3. Still throws tons of errors.Seth Hitefield2016-05-241-27/+30
| |
* | Comment typo fixing.luz.paz2018-02-031-1/+1
|/ | | | Luzpaz went ahead and found typos using `codespell -q 3`.
* grc: optional transparent bg in screen shotsSebastian Koslowski2016-02-051-1/+4
|
* grc: #fff as canvas bg colorSebastian Koslowski2016-02-051-5/+19
|
* grc: added horizontal mouse wheel scrollingGlenn Richardson2015-10-151-0/+8
|
* grc: toggle action and mod1 modifier for snap-to-gridSebastian Koslowski2014-08-201-0/+4
|
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-1/+1
| | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* grc: fix some PyGTK backwards compatibilty issuesSebastian Koslowski2014-03-141-5/+5
|
* grc: fix search entry focus (again)Sebastian Koslowski2013-11-221-2/+2
|
* grc: prevent unselect on context menu activationSebastian Koslowski2013-11-071-0/+2
| | | | A thanks to Michael Burian for reporting this.
* filter-based block tree searchSebastian Koslowski2013-10-241-4/+13
|
* grc: Fix whitespace issue in grc to use proper spacesTim O'Shea2013-07-091-101/+101
| | | | Remove all \t's to match the rest of GNU Radio
* docs: Modified argument formating in python docstrings in grc.Ben Reynwar2012-08-141-1/+3
|
* added a right click context menu for the flow graph elementsJosh Blum2010-03-091-5/+7
|
* fixed screenshot capability, calls get pixbuf in drawing areajblum2009-06-291-0/+5
| | | | git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11307 221aa14e-8319-0410-a670-987f0aec2ac5
* Merging r11186:11273 from grc branch.jblum2009-06-231-0/+126
Fixes, features, and reorganization for grc. Minor fixes and features for wxgui forms. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11274 221aa14e-8319-0410-a670-987f0aec2ac5