GNU Radio Manual and C++ API Reference  3.10.9.1
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  void updateStopLabel(bool on);
40 
41 signals:
43 
44 private:
45  TimeDisplayForm* d_parent;
46  QGroupBox* d_axes_box;
47  QGroupBox* d_trigger_box;
48  QGroupBox* d_extras_box;
49 
50  QVBoxLayout* d_axes_layout;
51  QHBoxLayout* d_yoff_layout;
52  QHBoxLayout* d_yrange_layout;
53  QHBoxLayout* d_xmax_layout;
54  QVBoxLayout* d_trigger_layout;
55  QHBoxLayout* d_trigger_level_layout;
56  QHBoxLayout* d_trigger_delay_layout;
57  QVBoxLayout* d_extras_layout;
58 
59  QLabel* d_yoff_label;
60  QLabel* d_yrange_label;
61  QLabel* d_xmax_label;
62  QLabel* d_trigger_level_label;
63  QLabel* d_trigger_delay_label;
64 
65  QCheckBox* d_autoscale_check;
66  QCheckBox* d_grid_check;
67  QCheckBox* d_axislabels_check;
68 
69  QPushButton *d_yoff_plus, *d_yoff_minus;
70  QPushButton *d_yrange_plus, *d_yrange_minus;
71  QPushButton *d_xmax_plus, *d_xmax_minus;
72  QComboBox* d_trigger_mode_combo;
73  QComboBox* d_trigger_slope_combo;
74  QPushButton *d_trigger_level_plus, *d_trigger_level_minus;
75  QPushButton *d_trigger_delay_plus, *d_trigger_delay_minus;
76  QPushButton* d_autoscale_button;
77  QPushButton* d_stop_button;
78 };
79 
80 #endif /* TIME_CONTROL_PANEL_H */
Definition: timecontrolpanel.h:26
void updateStopLabel(bool on)
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