mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 14:07:30 +00:00
new SCPI command: delete traces
This commit is contained in:
parent
8be82589c5
commit
a5b9195ac9
3 changed files with 15 additions and 1 deletions
|
|
@ -512,6 +512,14 @@ void TraceWidget::SetupSCPI()
|
|||
model.addTrace(t);
|
||||
return SCPI::getResultName(SCPI::Result::Empty);
|
||||
}, nullptr));
|
||||
add(new SCPICommand("DELete", [=](QStringList params) -> QString {
|
||||
auto t = findTrace(params);
|
||||
if(!t) {
|
||||
return SCPI::getResultName(SCPI::Result::Error);
|
||||
}
|
||||
model.removeTrace(t);
|
||||
return SCPI::getResultName(SCPI::Result::Empty);
|
||||
}, nullptr));
|
||||
add(new SCPICommand("RENAME", [=](QStringList params) -> QString {
|
||||
auto t = findTrace(params);
|
||||
if(!t) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue