GNU Radio Manual and C++ API Reference  3.7.13.4
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  * GNU Radio is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3, or (at your option)
9  * any later version.
10  *
11  * GNU Radio is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with GNU Radio; see the file COPYING. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 // Q_MOC_RUN is a workaround for a QT4 + Boost version issue
23 #ifndef Q_MOC_RUN
24 #include <gnuradio/top_block.h>
27 #include <gnuradio/blocks/add_ff.h>
33 #include <gnuradio/fft/window.h>
34 #endif
35 
36 #include <QWidget>
37 #include <QHBoxLayout>
38 #include <QTabWidget>
39 
40 using namespace gr;
41 
42 class mywindow : public QWidget
43 {
44  Q_OBJECT
45 
46 private:
47  QHBoxLayout *layout;
48  QTabWidget *tab0;
49  QTabWidget *tab1;
50  QWidget* qtgui_time_sink_win;
51  QWidget* qtgui_freq_sink_win;
52  QWidget* qtgui_waterfall_sink_win;
53  QWidget* qtgui_histogram_sink_win;
54 
55 #ifndef Q_MOC_RUN
56  top_block_sptr tb;
65 #endif
66 
67 public slots:
68  // Stop the topblock before shutting down the window
69  void quitting();
70 
71 public:
72  mywindow();
73  virtual ~mywindow();
74 
75  // call start() on the topblock
76  void start();
77 };
boost::shared_ptr< add_ff > sptr
Definition: add_ff.h:44
boost::shared_ptr< histogram_sink_f > sptr
Definition: histogram_sink_f.h:79
boost::shared_ptr< waterfall_sink_f > sptr
Definition: waterfall_sink_f.h:91
boost::shared_ptr< throttle > sptr
Definition: throttle.h:49
Include this header to use the message passing features.
Definition: logger.h:695
Definition: display_qt.h:42
boost::shared_ptr< sig_source_f > sptr
Definition: sig_source_f.h:43
boost::shared_ptr< freq_sink_f > sptr
Definition: freq_sink_f.h:85
boost::shared_ptr< time_sink_f > sptr
Definition: time_sink_f.h:64
boost::shared_ptr< noise_source_f > sptr
Definition: noise_source_f.h:47