GNU Radio Manual and C++ API Reference  3.8.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  * 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
28 #include <gnuradio/fft/window.h>
33 #include <gnuradio/top_block.h>
34 #endif
35 
36 #include <QHBoxLayout>
37 #include <QTabWidget>
38 #include <QWidget>
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< histogram_sink_f > sptr
Definition: histogram_sink_f.h:79
boost::shared_ptr< waterfall_sink_f > sptr
Definition: waterfall_sink_f.h:96
boost::shared_ptr< throttle > sptr
Definition: throttle.h:49
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
boost::shared_ptr< sig_source< T > > sptr
Definition: sig_source.h:43
boost::shared_ptr< noise_source< T > > sptr
Definition: noise_source.h:47
boost::shared_ptr< add_blk< T > > sptr
Definition: add_blk.h:51
Definition: display_qt.h:42
boost::shared_ptr< freq_sink_f > sptr
Definition: freq_sink_f.h:90
boost::shared_ptr< time_sink_f > sptr
Definition: time_sink_f.h:64