GNU Radio 3.7.0-50 C++ API
timedisplayform.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2011,2012 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * GNU Radio is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3, or (at your option)
10  * any later version.
11  *
12  * GNU Radio is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with GNU Radio; see the file COPYING. If not, write to
19  * the Free Software Foundation, Inc., 51 Franklin Street,
20  * Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef TIME_DISPLAY_FORM_H
24 #define TIME_DISPLAY_FORM_H
25 
28 #include <QtGui/QtGui>
29 #include <vector>
30 
32 
33 /*!
34  * \brief DisplayForm child for managing time domain plots.
35  * \ingroup qtgui_blk
36  */
38 {
39  Q_OBJECT
40 
41  public:
42  TimeDisplayForm(int nplots=1, QWidget* parent = 0);
44 
46 
47  int getNPoints() const;
48 
49 public slots:
50  void customEvent(QEvent * e);
51 
52  void setSampleRate(const double samprate);
53  void setSampleRate(const QString &samprate);
54  void setYaxis(double min, double max);
55  void setNPoints(const int);
56  void setStem(bool en);
57  void autoScale(bool en);
58  void setSemilogx(bool en);
59  void setSemilogy(bool en);
60 
61 private slots:
62  void newData(const QEvent*);
63 
64 private:
65  QIntValidator* _intValidator;
66 
67  double _startFrequency;
68  double _stopFrequency;
69 
70  int d_npoints;
71 
72  bool d_stem;
73  bool d_semilogx;
74  bool d_semilogy;
75 
76  QAction *d_stemmenu;
77  QAction *d_semilogxmenu;
78  QAction *d_semilogymenu;
79 };
80 
81 #endif /* TIME_DISPLAY_FORM_H */