New spyserver source

This commit is contained in:
Ryzerth
2021-07-19 04:52:13 +02:00
parent 8d3557268f
commit 79e2747aed
9 changed files with 470 additions and 489 deletions

View File

@ -178,6 +178,8 @@ int sdrpp_main(int argc, char *argv[]) {
defConfig["moduleInstances"]["SDRplay Source"]["enabled"] = true;
defConfig["moduleInstances"]["SoapySDR Source"]["module"] = "soapy_source";
defConfig["moduleInstances"]["SoapySDR Source"]["enabled"] = true;
defConfig["moduleInstances"]["SpyServer Source"]["module"] = "spyserver_source";
defConfig["moduleInstances"]["SpyServer Source"]["enabled"] = true;
defConfig["moduleInstances"]["PlutoSDR Source"]["module"] = "plutosdr_source";
defConfig["moduleInstances"]["PlutoSDR Source"]["enabled"] = true;

View File

@ -343,6 +343,8 @@ void MainWindow::draw() {
ImGui::SameLine();
bool tmpPlaySate = playing;
if (playButtonLocked && !tmpPlaySate) { style::beginDisabled(); }
if (playing) {
ImGui::PushID(ImGui::GetID("sdrpp_stop_btn"));
if (ImGui::ImageButton(icons::STOP, ImVec2(30, 30), ImVec2(0, 0), ImVec2(1, 1), 5) || ImGui::IsKeyPressed(GLFW_KEY_END, false)) {
@ -364,6 +366,7 @@ void MainWindow::draw() {
}
ImGui::PopID();
}
if (playButtonLocked && !tmpPlaySate) { style::endDisabled(); }
ImGui::SameLine();

View File

@ -32,6 +32,7 @@ public:
bool isPlaying();
bool lockWaterfallControls = false;
bool playButtonLocked = false;
Event<bool> onPlayStateChange;
Event<bool> onInitComplete;