46 Commits

Author SHA1 Message Date
Marcus Müller
f302cf5eee GRC/Screenshots: create ImageSurface with int dimensions
Since cairo.ImageSurface is pixel-based, it only accepts integer dimensions.

No need to round up – proper rounding and padding make this quite safe.

Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
2022-07-16 08:20:32 -04:00
Josh Morman
b7828c950c grc: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
2021-11-24 14:41:53 -05: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
japm48
44bbd17d5b grc: use cmake --build instead of make
This allows the use of other toolchains (ninja, MSVC, etc.).
Also, use all available CPU cores (equivalent of "make -j$(nproc)").
2020-04-26 18:59:26 -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
devnulling
9a453c2ca6 Update license header to SPDX format 2020-01-27 19:56:21 -08:00
Sebastian Koslowski
c2209b1c5f grc: move some of the param checkers to separate file 2017-11-09 19:26:43 +01:00
Sebastian Koslowski
9eae0605c5 grc: gtk3: fix #1290 2017-08-30 20:19:27 +02: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
269aad01b0 grc: gtk3: curved connections 2017-01-11 21:33:25 +01:00
Sebastian Koslowski
7a425abe47 grc: gtk3: fix block layout sizes when zooming 2017-01-11 14:07:13 +01:00
Sebastian Koslowski
1227f7403e grc: gtk3: fix canvas extent after zooming 2017-01-06 22:01:06 +01:00
Sebastian Koslowski
a2960ceb18 Merge remote-tracking branch 'upstream/next' into gtk3 2016-11-17 21:21:08 +01:00
Johnathan Corgan
493aa4e170 Merge branch 'master' into next 2016-11-12 07:01:58 -08:00
Johnathan Corgan
91a2f09064 Merge branch 'master' into next 2016-11-12 06:29:42 -08:00
Sebastian Müller
4f8ce26445 grc: fix column widths on dpi scalings != 1 2016-11-02 10:52:57 +01:00
Sebastian Koslowski
edcf24875a grc: respect display scaling for block positions, canvas size and props dialog 2016-10-26 15:13:13 +02:00
Johnathan Corgan
aa214c5f35 Merge branch 'master' into next 2016-10-25 14:09:14 -07:00
Johnathan Corgan
1e4b6c5aea Revert "Merge remote-tracking branch 'skoslowski/dpi_fix' into maint"
This reverts commit afadc5cb5564cb9b6136db046adccde5856edf57, reversing
changes made to 915f1b02408a6a4f2ce2ffb2d9336643745aa939.
2016-10-25 14:08:09 -07:00
Johnathan Corgan
93792fb909 Merge branch 'master' into next 2016-10-24 17:07:14 -07:00
Johnathan Corgan
410f0c6a3f Merge remote-tracking branch 'skoslowski/dpi_fix' into maint 2016-10-24 17:06:55 -07:00
Sebastian Koslowski
dfbb9979f1 grc: respect display scaling for block positions, canvas size and props dialog 2016-10-21 09:29:38 +02:00
Ben Hilburn
cd54d8fa2e Backport GRC Python code for Python-2.6.6+ 2016-10-17 17:07:23 -04:00
Sebastian Koslowski
8b374557a7 grc: gtk3: make screnshots as png, pdf and svg 2016-09-12 12:15:35 -06:00
Sebastian Koslowski
0f23c2cc03 grc: refactor: Port, Param, Options init clean-up 2016-07-29 15:45:07 +02:00
Sebastian Koslowski
7510574554 grc: refactor: minor clean-up and fixes 2016-07-14 14:22:43 +02:00
Sebastian Koslowski
6c689a1af9 grc: gtk3: update main and checks 2016-07-13 17:22:22 +02:00
Sebastian Koslowski
b9881b6ff5 grc: py3k compat using python-modernize 2016-06-09 14:47:35 +02:00
Sebastian Koslowski
bbd765a040 grc: gtk3: remove canvas size and enable zooming 2016-05-31 17:35:10 +02:00
Sebastian Koslowski
c2c221b7fe grc: remove all Cheetah templates from GUI 2016-05-30 14:05:10 +02: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
Sebastian Koslowski
db0f6c8e20 grc: minor fixes/clean-ups 2016-05-18 18:59:31 -04:00
Sebastian Koslowski
e3fff4bd8a grc: cache compiled Cheetah templates 2015-12-10 11:47:48 +01:00
Seth Hitefield
ac04c5d535 grc: replace non-printable characters instead of ignoring them 2015-07-27 17:33:17 +02:00
Sebastian Koslowski
ae5ce91868 grc: ensure only valid utf-8 is passed to markup_escape_text (fixes #813) 2015-07-21 16:41:48 +02:00
Sebastian Koslowski
e177dd5e28 grc: clean-up gui/Utils.py 2015-07-21 16:39:57 +02:00
Sebastian Koslowski
985c0c26ec grc: snap-to-grid (WIP) 2014-08-19 17:31:33 +02:00
Tom Rondeau
54e2324de4 Removing trailing/extra whitespaces before release.
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).
2014-07-07 12:18:00 -04:00
Tim O'Shea
4a4083b1a9 grc: Fix whitespace issue in grc to use proper spaces
Remove all \t's to match the rest of GNU Radio
2013-07-09 16:29:52 -07:00
Nicholas McCarthy
4a7a73ad39 grc: add bus ports
Bus ports allow ganging together of block input or output ports into
a single display item for connection to other bus ports.
2013-07-08 07:19:33 -07:00
Ben Reynwar
1f2f17bb2b docs: Modified argument formating in python docstrings in grc. 2012-08-14 10:28:23 -07:00
Josh Blum
6314bd5a7a grc: replaced asserts in gui subdirectory 2011-04-14 10:49:23 -07:00
Josh Blum
66c46e5f09 Created a pixmap rotation routine in Utils for handling those rotated labels.
The rotation is now performed by the gtk pixbuf class and not manually in python.

In addition, the block and port classes now draw from pixmaps and not from images.
Pixmaps are server-side objects, where images are client-side (meaning: possible speed-up).
2009-12-05 17:44:12 -05:00
Josh Blum
5f6b0e6b23 Move key press extraction logic into actions module.
Replaced xml encode with gtk escape text.
Added templates for category and docs tool tips.
Other various code tweaks in gui modules.
2009-09-13 00:04:58 -07:00
jblum
fee6c43b2b Merging r11186:11273 from grc branch.
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
2009-06-23 20:38:18 +00:00