gr-baz Package
timedisplayform.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2011 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
26
#include <
spectrumUpdateEvents.h
>
27
#include <
FrequencyDisplayPlot.h
>
28
#include <
WaterfallDisplayPlot.h
>
29
#include <
TimeDomainDisplayPlot.h
>
30
#include <
ConstellationDisplayPlot.h
>
31
#include <QtGui/QApplication>
32
#include <QtGui/QGridLayout>
33
#include <QValidator>
34
#include <QTimer>
35
#include <vector>
36
37
class
TimeDisplayForm
:
public
QWidget
38
{
39
Q_OBJECT
40
41
public
:
42
TimeDisplayForm
(
int
nplots=1, QWidget* parent = 0);
43
~TimeDisplayForm
();
44
45
void
Reset
();
46
47
public
slots:
48
void
resizeEvent
( QResizeEvent * e );
49
void
customEvent
( QEvent * e );
50
void
setFrequencyRange
(
const
double
newCenterFrequency,
51
const
double
newStartFrequency,
52
const
double
newStopFrequency );
53
void
closeEvent
( QCloseEvent * e );
54
55
void
setTimeDomainAxis
(
double
min
,
double
max);
56
57
void
setUpdateTime
(
double
t);
58
59
void
setTitle
(
int
which, QString title);
60
void
setColor
(
int
which, QString color);
61
62
private
slots:
63
void
newData(
const
TimeUpdateEvent
* );
64
void
updateGuiTimer();
65
66
void
onTimePlotPointSelected(
const
QPointF p);
67
68
signals:
69
void
plotPointSelected
(
const
QPointF p,
int
type);
70
71
private
:
72
uint64_t
_numRealDataPoints;
73
QIntValidator* _intValidator;
74
75
QGridLayout *_layout;
76
TimeDomainDisplayPlot
* _timeDomainDisplayPlot;
77
bool
_systemSpecifiedFlag;
78
double
_startFrequency;
79
double
_stopFrequency;
80
81
QTimer *displayTimer;
82
double
d_update_time;
83
};
84
85
#endif
/* TIME_DISPLAY_FORM_H */
gnuradio
gr-qtgui
lib
timedisplayform.h
Generated by
1.8.1.2