mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
added scanner status indicator and enabled the scanner on android
This commit is contained in:
parent
6d784dfe27
commit
9f0daf7d45
@ -278,6 +278,7 @@ int sdrpp_main(int argc, char* argv[]) {
|
|||||||
core::configManager.conf["modules"][modCount++] = "frequency_manager.so";
|
core::configManager.conf["modules"][modCount++] = "frequency_manager.so";
|
||||||
core::configManager.conf["modules"][modCount++] = "recorder.so";
|
core::configManager.conf["modules"][modCount++] = "recorder.so";
|
||||||
core::configManager.conf["modules"][modCount++] = "rigctl_server.so";
|
core::configManager.conf["modules"][modCount++] = "rigctl_server.so";
|
||||||
|
core::configManager.conf["modules"][modCount++] = "scanner.so";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Fix missing elements in config
|
// Fix missing elements in config
|
||||||
|
@ -102,11 +102,21 @@ private:
|
|||||||
if (ImGui::Button("Start##scanner_start", ImVec2(menuWidth, 0))) {
|
if (ImGui::Button("Start##scanner_start", ImVec2(menuWidth, 0))) {
|
||||||
_this->start();
|
_this->start();
|
||||||
}
|
}
|
||||||
|
ImGui::Text("Status: Idle");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (ImGui::Button("Stop##scanner_start", ImVec2(menuWidth, 0))) {
|
if (ImGui::Button("Stop##scanner_start", ImVec2(menuWidth, 0))) {
|
||||||
_this->stop();
|
_this->stop();
|
||||||
}
|
}
|
||||||
|
if (_this->receiving) {
|
||||||
|
ImGui::TextColored(ImVec4(0, 1, 0, 1), "Status: Receiving");
|
||||||
|
}
|
||||||
|
else if (_this->tuning) {
|
||||||
|
ImGui::TextColored(ImVec4(0, 1, 1, 1), "Status: Tuning");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ImGui::TextColored(ImVec4(1, 1, 0, 1), "Status: Scanning");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user