Skip to content

Commit

Permalink
disable impedance for transmission traces, reword graph adjustment di…
Browse files Browse the repository at this point in the history
…alog
  • Loading branch information
jankae committed Apr 16, 2024
1 parent 994b536 commit 3f6dad5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Software/PC_Application/LibreVNA-GUI/Traces/tracexyplot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,7 @@ bool TraceXYPlot::supported(Trace *t, YAxis::Type type)
case YAxis::Type::Capacitance:
case YAxis::Type::Inductance:
case YAxis::Type::QualityFactor:
case YAxis::Type::AbsImpedance:
if(!t->isReflection()) {
return false;
}
Expand Down Expand Up @@ -1206,9 +1207,9 @@ void TraceXYPlot::traceDropped(Trace *t, QPoint position)
{
Q_UNUSED(position)
if(!supported(t)) {
// needs to switch to a different domain for the graph
if(!InformationBox::AskQuestion("X Axis Domain Change", "You dropped a trace that is not supported with the currently selected X axis domain."
" Do you want to remove all traces and change the graph to the correct domain?", true, "DomainChangeRequest")) {
// needs to switch to a different setting for the graph
if(!InformationBox::AskQuestion("Graph Configuration Change", "You dropped a trace that is not supported with the currently configured axes."
" Do you want to remove all traces and change the graph to the correct configuration?", true, "DomainChangeRequest")) {
// user declined to change domain, to not add trace
return;
}
Expand Down

0 comments on commit 3f6dad5

Please sign in to comment.