GNU Radio Manual and C++ API Reference  3.7.9.2
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
timecontrolpanel.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2015 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_CONTROL_PANEL_H
24 #define TIME_CONTROL_PANEL_H
25 
26 #include <QtGui/QtGui>
27 #include <vector>
28 #include <QSlider>
29 #include <QComboBox>
30 #include <QCheckBox>
31 #include <QPushButton>
32 #include <QLabel>
33 #include <QHBoxLayout>
36 
37 class TimeControlPanel : public QVBoxLayout
38 {
39  Q_OBJECT
40 
41 public:
44 
45 public slots:
46  void toggleAutoScale(bool en);
47  void toggleGrid(bool en);
50  void toggleStopButton();
51 
52 signals:
54 
55 private:
56  TimeDisplayForm *d_parent;
57  QGroupBox *d_axes_box;
58  QGroupBox *d_trigger_box;
59  QGroupBox *d_extras_box;
60 
61  QVBoxLayout *d_axes_layout;
62  QHBoxLayout *d_yoff_layout;
63  QHBoxLayout *d_yrange_layout;
64  QHBoxLayout *d_xmax_layout;
65  QVBoxLayout *d_trigger_layout;
66  QHBoxLayout *d_trigger_level_layout;
67  QHBoxLayout *d_trigger_delay_layout;
68  QVBoxLayout *d_extras_layout;
69 
70  QLabel *d_yoff_label;
71  QLabel *d_yrange_label;
72  QLabel *d_xmax_label;
73  QLabel *d_trigger_level_label;
74  QLabel *d_trigger_delay_label;
75 
76  QCheckBox *d_autoscale_check;
77  QCheckBox *d_grid_check;
78  QPushButton *d_yoff_plus, *d_yoff_minus;
79  QPushButton *d_yrange_plus, *d_yrange_minus;
80  QPushButton *d_xmax_plus, *d_xmax_minus;
81  QComboBox *d_trigger_mode_combo;
82  QComboBox *d_trigger_slope_combo;
83  QPushButton *d_trigger_level_plus, *d_trigger_level_minus;
84  QPushButton *d_trigger_delay_plus, *d_trigger_delay_minus;
85  QPushButton *d_autoscale_button;
86  QPushButton *d_stop_button;
87 };
88 
89 #endif /* TIME_CONTROL_PANEL_H */
void signalToggleStopButton()
Definition: timecontrolpanel.h:37
DisplayForm child for managing time domain plots.
Definition: timedisplayform.h:38
TimeControlPanel(TimeDisplayForm *form)
void toggleStopButton()
void toggleTriggerSlope(gr::qtgui::trigger_slope slope)
trigger_slope
Definition: gr-qtgui/include/gnuradio/qtgui/trigger_mode.h:36
trigger_mode
Definition: gr-qtgui/include/gnuradio/qtgui/trigger_mode.h:29
void toggleGrid(bool en)
void toggleTriggerMode(gr::qtgui::trigger_mode mode)
void toggleAutoScale(bool en)