| 446 | } |
| 447 | |
| 448 | MacroActionSourceEdit::MacroActionSourceEdit( |
| 449 | QWidget *parent, std::shared_ptr<MacroActionSource> entryData) |
| 450 | : QWidget(parent), |
| 451 | _sources(new SourceSelectionWidget(this, getSourcesList, true)), |
| 452 | _actions(new QComboBox()), |
| 453 | _settingsButtons(new SourceSettingsButtonSelection(this)), |
| 454 | _settingsLayout(new QHBoxLayout()), |
| 455 | _settingsInputMethods(new QComboBox(this)), |
| 456 | _manualSettingValue(new VariableTextEdit(this, 5, 1, 1)), |
| 457 | _tempVars(new TempVariableSelection(this)), |
| 458 | _sourceSettings(new SourceSettingSelection(this)), |
| 459 | _settingsString(new VariableTextEdit(this)), |
| 460 | _getSettings(new QPushButton(obs_module_text( |
| 461 | "AdvSceneSwitcher.action.source.getSettings"))), |
| 462 | _deinterlaceMode(new QComboBox()), |
| 463 | _deinterlaceOrder(new QComboBox()), |
| 464 | _warning(new QLabel( |
| 465 | obs_module_text("AdvSceneSwitcher.action.source.warning"))), |
| 466 | _refreshSettingSelection(new QPushButton( |
| 467 | obs_module_text("AdvSceneSwitcher.action.source.refresh"))), |
| 468 | _acceptDialog(new QCheckBox(obs_module_text( |
| 469 | "AdvSceneSwitcher.action.source.dialog.accept"))) |
| 470 | { |
| 471 | populateActionSelection(_actions); |
| 472 | |
| 473 | populateModeSelection(_deinterlaceMode, deinterlaceModes); |
| 474 | populateModeSelection(_deinterlaceOrder, deinterlaceFieldOrders); |
| 475 | populateModeSelection(_settingsInputMethods, inputMethods); |
| 476 | _refreshSettingSelection->setToolTip(obs_module_text( |
| 477 | "AdvSceneSwitcher.action.source.refresh.tooltip")); |
| 478 | |
| 479 | QWidget::connect(_actions, SIGNAL(currentIndexChanged(int)), this, |
| 480 | SLOT(ActionChanged(int))); |
| 481 | QWidget::connect(_settingsButtons, |
| 482 | SIGNAL(SelectionChanged(const SourceSettingButton &)), |
| 483 | this, |
| 484 | SLOT(ButtonChanged(const SourceSettingButton &))); |
| 485 | QWidget::connect(_sources, |
| 486 | SIGNAL(SourceChanged(const SourceSelection &)), this, |
| 487 | SLOT(SourceChanged(const SourceSelection &))); |
| 488 | QWidget::connect(_getSettings, SIGNAL(clicked()), this, |
| 489 | SLOT(GetSettingsClicked())); |
| 490 | QWidget::connect(_settingsString, SIGNAL(textChanged()), this, |
| 491 | SLOT(SettingsStringChanged())); |
| 492 | QWidget::connect(_deinterlaceMode, SIGNAL(currentIndexChanged(int)), |
| 493 | this, SLOT(DeinterlaceModeChanged(int))); |
| 494 | QWidget::connect(_deinterlaceOrder, SIGNAL(currentIndexChanged(int)), |
| 495 | this, SLOT(DeinterlaceOrderChanged(int))); |
| 496 | QWidget::connect(_tempVars, |
| 497 | SIGNAL(SelectionChanged(const TempVariableRef &)), |
| 498 | this, SLOT(SelectionChanged(const TempVariableRef &))); |
| 499 | QWidget::connect(_settingsInputMethods, |
| 500 | SIGNAL(currentIndexChanged(int)), this, |
| 501 | SLOT(SettingsInputMethodChanged(int))); |
| 502 | QWidget::connect(_manualSettingValue, SIGNAL(textChanged()), this, |
| 503 | SLOT(ManualSettingsValueChanged())); |
| 504 | QWidget::connect(_sourceSettings, |
| 505 | SIGNAL(SelectionChanged(const SourceSetting &)), this, |
nothing calls this directly
no test coverage detected