GNU Radio Manual and C++ API Reference 3.10.1.1
The Free & Open Software Radio Ecosystem
display_qt.h
Go to the documentation of this file.
1/*
2 * Copyright 2016 Free Software Foundation, Inc.
3 *
4 * This file is part of GNU Radio
5 *
6 * SPDX-License-Identifier: GPL-3.0-or-later
7 *
8 */
9
10// Q_MOC_RUN is a workaround for a QT4 + Boost version issue
11#ifndef Q_MOC_RUN
16#include <gnuradio/fft/window.h>
21#include <gnuradio/top_block.h>
22#endif
23
24#include <QHBoxLayout>
25#include <QTabWidget>
26#include <QWidget>
27
28using namespace gr;
29
30class mywindow : public QWidget
31{
32 Q_OBJECT
33
34private:
35 QHBoxLayout* layout;
36 QTabWidget* tab0;
37 QTabWidget* tab1;
38 QWidget* qtgui_time_sink_win;
39 QWidget* qtgui_freq_sink_win;
40 QWidget* qtgui_waterfall_sink_win;
41 QWidget* qtgui_histogram_sink_win;
42
43#ifndef Q_MOC_RUN
44 top_block_sptr tb;
53#endif
54
55public slots:
56 // Stop the topblock before shutting down the window
57 void quitting();
58
59public:
61 ~mywindow() override;
62
63 // call start() on the topblock
64 void start();
65};
std::shared_ptr< noise_source< T > > sptr
Definition: noise_source.h:35
std::shared_ptr< sig_source< T > > sptr
Definition: sig_source.h:31
std::shared_ptr< add_blk< T > > sptr
Definition: add_blk.h:39
std::shared_ptr< throttle > sptr
Definition: throttle.h:45
std::shared_ptr< freq_sink_f > sptr
Definition: freq_sink_f.h:81
std::shared_ptr< histogram_sink_f > sptr
Definition: histogram_sink_f.h:67
std::shared_ptr< time_sink_f > sptr
Definition: time_sink_f.h:52
std::shared_ptr< waterfall_sink_f > sptr
Definition: waterfall_sink_f.h:87
Definition: display_qt.h:31
void start()
~mywindow() override
void quitting()
GNU Radio logging wrapper.
Definition: basic_block.h:29