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

Method UpdateEntryData

plugins/base/macro-condition-websocket.cpp:247–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void MacroConditionWebsocketEdit::UpdateEntryData()
248{
249 if (!_entryData) {
250 return;
251 }
252
253 _conditions->setCurrentIndex(static_cast<int>(_entryData->GetType()));
254 _message->setPlainText(_entryData->_message);
255 _regex->SetRegexConfig(_entryData->_regex);
256 _connection->SetConnection(_entryData->GetConnection());
257 _clearBufferOnMatch->setChecked(_entryData->_clearBufferOnMatch);
258
259 if (_entryData->GetType() == MacroConditionWebsocket::Type::REQUEST) {
260 SetupRequestEdit();
261 } else {
262 SetupEventEdit();
263 }
264
265 adjustSize();
266 updateGeometry();
267}
268
269void MacroConditionWebsocketEdit::ConditionChanged(int index)
270{

Callers

nothing calls this directly

Calls 6

setPlainTextMethod · 0.80
SetRegexConfigMethod · 0.80
setCheckedMethod · 0.80
GetTypeMethod · 0.45
SetConnectionMethod · 0.45
GetConnectionMethod · 0.45

Tested by

no test coverage detected