WIP: preparation for zero span mode

This commit is contained in:
Jan Käberich 2022-06-20 01:02:09 +02:00
parent e8560e1a67
commit 6393ae7fc3
22 changed files with 299 additions and 69 deletions

View file

@ -324,6 +324,7 @@ std::set<YAxis::Type> YAxis::getSupported(XAxis::Type type, TraceModel::DataSour
switch(type) {
case XAxis::Type::Frequency:
case XAxis::Type::Power:
case XAxis::Type::TimeZeroSpan:
ret.insert(YAxis::Type::Magnitude);
ret.insert(YAxis::Type::MagnitudeLinear);
ret.insert(YAxis::Type::Phase);
@ -489,6 +490,7 @@ QString XAxis::TypeToName(Type type)
case Type::Time: return "Time";
case Type::Distance: return "Distance";
case Type::Power: return "Power";
case Type::TimeZeroSpan: return "Time (Zero Span)";
default: return "Unknown";
}
}
@ -511,6 +513,7 @@ QString XAxis::Unit(Type type)
case Type::Time: return "s";
case Type::Distance: return "m";
case Type::Power: return "dBm";
case Type::TimeZeroSpan: return "s";
default: return "";
}
}