summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/histogram_sink_f_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-28/+4
| | | | 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/+2
| | | | | | | | | | | | | | 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-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-397/+308
|
* 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-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
| * 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-7/+11
| | | | | | | | | | | | | | | | | | | | 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: histogram plotter supports PDU message plotting.Tom Rondeau2015-10-291-8/+77
|/
* qtgui: toggle legend off in GRC properties.Tom Rondeau2015-04-041-0/+6
| | | | | 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-2/+2
| | | | Partial response to issue #706.
* 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: fixes problem of set name not showing up.Tom Rondeau2014-07-021-0/+3
| | | | 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.
* 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-4/+6
|
* 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.
* qtgui: fixed histogram autoscaling features. Added example script.Tom Rondeau2013-10-291-0/+6
|
* qtgui: improved handling of scale in histogram plots.Tom Rondeau2013-08-021-5/+15
| | | | | | 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/+381