| 571 | } |
| 572 | |
| 573 | void MacroConditionSceneTransformEdit::UpdateEntryData() |
| 574 | { |
| 575 | if (!_entryData) { |
| 576 | return; |
| 577 | } |
| 578 | |
| 579 | _scenes->SetScene(_entryData->_scene); |
| 580 | _sources->SetSceneItem(_entryData->_source); |
| 581 | _settingsType->setCurrentIndex( |
| 582 | static_cast<int>(_entryData->GetSettingsType())); |
| 583 | _compare->setCurrentIndex(static_cast<int>(_entryData->_compare)); |
| 584 | _conditions->setCurrentIndex( |
| 585 | static_cast<int>(_entryData->GetCondition())); |
| 586 | _regex->SetRegexConfig(_entryData->_regex); |
| 587 | UpdateSettingSelection(); |
| 588 | _settingSelection->SetSetting(_entryData->_setting); |
| 589 | _transformString->setPlainText(_entryData->_transformString); |
| 590 | _singleSettingValue->setText(_entryData->_singleSetting); |
| 591 | SetWidgetVisibility(); |
| 592 | } |
| 593 | |
| 594 | void MacroConditionSceneTransformEdit::SceneChanged(const SceneSelection &s) |
| 595 | { |
nothing calls this directly
no test coverage detected