summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/sink_c_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* qtgui: bounds checking and pow of 2 check for freq/waterfall sinksVolker Schroer2022-01-111-2/+12
| | | | | | | | | | | | | | | * qtgui: freq_sink waterfall_sink sink: Add bounds checking to GRC bindings In addition: fftsize starts in the runtime gui of the f/c sink with 512. Adjust it to 32 , as in freq_sink_f/c Check inside the sink_(f/c) block, if the fftsize is valid, to avoid core dump. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> * qtgui: freq_sink waterfall_sink sink: Add power-of-two check to GRC bindings Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* qtgui: Replace pyqwidget() with qwidget()David Winter2021-09-031-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Previously, two versions of the `qtwidget` functions existed, `qwidget()` and `pyqwidget()`, with the only difference being that `qwidget()` returned a pointer to the `QWidget` object managed by the corresponding block, while `pyqwidget()` returned that same pointer, but as an integer (Or `PyLong` in this case). While `qwidget()` is used by C++ code accessing the widgets, `pyqwidget()` is only used for the python interface. This makes these two methods redundant, thus this commit entirely removes `pyqwidget()`, and modifies the `qwidget()` python wrapper to behave like `pyqwidget()`. Note that we can be fairly confident that this change will not effect potential users of `qwidget()`, because any invocation on the objects previously returned by `qwidget()` would cause a segmentation fault. This commit also fixes a memory leak: Internally, the `pyqwidget()` functions were returning a PyLong `PyObject *`, which was then upwrapped in a pybind trampoline without decrementing the reference count of that python object. Signed-off-by: David Winter <david.winter@analog.com>
* qtgui: Remove commented-out codeThomas Habets2021-02-261-21/+0
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory managementThomas Habets2021-02-261-72/+43
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* clang-tidy: run full .clang-tidy on C++17 codebaseMarcus Müller2021-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | run /usr/share/clang/run-clang-tidy.py -checks=file '-header-filter=.*' -fix .. from build directory. Then, clang-format -i $(git diff --name-only origin/master) to clang-format changed files. Then, refresh all header hashes in pybind bindings (*/python/bindings/*.cc) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* filter: remove deprecated win_type duplicate in firdesJosh Morman2020-12-181-3/+3
| | | | | | | The win_type defined in firdes is marked as deprecated to be removed in 3.8, so let's go ahead and remove it and fix all the references Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
* Move FFT functions and blocks to templates (#3903)mormj2020-11-031-2/+2
| | | | | | | | | | | | | * fft: refactor fft classes as templates In order to reduce code duplication construct fft objects and blocks with template paramters. Separate forward and reverse as a template parameter Maintain the real fft block forward as r2c and reverse as r2c as well Co-authored-by: Andrej Rode <mail@andrejro.de>
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-10/+10
| | | | | | | | | | | | | | First batch of changes: ``` find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}' ``` Then: * Back out `sptr_magic.h` edits * Change some `friend` clauses * clang-format the whole thing * Update checksums in the pybind11 bindings files
* msg_handler: Use lambdas in gr-qtguiJohannes Demel2020-06-041-1/+1
| | | | | gr-qtgui uses lambdas instead of `boost::bind` to register message handlers now. This component makes quite heavy use of message handlers.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Remove newlines from exception messagesThomas Habets2020-01-011-1/+1
|
* clang-tidy in gnuradio-runtime: use empty() instead of size()!=0Marcus Müller2019-08-221-1/+1
|
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-312/+281
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-2/+5
|\
| * cleanup: add missing includes + reorder qtgui includes correctlyAndrej Rode2018-03-041-1/+4
| |
| * Merge branch 'master' into nextJohnathan Corgan2016-10-171-5/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: gr-qtgui/python/qtgui/CMakeLists.txt gr-qtgui/python/qtgui/range.py.cmakein grc/core/generator/flow_graph.tmpl
| * | gr-qtgui: Re-introduce some Qt4-specific codePaul Cercueil2016-06-211-0/+4
| | | | | | | | | | | | Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
| * | gr-qtgui: update for Qt5Paul Cercueil2015-10-121-4/+0
| | | | | | | | | | | | | | | | | | | | | This commit switch the gr-qtgui blocks from being usable with Qt4 to being usable with Qt5. Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
* | | qtgui: Fix some -Wreorder warningsMartin Braun2018-03-041-7/+7
| | |
* | | qtgui: remove unnecessary call to pmt::intern at runtimeMarcus Müller2018-02-231-6/+7
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | typical usage: message_port_pub(pmt::mp("out_port"), …) which is bad, as it implies hashing of a string, allocation of memory, deallocation, finding the hashed string in the table of interned strings and returning a unique pointer (which for reasons of PMT awesomeness isn't even unique) to the interned port name. Replacing all these port name ad hoc ::mp() calls by reusing one, private, port name member.
* | qtgui: make sure QSS style is applied to Qt gui even when no plotter is attachedTim O'Shea2016-10-141-5/+1
|/
* qtgui: remove direct calls to aligned volk kernels; using dispatchers instead.Tom Rondeau2014-11-221-3/+3
| | | | | | Addresses problem of using FFTW buffers on AVX machines (when FFTW is not built with AVX). Addresses Issue #645.
* qtgui: bringing in line with required Qt 4.4.Tom Rondeau2014-07-251-0/+2
| | | | setGraphicsSystem was introduced in 4.5; doing a version check before its use.
* qtgui: updating how freq message ports work.Tom Rondeau2014-07-071-6/+5
| | | | | | Use absolte frequencies relative to sample rate and center freq. Double-click does not retune, just sends message. Feedback to input freq can be used to retune.
* qtgui: freq, waterfall, and sink blocks produce a frequency message when ↵Tom Rondeau2014-06-261-1/+19
| | | | double-clicked. Also can take in a frequency message to adjust the x-axis.
* qtgui: for sink_x, waterfall_sink_x, and freq_sink_x, when the display is ↵Tom Rondeau2014-06-261-1/+14
| | | | | | double-clicked, the center frequency is adjusted to the clicked frequency and a message is posted containing the new center frequency. Should be able to connect this to a radio message port input that will adjust the frequency of the device itself.
* qtgui: allows toggling rf frequencies on/off in GRC options box.Tom Rondeau2014-06-261-0/+7
| | | | Addresses Issue #673.
* gr-qtgui: Use dummy void* return value for pywidget if !ENABLE_PYTHONSylvain Munaut2014-03-151-0/+6
| | | | | | | | | | | | | | | This has two benefits: - If ENABLE_PYTHON is disabled during build, the method will still be there and just return NULL - During build of external projects / apps that don't necessarely want to have python included in the build, the exposed vtable is the same as the one from GR (whether or not python was enabled during GR build) Without this, using those block from outside without the exact same option as during GR build would result in crash. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* qtgui: adds ability to set qss style sheet as a preference.Tom Rondeau2014-03-081-0/+7
|
* qtgui: adds ability to set the graphics style rendering of the qtgui sinks.Tom Rondeau2014-02-241-0/+3
| | | | Set through gr-qtgui.conf prefs file. Documented in QT GUI section of manual.
* qtgui: in sink_c and sink_f, use volk_malloc/volk_free instead of new for ↵Tom Rondeau2014-02-111-13/+17
| | | | buffers.
* build: fixing various warning from clang.Julien Olivain2014-01-101-1/+1
| | | | Addresses iss #586; adapted for current set of warnings after patches since this issue was posted.
* qtgui: fixed issue preventing gr-qtgui build if Python-dev is not installed ↵Tom Rondeau2013-12-121-0/+2
| | | | (ENABLE_PYTHON=False).
* qtgui: fixed issue with newer versions of QT.Tom Rondeau2013-11-091-3/+10
| | | | When creating the qApplication in the block, we have to make sure argc>0, argv contains at least one valid character (\0), and they exist over the life of the application.
* qtgui: fixes frequency axis issue for sink_{c,f}.Tom Rondeau2013-05-231-4/+4
|
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-4/+4
|
* gruel: moved gruel into subdirs of gnuradio-runtime.Tom Rondeau2013-04-011-5/+5
| | | | PMTs are handled slightly different and are installed into their own module and include dir.
* qtgui: function names updated so they are (or should be) consistent.Tom Rondeau2013-01-031-14/+14
|
* qtgui: added check_topology to check d_nconnections and actual connections.Tom Rondeau2012-12-201-0/+6
|
* qtgui: changed qtgui sinks to pimpl structure.Tom Rondeau2012-07-191-0/+335