mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-09 10:35:21 +02:00
Fixed weird VFO behavior
This commit is contained in:
@ -74,6 +74,10 @@ double VFOManager::VFO::getBandwidth() {
|
||||
return wtfVFO->bandwidth;
|
||||
}
|
||||
|
||||
int VFOManager::VFO::getReference() {
|
||||
return wtfVFO->reference;
|
||||
}
|
||||
|
||||
void VFOManager::VFO::setColor(ImU32 color) {
|
||||
wtfVFO->color = color;
|
||||
}
|
||||
@ -176,6 +180,13 @@ double VFOManager::getBandwidth(std::string name) {
|
||||
return vfos[name]->getBandwidth();
|
||||
}
|
||||
|
||||
int VFOManager::getReference(std::string name) {
|
||||
if (vfos.find(name) == vfos.end()) {
|
||||
return -1;
|
||||
}
|
||||
return vfos[name]->getReference();
|
||||
}
|
||||
|
||||
void VFOManager::setColor(std::string name, ImU32 color) {
|
||||
if (vfos.find(name) == vfos.end()) {
|
||||
return;
|
||||
|
@ -22,6 +22,7 @@ public:
|
||||
void setBandwidthLimits(double minBandwidth, double maxBandwidth, bool bandwidthLocked);
|
||||
bool getBandwidthChanged(bool erase = true);
|
||||
double getBandwidth();
|
||||
int getReference();
|
||||
void setColor(ImU32 color);
|
||||
std::string getName();
|
||||
|
||||
@ -50,6 +51,7 @@ public:
|
||||
double getBandwidth(std::string name);
|
||||
void setColor(std::string name, ImU32 color);
|
||||
std::string getName();
|
||||
int getReference(std::string name);
|
||||
bool vfoExists(std::string name);
|
||||
|
||||
void updateFromWaterfall(ImGui::WaterFall* wtf);
|
||||
|
Reference in New Issue
Block a user