GNU Radio Manual and C++ API Reference
3.7.5
The Free & Open Software Radio Ecosystem
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
26
#include <
gnuradio/qtgui/spectrumUpdateEvents.h
>
27
#include <
gnuradio/qtgui/TimeDomainDisplayPlot.h
>
28
#include <QtGui/QtGui>
29
#include <vector>
30
31
#include <
gnuradio/qtgui/displayform.h
>
32
33
/*!
34
* \brief DisplayForm child for managing time domain plots.
35
* \ingroup qtgui_blk
36
*/
37
class
TimeDisplayForm
:
public
DisplayForm
38
{
39
Q_OBJECT
40
41
public
:
42
TimeDisplayForm
(
int
nplots=1, QWidget* parent = 0);
43
~TimeDisplayForm
();
44
45
TimeDomainDisplayPlot
*
getPlot
();
46
47
int
getNPoints
()
const
;
48
gr::qtgui::trigger_mode
getTriggerMode
()
const
;
49
gr::qtgui::trigger_slope
getTriggerSlope
()
const
;
50
float
getTriggerLevel
()
const
;
51
float
getTriggerDelay
()
const
;
52
int
getTriggerChannel
()
const
;
53
std::string
getTriggerTagKey
()
const
;
54
55
public
slots:
56
void
customEvent
(QEvent * e);
57
58
void
setSampleRate
(
const
double
samprate);
59
void
setSampleRate
(
const
QString &samprate);
60
void
setYaxis
(
double
min
,
double
max);
61
void
setYLabel
(
const
std::string &label,
62
const
std::string &unit=
""
);
63
void
setNPoints
(
const
int
);
64
void
setStem
(
bool
en);
65
void
autoScale
(
bool
en);
66
void
setSemilogx
(
bool
en);
67
void
setSemilogy
(
bool
en);
68
void
tagMenuSlot
(
bool
en);
69
void
setTagMenu
(
int
which,
bool
en);
70
71
void
updateTrigger
(
gr::qtgui::trigger_mode
mode);
72
void
setTriggerMode
(
gr::qtgui::trigger_mode
mode);
73
void
setTriggerSlope
(
gr::qtgui::trigger_slope
slope);
74
void
setTriggerLevel
(QString s);
75
void
setTriggerLevel
(
float
level);
76
void
setTriggerDelay
(QString s);
77
void
setTriggerDelay
(
float
delay);
78
void
setTriggerChannel
(
int
chan);
79
void
setTriggerTagKey
(QString s);
80
void
setTriggerTagKey
(
const
std::string &s);
81
82
private
slots:
83
void
newData(
const
QEvent*);
84
85
private
:
86
QIntValidator* d_int_validator;
87
88
double
d_start_frequency;
89
double
d_stop_frequency;
90
91
int
d_npoints;
92
93
bool
d_stem;
94
bool
d_semilogx;
95
bool
d_semilogy;
96
97
NPointsMenu
*d_nptsmenu;
98
QAction *d_stemmenu;
99
QAction *d_semilogxmenu;
100
QAction *d_semilogymenu;
101
std::vector<QAction*> d_tagsmenu;
102
103
QMenu *d_triggermenu;
104
TriggerModeMenu
*d_tr_mode_menu;
105
TriggerSlopeMenu
*d_tr_slope_menu;
106
PopupMenu
*d_tr_level_act;
107
PopupMenu
*d_tr_delay_act;
108
TriggerChannelMenu
*d_tr_channel_menu;
109
PopupMenu
*d_tr_tag_key_act;
110
111
gr::qtgui::trigger_mode
d_trig_mode;
112
gr::qtgui::trigger_slope
d_trig_slope;
113
float
d_trig_level;
114
float
d_trig_delay;
115
int
d_trig_channel;
116
std::string d_trig_tag_key;
117
};
118
119
#endif
/* TIME_DISPLAY_FORM_H */
gr-qtgui
include
gnuradio
qtgui
timedisplayform.h
Generated on Fri Oct 3 2014 00:33:51 for GNU Radio Manual and C++ API Reference by
1.8.1.2