summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/const_sink_c_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* 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 manual memory managementThomas Habets2021-02-261-48/+14
| | | | 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>
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-2/+1
| | | | | | | | | | | | | | 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-2/+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
|
* clang-tidy in gnuradio-runtime: use empty() instead of size()!=0Marcus Müller2019-08-221-2/+2
|
* clang-format: Ordering all the includesMarcus Müller2019-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-467/+389
|
* const_sink_c_impl.cc: Address Coverity issue 1396500.Philip Balister2018-11-021-1/+1
| | | | | | | | Loop iterates through the entire array, however the _test_trigger_slope function operates on the index and index + 1 elements. Limit the loop counter to prevent accessing one element beyond the end of the array. Signed-off-by: Philip Balister <philip@balister.org>
* Use unsigned integers where dealing with indicesMarcus Müller2018-08-281-12/+12
| | | | | This is to improve quality of warnings when trying to pass negative indices.
* cleanup: add missing includes + reorder qtgui includes correctlyAndrej Rode2018-03-041-0/+1
|
* Merge branch 'master' into nextJohnathan Corgan2017-01-121-3/+2
|\
| * qtgui: Fix SIGSEGV for tag trigger with constellation sinkAndy Walls2017-01-121-3/+2
| | | | | | | | | | | | | | | | | | | | | | The tag offset accounting the block tried to do to compensate for the 1 history sample, with tag triggering, would occasionally generate a -1 for a buffer index, causing a SIGSEGV. Change to straight-forward tag offset accounting, and just ignore the 1 history sample for everything except auto/normal triggering.
* | 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
| * qtgui: make sure QSS style is applied to Qt gui even when no plotter is attachedTim O'Shea2016-10-141-5/+1
| |
* | gr-qtgui: Re-introduce some Qt4-specific codePaul Cercueil2016-06-211-0/+4
| | | | | | | | Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
* | Merge branch 'next' into next-qt5Johnathan Corgan2016-02-211-0/+6
|\|
| * qtgui: add axis labels to raster, constellation, histogram. Fix waterfall ↵Tim O'Shea2016-02-141-0/+6
| | | | | | | | axis issue
* | Merge remote-tracking branch 'tom/qt5_next' into next-qt5Johnathan Corgan2015-11-281-4/+0
|\ \ | |/ |/|
| * 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: moving to only allow either streaming or message modes.Tom Rondeau2015-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | Having both stream and message ports available at the same time will likely cause confusion and problems when trying to plot both. Hides some parameters that have no effect on the operation of the sink in this mode. Also: histogram fixed to support accumulate in message mode.
* | qtgui: constellation plotter supports PDU message plotting.Tom Rondeau2015-10-291-5/+70
|/
* qtgui: toggle legend off in GRC properties.Tom Rondeau2015-04-041-0/+6
| | | | | Supported in: time, ferq, waterfall, constellation, and historgram plots
* qtgui: fixed comment.Tom Rondeau2014-10-231-1/+1
|
* Merge branch 'maint'Tom Rondeau2014-07-281-3/+4
|\
| * qtgui: fixed a bug in the constellation plots that didn't allow us to reduce ↵Tom Rondeau2014-07-281-3/+4
| | | | | | | | the number of samples.
* | Merge branch 'maint'Tom Rondeau2014-07-251-0/+2
|\|
| * 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: adding ability to set grid on/off from grc properties dialog boxes ↵Tom Rondeau2014-07-111-0/+6
|/ | | | | | for all qtgui sinks except the "sink" which doesn't support this. Addresses issue #688. Keeping default to off since the grid's not the prettiest thing.
* qtgui: fixes problem of set name not showing up.Tom Rondeau2014-07-021-0/+4
| | | | Defaults to blank string now; a blank string does not set the title to save vertical space. Any other value will now set the title of the plotter.
* qtgui: adding a trigger for the constellation plots. Probably most useful ↵Tom Rondeau2014-04-241-70/+202
| | | | | | with tags, but normal and auto triggering supported, too. Updates test_corr_and_sync block to use the time_est tag to trigger constellation plot.
* 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-4/+6
| | | | Set through gr-qtgui.conf prefs file. Documented in QT GUI section of manual.
* qtgui: switched from using fft::malloc to volk_malloc.Tom Rondeau2014-01-151-8/+12
|
* 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/+11
| | | | 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.
* fft: moved include dir to gnuradio/fftJohnathan Corgan2013-04-291-1/+1
|
* 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-4/+4
| | | | PMTs are handled slightly different and are installed into their own module and include dir.
* qtgui: these can be closed from two directions (block or qwidget), this ↵Tom Rondeau2013-02-271-0/+3
| | | | closes all events for either way.
* qtgui: allows setting of update rate in GRC for all QTGUI plotters.Tom Rondeau2013-02-141-1/+1
|
* qtgui: allowing autoscale to be turned on/off from GR app.Tom Rondeau2013-02-131-0/+6
|
* qtgui: Major changes to qtgui sink interfaces to allow more tunable control ↵Tom Rondeau2013-01-221-4/+53
| | | | through GR blocks.
* qtgui: added method to disable right-click menu.Tom Rondeau2013-01-201-0/+6
| | | | Disabled menu in plotter tools to not conflict with states between C++ and Python domains.
* qtgui: added check_topology to check d_nconnections and actual connections.Tom Rondeau2012-12-201-0/+6
|
* qtgui: allowing setting of axes in GRC.Tom Rondeau2012-10-101-3/+15
| | | | | | For time and freq, a y-axis range can be defined. The constellation plot has an x- and y-axis setting. Also made methods more consistent in their names and styles.
* qtgui: adds ability to set a plot's title.Tom Rondeau2012-10-091-2/+0
|