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

Method UpdateEntryData

plugins/base/macro-condition-media.cpp:812–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810}
811
812void MacroConditionMediaEdit::UpdateEntryData()
813{
814 if (!_entryData) {
815 return;
816 }
817
818 _checkTypes->setCurrentIndex(_checkTypes->findData(
819 static_cast<int>(_entryData->GetCheckType())));
820 _sourceTypes->setCurrentIndex(_sourceTypes->findData(
821 static_cast<int>(_entryData->GetSourceType())));
822 _sources->SetSource(_entryData->GetSource());
823 _scenes->SetScene(_entryData->_scene);
824 _states->setCurrentIndex(
825 _states->findData(static_cast<int>(_entryData->_state)));
826 _timeRestrictions->setCurrentIndex(_timeRestrictions->findData(
827 static_cast<int>(_entryData->_timeRestriction)));
828 _time->SetDuration(_entryData->_time);
829 if (_entryData->_timeRestriction ==
830 MacroConditionMedia::Time::TIME_RESTRICTION_NONE) {
831 _time->setDisabled(true);
832 }
833 SetWidgetVisibility();
834}
835
836} // namespace advss

Callers

nothing calls this directly

Calls 6

GetCheckTypeMethod · 0.80
GetSourceTypeMethod · 0.80
SetSourceMethod · 0.45
GetSourceMethod · 0.45
SetSceneMethod · 0.45
SetDurationMethod · 0.45

Tested by

no test coverage detected