aboutsummaryrefslogtreecommitdiffstats
path: root/gr-qtgui (follow)
Commit message (Collapse)AuthorAgeFilesLines
* qtgui: bounds checking and pow of 2 check for freq/waterfall sinksVolker Schroer2022-01-117-5/+36
| | | | | | | | | | | | | | | * 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: initial value of autoscalex definedJosh Morman2022-01-111-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* gr-qtgui: Frequency sink freezes the running flowgraphVolker Schroer2022-01-0811-279/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gr-qtgui: Frequency sink freezes the running flowgraph With #5405 the segfault of freq_sink_c was fixed, but if you enable the control panel and change the FFT size to 8192 while the flow graph is running, the whole flowgraph freezes. This patch: - fixes the freeze - extends the fftsize to 32768 for freq_sink_c and freq_sink_f - changes the entry for fftsize in the corresponding yml files from integer to enum and provides a drop down menu with those values that are provided by the gui in the running flowgraph. The code provides code for setting the fftsize in form_menus.h and in freqcontrolpanel.cc If you change some signal and slots you can do without the code from form_menus.h. So this part is removed. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> * Keep fftsize list, but move type back to int Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> * Use const vars for fft range. Build the fftsize list from those vars Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> * As the fftsize must not be taken from the dropdown menu but can be set to a variable, check if the value belongs to the dropdown menu, otherwise select the greatest value in the menu < given fftsize. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> * qtgui: fixed error text on freq sinks Signed-off-by: Josh Morman <jmorman@gnuradio.org> * qtgui: add assert into freq grc file Co-authored-by: Josh Morman <jmorman@gnuradio.org>
* gr-qtgui: add missing fftsize entry in freqcontrolpanelVolker Schroer2021-12-203-2/+1
| | | | Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* qtgui: add bounds checks to calculation of d_fft_size_combo indexClayton Smith2021-12-201-0/+2
| | | | Signed-off-by: Clayton Smith <argilo@gmail.com>
* cmake: change how test files are build when cross compilingPhilip Balister2021-12-031-1/+4
| | | | | | | | | | | | | | | | | | | | * When cross compiling gnuradio, change how the test files are built. Normally, the gnuradio QA code expects to run in the build tree. For the cross compilng case, we cannot run the QA code during the build process. The changes here allow the creation of an additional package that can be installed on a target that will run the QA code against the installed libraries. Major changes are not using full paths to test files (since they include paths that only exist on the build machine) and not setting environment variables in the shell files to force the QA code to use code in the build tree. This patch disables the C++ only tests, these need some work and then they can be added back for the cross compile case. Signed-off-by: Philip Balister <philip@balister.org>
* qtgui: pep8 formattingJosh Morman2021-11-2433-479/+654
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* qtgui range: setRange() requires intJeff Long2021-11-221-4/+4
| | | | | | Author: Chris Vine <vine35792468@gmail.com> Signed-off-by: Jeff Long <willcode4@gmail.com>
* qt-gui: enables use of Qwt 6.2Bill Muzika2021-11-1113-11/+71
| | | | | | Adds the typedefs and includes needed to build with Qwt 6.2. Signed-off-by: Bill Muzika <bill.muzika@outlook.com>
* qtgui: revert "qt-gui: enables use of Qwt 6.2"Josh Morman2021-10-1413-65/+11
| | | | | | This reverts commit cf04ca2132d6eff7f807a10141596389afcfbcd5. Signed-off-by: Josh Morman <jmorman@peratonlabs.com>
* ber_sink_b: Make qwidget() part of the APIDavid Winter2021-10-124-1/+11
| | | | | | | The qwidget() method of ber_sink_b had previously not been declared part of the public API, thus preventing its use from python. Signed-off-by: David Winter <david.winter@analog.com>
* qt-gui: enables use of Qwt 6.2Bill Muzika2021-10-1113-11/+65
| | | | | | Adds the typedefs and includes needed to build with Qwt 6.2. Signed-off-by: Bill Muzika <bill.muzika@outlook.com>
* gr-qtgui: Use no_quotes function in some qtgui blocksVolker Schroer2021-10-057-16/+12
| | | | | | See #5016 Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* qtgui: remove vestigal parameter in fft cotrJosh Morman2021-10-041-1/+1
| | | | Signed-off-by: Josh Morman <jmorman@peratonlabs.com>
* qtgui: remove int type from number_sink block yamlJeff Long2021-09-271-2/+2
| | | | | | | Number Sink takes a size, rather than a type, and does not support int32. It assumes items of size 4 are floats. Signed-off-by: Jeff Long <willcode4@gmail.com>
* modules: include boost/format where usedMarcus Müller2021-09-076-0/+6
| | | | | | | | | | | | | | | | | | | 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-03118-723/+95
| | | | | | | | | | | | | | | | | | | | | | | | | 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: Add double quotes to cpp_opts keys with colons.Ron Economos2021-07-275-9/+9
| | | | | | This is required for compatibility with Ubuntu 18.04 LTS. Signed-off-by: Ron Economos <w6rz@comcast.net>
* classic modules: use common precompiled headersMarcus Müller2021-07-191-0/+4
| | | | | | | This commit contains all the additions to gr-*/lib/CMakeLists.txt applicable to modules already present in 3.8. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* grc: c++ generation add some more cpp templatesVolker Schroer2021-07-198-15/+474
| | | | | | | | | | Add some more cpp templates to gr-qtgui and make use of gui_hint to position the windows. Modify 2 python examples to c++ examples and put them into the example/c++ directory. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* grc: introduce gui_hint for cpp code generationVolker Schroer2021-07-1910-75/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | At the moment some qtgui windows do support only very simple gui hints, as the parse_gui_hint in param.py generates independently of the output language only python code. This is fixed here, so the gui_hint() can be used in cpp code generation. To test more complex gui hints the qtgui_tab_widget was extended to cpp. After that compiling the generated cpp code for some examples led to /usr/include/python3.9/object.h:206:23: Fehler: expected unqualified-id before »;« token 206 | PyType_Slot *slots; /* terminated by slot==0. */ This is a known error and can be fixed by ifdef ENABLE_PYTHON pragma push_macro("slots") undef slots include "Python.h" pragma pop_macro("slots") endif instead of simply ifdef ENABLE_PYTHON include "Python.h" endif which was applied to the corresponding gr-qtgui header files. Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* gr-channels: fix "hide" expressions in yml filesJeff Long2021-07-161-2/+2
| | | | | | Also one in analog, and an overachieving set of quotes in qtgui. Signed-off-by: Jeff Long <willcode4@gmail.com>
* qtgui: Make check_set_qss publicDavid Winter2021-07-141-1/+1
| | | | | | | | | | | | | check_set_qss is part of the public qtgui headers, but hasn't been declared part of the public API as of now. This is unfortunate, because when bootstrapping a Qt application, this function should be called to apply a qt gui stylesheet as defined in the config. This commit adds that function to the public api to allow external Qt GUI widgets to behave in a manner that's compatible with the in-tree widgets. Signed-off-by: David Winter <david.winter@analog.com>
* qtgui: bugfix - display tags on the last sampleJason Uher2021-07-142-2/+2
| | | | | * qtgui: display tags on the last sample fixes #2775 Signed-off-by: Jason Uher <jason.uher@jhuapl.edu>
* global: automatically remove unused boost includesMarcus Müller2021-06-222-4/+0
| | | | | | | | used command: sed -i '/^#include.*boost.*$/d' $(ag -L '(boost::|BOOST)' $(ag --cpp -l '#include <boost')) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-qtgui, cpp generation: use option attributes to generate enumsVolker Schroer2021-06-213-5/+15
| | | | Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* gr-qtgui: cpp generation:position windows correctly depending on gui_hintVolker Schroer2021-06-214-2/+20
| | | | Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* qt-gui: use the cpp enums for wintype and trigger_typeVolker Schroer2021-06-213-5/+5
| | | | Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* rebaseVolker Schroer2021-06-214-5/+4
| | | | | | | | | | grc: cpp generation set correct link entry in yml files for modern cmake. Applying this fix simple flowgraphs containing signal sources and audi sinks etc. build and run Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* qtgui: only one definition of (internal) TimePrecisionClassMarcus Müller2021-06-195-73/+27
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* qtgui: remove spurious volk includesMarcus Müller2021-06-194-4/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* global: remove iostream from all files not use cout|cerr|cin|clogMarcus Müller2021-06-1723-23/+0
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* gr-qtgui: fix invalid pointerVolker Schroer2021-06-012-8/+1
| | | | Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
* Fix vector margin for non-frequency data0xloem2021-05-271-3/+4
| | | | Signed-off-by: 0xloem <0xloem@gmail.com>
* qtgui: Use pmt.from_double() instead of pmt.from_float()Jeff Long2021-05-136-10/+10
| | | | | | | Messages should be constructed using double values instead of float to avoid loss of precision. Signed-off-by: Jeff Long <willcode4@gmail.com>
* qtgui: lib: Remove ssize_t for portability.Ryan Volz2021-04-171-6/+4
| | | | Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
* qtgui: Use ranged constructor instead of resize&copyThomas Habets2021-04-061-5/+3
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory management from VectorDisplayPlotThomas Habets2021-04-062-50/+52
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory management from TimeDomainDisplayPlotThomas Habets2021-04-062-29/+24
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory management from timerasterGlobalDataThomas Habets2021-04-062-22/+12
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory management from waterfallGlobalDataThomas Habets2021-04-062-24/+20
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Simplify a return statementThomas Habets2021-04-061-3/+1
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory management from SpectrumGUIClassThomas Habets2021-04-062-58/+37
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory management from spectrumdisplayformThomas Habets2021-04-062-81/+62
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory management from EyeDisplayPlotThomas Habets2021-04-062-29/+23
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* qtgui: Remove manual memory management from ConstellationDisplayPlotThomas Habets2021-04-062-21/+18
| | | | Signed-off-by: Thomas Habets <thomas@habets.se>
* gr-qtgui: Remove unused variables.Ron Economos2021-03-197-8/+0
| | | | Signed-off-by: Ron Economos <w6rz@comcast.net>
* gr-blocks: remove pdu blocksJacob Gilbert2021-03-181-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | The following have been moved to the new gr::pdu module or to gr::network and are no longer needed in gr::blocks: - pdu (noblock) - pdu_filter block - pdu_remove block - pdu_set block - pdu_to_tagged_stream block - random_pdu block - socket_pdu block - stream_pdu_base (noblock) - tagged_stream_to_pdu block - tcp_connection (noblock) - tuntap_pdu block The digital and FEC modules had a large number of references to the PDU blocks that were moved from gr-blocks to gr-pdu, this updates these changes in example flowgraphs and a few python files. The usage-manual update will be propagated to the wiki so that future exports will remain up to date. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* qtgui: Fix segfaulting overflow in waterfallThomas Habets2021-03-164-35/+46
| | | | | | Fixes #4402 Signed-off-by: Thomas Habets <habets@google.com>
* qtgui: Fix segfaulting overflowThomas Habets2021-03-161-9/+12
| | | | | | | | | | | Problem introduced in 4b7006db76b570e4d916e263301333d2f4d2a2df. `d_cbuffers` and `d_buffers` are not the same size. It appears to be the only instance of this mistake in that commit. Fixes: #4396 Signed-off-by: Thomas Habets <habets@google.com>