summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/histogram_sink_f_impl.h
Commit message (Collapse)AuthorAgeFilesLines
* qtgui: Replace pyqwidget() with qwidget()David Winter2021-09-031-6/+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-6/+17
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* modernization: `override` instead of virtual in all compilation unitsMarcus Müller2020-11-031-39/+39
|
* Add `override` for common virtual function overridesThomas Habets2020-11-031-2/+2
| | | | | | | | | | Mostly done with: ``` find -name "*_impl.h" | xargs sed -i -r '/(void forecast|int work|int general_work|bool check_topology)\(/{:back /\)/b nxt;N;b back;:nxt s/\)$|\)(;)/) override\1/g}' ``` Then I removed an incorrect `work` that this found.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* Use 'const' on more member variablesThomas Habets2019-12-041-1/+1
|
* 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-75/+77
|
* 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
|
* qtgui: add axis labels to raster, constellation, histogram. Fix waterfall ↵Tim O'Shea2016-02-141-0/+1
| | | | axis issue
* qtgui: histogram plotter supports PDU message plotting.Tom Rondeau2015-10-291-1/+4
|
* qtgui: toggle legend off in GRC properties.Tom Rondeau2015-04-041-0/+1
| | | | | Supported in: time, ferq, waterfall, constellation, and historgram plots
* qtgui: replaced use of local mutex with d_setlock from gr::block.Tom Rondeau2014-07-281-3/+0
| | | | Partial response to issue #706.
* 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).
* gr-qtgui: Use dummy void* return value for pywidget if !ENABLE_PYTHONSylvain Munaut2014-03-151-0/+2
| | | | | | | | | | | | | | | 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: fixed issue preventing gr-qtgui build if Python-dev is not installed ↵Tom Rondeau2013-12-121-0/+3
| | | | (ENABLE_PYTHON=False).
* qtgui: fixed issue with newer versions of QT.Tom Rondeau2013-11-091-0/+2
| | | | 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: fixed histogram autoscaling features. Added example script.Tom Rondeau2013-10-291-0/+1
|
* qtgui: improved handling of scale in histogram plots.Tom Rondeau2013-08-021-0/+3
| | | | | | Mouse scroll zooms in/out horizonatally. Added auto-scale feature, can set x-min and max in constructor. Mouse scroll in constellation plot now does both axes at the same time.
* qtgui: Added histogram sink.Tom Rondeau2013-08-021-0/+110