MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / DsoTriggerDock

Method DsoTriggerDock

DSView/pv/dock/dsotriggerdock.cpp:48–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46namespace dock {
47
48DsoTriggerDock::DsoTriggerDock(QWidget *parent, SigSession *session) :
49 QScrollArea(parent),
50 _session(session)
51{
52 this->setWidgetResizable(true);
53 _widget = new QWidget(this);
54
55 _position_label = new QLabel(_widget);
56 _position_spinBox = new PopupLineEdit(_widget);
57 _position_spinBox->setRange(1, 99);
58 //_position_spinBox->setButtonSymbols(QAbstractSpinBox::NoButtons);
59 _position_slider = new QSlider(Qt::Horizontal, _widget);
60 _position_slider->setRange(1, 99);
61 connect(_position_slider, SIGNAL(valueChanged(int)), _position_spinBox, SLOT(setValue(int)));
62 connect(_position_spinBox, SIGNAL(valueChanged(int)), _position_slider, SLOT(setValue(int)));
63 connect(_position_slider, SIGNAL(valueChanged(int)), this, SLOT(pos_changed(int)));
64
65 _holdoff_label = new QLabel(_widget);
66 _holdoff_comboBox = new DsComboBox(_widget);
67 //tr
68 _holdoff_comboBox->addItem(L_S(STR_PAGE_DLG, S_ID(IDS_DLG_S), "S"), QVariant::fromValue(1000000000));
69 _holdoff_comboBox->addItem(L_S(STR_PAGE_DLG, S_ID(IDS_DLG_MS), "mS"), QVariant::fromValue(1000000));
70 _holdoff_comboBox->addItem(L_S(STR_PAGE_DLG, S_ID(IDS_DLG_US), "uS"), QVariant::fromValue(1000));
71
72 _holdoff_comboBox->setCurrentIndex(0);
73 _holdoff_spinBox = new PopupLineEdit(_widget);
74 _holdoff_spinBox->setRange(0, 999);
75 // _holdoff_spinBox->setButtonSymbols(QAbstractSpinBox::NoButtons);
76 _holdoff_slider = new QSlider(Qt::Horizontal, _widget);
77 _holdoff_slider->setRange(0, 999);
78
79 connect(_holdoff_slider, SIGNAL(valueChanged(int)), _holdoff_spinBox, SLOT(setValue(int)));
80 connect(_holdoff_spinBox, SIGNAL(valueChanged(int)), _holdoff_slider, SLOT(setValue(int)));
81 connect(_holdoff_slider, SIGNAL(valueChanged(int)), this, SLOT(hold_changed(int)));
82 connect(_holdoff_comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(hold_changed(int)));
83
84 _margin_label = new QLabel(_widget);
85 _margin_slider = new QSlider(Qt::Horizontal, _widget);
86 _margin_slider->setRange(0, 15);
87 connect(_margin_slider, SIGNAL(valueChanged(int)), this, SLOT(margin_changed(int)));
88
89 _tSource_label = new QLabel(_widget);
90 _auto_radioButton = new QRadioButton(_widget);
91 _auto_radioButton->setChecked(true);
92 _ch0_radioButton = new QRadioButton(_widget);
93 _ch1_radioButton = new QRadioButton(_widget);
94 _ch0a1_radioButton = new QRadioButton(_widget);
95 _ch0o1_radioButton = new QRadioButton(_widget);
96
97 connect(_auto_radioButton, SIGNAL(clicked()), this, SLOT(source_changed()));
98 connect(_ch0_radioButton, SIGNAL(clicked()), this, SLOT(source_changed()));
99 connect(_ch1_radioButton, SIGNAL(clicked()), this, SLOT(source_changed()));
100 connect(_ch0a1_radioButton, SIGNAL(clicked()), this, SLOT(source_changed()));
101 connect(_ch0o1_radioButton, SIGNAL(clicked()), this, SLOT(source_changed()));
102
103 _tType_label = new QLabel(_widget);
104 _rising_radioButton = new QRadioButton(_widget);
105 _rising_radioButton->setChecked(true);

Callers

nothing calls this directly

Calls 1

setRangeMethod · 0.80

Tested by

no test coverage detected