MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / SequenceTriggerPage

Method SequenceTriggerPage

lib/utils/first-run-wizard-sequence.cpp:128–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126// ===========================================================================
127
128SequenceTriggerPage::SequenceTriggerPage(QWidget *parent)
129 : QWizardPage(parent),
130 _sceneCombo(new QComboBox(this)),
131 _delaySelection(new DurationSelection(this, true, 0.0))
132{
133 setTitle(obs_module_text("FirstRunWizard.seqTrigger.title"));
134 setSubTitle(obs_module_text("FirstRunWizard.seqTrigger.subtitle"));
135
136 _sceneCombo->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
137 _delaySelection->SetDuration(Duration(5.0));
138
139 registerField("seqTriggerScene*", _sceneCombo, "currentText",
140 SIGNAL(currentTextChanged(QString)));
141
142 connect(_sceneCombo, &QComboBox::currentTextChanged, this,
143 &QWizardPage::completeChanged);
144
145 auto *sceneRow = new QHBoxLayout;
146 PlaceWidgets(obs_module_text("FirstRunWizard.seqTrigger.scene"),
147 sceneRow, {{"{{scene}}", _sceneCombo}}, false);
148
149 auto *delayRow = new QHBoxLayout;
150 PlaceWidgets(obs_module_text("FirstRunWizard.seqTrigger.delay"),
151 delayRow, {{"{{duration}}", _delaySelection}}, false);
152
153 auto *layout = new QVBoxLayout(this);
154 layout->addLayout(sceneRow);
155 layout->addLayout(delayRow);
156 layout->addStretch();
157}
158
159void SequenceTriggerPage::initializePage()
160{

Callers

nothing calls this directly

Calls 4

obs_module_textFunction · 0.85
PlaceWidgetsFunction · 0.85
DurationClass · 0.70
SetDurationMethod · 0.45

Tested by

no test coverage detected