mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-29 13:57:51 +02:00
Finished RigCTL server
This commit is contained in:
@ -27,7 +27,7 @@ namespace credits {
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
|
||||
ImGui::Text("This software is brought to you by\n\n");
|
||||
ImGui::Text("This software is brought to you by Alexandre Rouma with the help of\n\n");
|
||||
|
||||
ImGui::Columns(3, "CreditColumns", true);
|
||||
|
||||
@ -53,7 +53,7 @@ namespace credits {
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
ImGui::Text("SDR++ v" VERSION_STR);
|
||||
ImGui::Text("SDR++ v" VERSION_STR " (Built at " __TIME__ ", " __DATE__ ")");
|
||||
|
||||
ImVec2 dispSize = ImGui::GetIO().DisplaySize;
|
||||
ImVec2 winSize = ImGui::GetWindowSize();
|
||||
|
@ -87,7 +87,7 @@ void MainWindow::init() {
|
||||
|
||||
vfoCreatedHandler.handler = vfoAddedHandler;
|
||||
vfoCreatedHandler.ctx = this;
|
||||
sigpath::vfoManager.vfoCreatedEvent.bindHandler(&vfoCreatedHandler);
|
||||
sigpath::vfoManager.onVfoCreated.bindHandler(&vfoCreatedHandler);
|
||||
|
||||
spdlog::info("Loading modules");
|
||||
|
||||
@ -211,6 +211,8 @@ void MainWindow::init() {
|
||||
}
|
||||
|
||||
initComplete = true;
|
||||
|
||||
onInitComplete.emit(true);
|
||||
}
|
||||
|
||||
void MainWindow::fftHandler(dsp::complex_t* samples, int count, void* ctx) {
|
||||
|
@ -34,6 +34,7 @@ public:
|
||||
bool lockWaterfallControls = false;
|
||||
|
||||
Event<bool> onPlayStateChange;
|
||||
Event<bool> onInitComplete;
|
||||
|
||||
private:
|
||||
void generateFFTWindow(int win, int size);
|
||||
|
@ -72,7 +72,7 @@ namespace vfo_color_menu {
|
||||
}
|
||||
|
||||
vfoAddHndl.handler = vfoAddHandler;
|
||||
sigpath::vfoManager.vfoCreatedEvent.bindHandler(&vfoAddHndl);
|
||||
sigpath::vfoManager.onVfoCreated.bindHandler(&vfoAddHndl);
|
||||
core::configManager.release(modified);
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,10 @@
|
||||
|
||||
namespace tuner {
|
||||
void centerTuning(std::string vfoName, double freq) {
|
||||
if (vfoName != "") { sigpath::vfoManager.setOffset(vfoName, 0); }
|
||||
if (vfoName != "") {
|
||||
if (gui::waterfall.vfos.find(vfoName) == gui::waterfall.vfos.end()) { return; }
|
||||
sigpath::vfoManager.setOffset(vfoName, 0);
|
||||
}
|
||||
double BW = gui::waterfall.getBandwidth();
|
||||
double viewBW = gui::waterfall.getViewBandwidth();
|
||||
gui::waterfall.setViewOffset((BW / 2.0) - (viewBW / 2.0));
|
||||
@ -20,6 +23,7 @@ namespace tuner {
|
||||
centerTuning(vfoName, freq);
|
||||
return;
|
||||
}
|
||||
if (gui::waterfall.vfos.find(vfoName) == gui::waterfall.vfos.end()) { return; }
|
||||
|
||||
double viewBW = gui::waterfall.getViewBandwidth();
|
||||
double BW = gui::waterfall.getBandwidth();
|
||||
|
Reference in New Issue
Block a user