GNU Radio Manual and C++ API Reference 3.7.14.0
The Free & Open Software Radio Ecosystem
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
28#include <QtGui/QtGui>
29#include <QCheckBox>
30#include <QComboBox>
31#include <QHBoxLayout>
32#include <QLabel>
33#include <QPushButton>
34#include <QSlider>
35#include <vector>
36
37class TimeControlPanel : public QVBoxLayout
38{
39 Q_OBJECT
40
41public:
44
45public slots:
46 void toggleAutoScale(bool en);
47 void toggleGrid(bool en);
51
52signals:
54
55private:
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 QCheckBox* d_axislabels_check;
79
80 QPushButton *d_yoff_plus, *d_yoff_minus;
81 QPushButton *d_yrange_plus, *d_yrange_minus;
82 QPushButton *d_xmax_plus, *d_xmax_minus;
83 QComboBox* d_trigger_mode_combo;
84 QComboBox* d_trigger_slope_combo;
85 QPushButton *d_trigger_level_plus, *d_trigger_level_minus;
86 QPushButton *d_trigger_delay_plus, *d_trigger_delay_minus;
87 QPushButton* d_autoscale_button;
88 QPushButton* d_stop_button;
89};
90
91#endif /* TIME_CONTROL_PANEL_H */
Definition: timecontrolpanel.h:38
TimeControlPanel(TimeDisplayForm *form)
void signalToggleStopButton()
void toggleAutoScale(bool en)
void toggleTriggerMode(gr::qtgui::trigger_mode mode)
void toggleStopButton()
void toggleGrid(bool en)
void toggleTriggerSlope(gr::qtgui::trigger_slope slope)
DisplayForm child for managing time domain plots.
Definition: timedisplayform.h:39
trigger_mode
Definition: gr-qtgui/include/gnuradio/qtgui/trigger_mode.h:29
trigger_slope
Definition: gr-qtgui/include/gnuradio/qtgui/trigger_mode.h:36