GNU Radio Manual and C++ API Reference  3.9.1.0
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 
28 using namespace gr;
29 
30 class mywindow : public QWidget
31 {
32  Q_OBJECT
33 
34 private:
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 
55 public slots:
56  // Stop the topblock before shutting down the window
57  void quitting();
58 
59 public:
60  mywindow();
61  ~mywindow() override;
62 
63  // call start() on the topblock
64  void start();
65 };
freq_sink_f.h
noise_source.h
mywindow
Definition: display_qt.h:30
gr::analog::sig_source::sptr
std::shared_ptr< sig_source< T > > sptr
Definition: sig_source.h:31
gr::qtgui::histogram_sink_f::sptr
std::shared_ptr< histogram_sink_f > sptr
Definition: histogram_sink_f.h:67
add_blk.h
histogram_sink_f.h
gr::analog::noise_source::sptr
std::shared_ptr< noise_source< T > > sptr
Definition: noise_source.h:35
top_block.h
gr::blocks::throttle::sptr
std::shared_ptr< throttle > sptr
Definition: throttle.h:37
sig_source.h
throttle.h
waterfall_sink_f.h
time_sink_f.h
window.h
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29
gr::qtgui::time_sink_f::sptr
std::shared_ptr< time_sink_f > sptr
Definition: time_sink_f.h:52
gr::qtgui::waterfall_sink_f::sptr
std::shared_ptr< waterfall_sink_f > sptr
Definition: waterfall_sink_f.h:84
gr::qtgui::freq_sink_f::sptr
std::shared_ptr< freq_sink_f > sptr
Definition: freq_sink_f.h:78
gr::blocks::add_blk::sptr
std::shared_ptr< add_blk< T > > sptr
Definition: add_blk.h:39