summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/edit_box_msg_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* modules: include boost/format where usedMarcus Müller2021-09-071-0/+1
| | | | | | | | | | | | | | | | | | | in the classic modules: audio blocks digital dtv fec fft filter qtgui trellis/fsm uhd video-sdl vocoder/freedv_rx Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* 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>
* gr-qtgui: fix invalid pointerVolker Schroer2021-06-011-1/+0
| | | | Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* qtgui: Remove manual memory managementThomas Habets2021-02-261-8/+0
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* 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-1/+1
| | | | | gr-qtgui uses lambdas instead of `boost::bind` to register message handlers now. This component makes quite heavy use of message handlers.
* qtgui: fix deprecated use of QFontMetrics::widthjapm482020-05-261-0/+4
| | | | Replaced with horizontalAdvance (requires Qt >=5.11).
* qtgui: Remove boost::lexical_cast for parsingThomas Habets2020-04-111-9/+9
| | | | This is the last boost::lexical_cast in gnuradio.
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* delete unused variablesBastian Bloessl2019-09-051-1/+0
|
* clang-tidy in gnuradio-runtime: use empty() instead of size()!=0Marcus Müller2019-08-221-2/+2
|
* Use emplace_back(params) instead of push_back(type(params))Marcus Müller2019-08-221-1/+1
| | | | | | | | | | | | | | | | | | | This is C++11: you can convert std::vector<complextype> vec; vec.push_back(complextype(foo, bar, baz)); by std::vector<complextype> vec; vec.emplace_back(foo, bar, baz); which saves one unnecessary copy. This mostly happened in rpc code. The automated clang-tidy check failed miserably, so most of this was done by hand.
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-395/+352
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-4/+2
|\
| * cleanup: add missing includes + reorder qtgui includes correctlyAndrej Rode2018-03-041-0/+2
| |
| * 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: Fixes for edit_box_msg to work with QT5.Tom Rondeau2016-04-281-4/+0
| | |
* | | qtgui: remove unnecessary call to pmt::intern at runtimeMarcus Müller2018-02-231-4/+5
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | 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: Adds a QTGUI edit box block that emits a message when changed.Tom Rondeau2016-04-261-0/+571
Unlike the current QT GUI Entry Widget, this is an actual GNU Radio block with an output message port 'msg'. When the editing is finished (enter or change in scope), it triggers the editing_finished method that publishes the text in the box as a message. Also allows setting of the value through an input message port. Adds example test_qtgui_msg.grc to explore this.