MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / setForwardState

Method setForwardState

Components/NetForwarderUI.cpp:88–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void
89NetForwarderUI::setForwardState(bool state)
90{
91 this->ui->udpStartStopButton->setChecked(state);
92
93 this->ui->hostEdit->setEnabled(!state);
94 this->ui->portSpin->setEnabled(!state);
95 this->ui->frameLen->setEnabled(!state);
96
97 this->ui->udpStartStopButton->setText(state ? "Stop" : "Forward");
98
99 if (!state) {
100 this->ui->ioBwProgress->setValue(0);
101 this->setPreparing(false);
102 }
103}
104
105void
106NetForwarderUI::setForwardEnabled(bool enabled)

Callers 4

setForwardEnabledMethod · 0.95
onToggleNetForwardMethod · 0.80
onNetErrorMethod · 0.80
onNetSwampedMethod · 0.80

Calls 3

setPreparingMethod · 0.95
setValueMethod · 0.80
setEnabledMethod · 0.45

Tested by 3

onToggleNetForwardMethod · 0.64
onNetErrorMethod · 0.64
onNetSwampedMethod · 0.64