GNU Radio Manual and C++ API Reference  3.9.0.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  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef TIME_CONTROL_PANEL_H
12 #define TIME_CONTROL_PANEL_H
13 
16 #include <QtGui/QtGui>
17 #include <QCheckBox>
18 #include <QComboBox>
19 #include <QHBoxLayout>
20 #include <QLabel>
21 #include <QPushButton>
22 #include <QSlider>
23 #include <vector>
24 
25 class TimeControlPanel : public QVBoxLayout
26 {
27  Q_OBJECT
28 
29 public:
31  ~TimeControlPanel() override;
32 
33 public slots:
34  void toggleAutoScale(bool en);
35  void toggleGrid(bool en);
39 
40 signals:
42 
43 private:
44  TimeDisplayForm* d_parent;
45  QGroupBox* d_axes_box;
46  QGroupBox* d_trigger_box;
47  QGroupBox* d_extras_box;
48 
49  QVBoxLayout* d_axes_layout;
50  QHBoxLayout* d_yoff_layout;
51  QHBoxLayout* d_yrange_layout;
52  QHBoxLayout* d_xmax_layout;
53  QVBoxLayout* d_trigger_layout;
54  QHBoxLayout* d_trigger_level_layout;
55  QHBoxLayout* d_trigger_delay_layout;
56  QVBoxLayout* d_extras_layout;
57 
58  QLabel* d_yoff_label;
59  QLabel* d_yrange_label;
60  QLabel* d_xmax_label;
61  QLabel* d_trigger_level_label;
62  QLabel* d_trigger_delay_label;
63 
64  QCheckBox* d_autoscale_check;
65  QCheckBox* d_grid_check;
66  QCheckBox* d_axislabels_check;
67 
68  QPushButton *d_yoff_plus, *d_yoff_minus;
69  QPushButton *d_yrange_plus, *d_yrange_minus;
70  QPushButton *d_xmax_plus, *d_xmax_minus;
71  QComboBox* d_trigger_mode_combo;
72  QComboBox* d_trigger_slope_combo;
73  QPushButton *d_trigger_level_plus, *d_trigger_level_minus;
74  QPushButton *d_trigger_delay_plus, *d_trigger_delay_minus;
75  QPushButton* d_autoscale_button;
76  QPushButton* d_stop_button;
77 };
78 
79 #endif /* TIME_CONTROL_PANEL_H */
Definition: timecontrolpanel.h:26
TimeControlPanel(TimeDisplayForm *form)
void signalToggleStopButton()
~TimeControlPanel() override
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:27
trigger_mode
Definition: trigger_mode.h:17
trigger_slope
Definition: trigger_mode.h:24