From 31ee36bfabcb306da571f03c14ec9df1f80dc4bf Mon Sep 17 00:00:00 2001 From: "Alexander V. Wolf" Date: Mon, 26 Feb 2024 12:29:10 +0700 Subject: [PATCH] Following changed the direction of FOV --- src/core/StelMovementMgr.cpp | 1 + src/core/StelMovementMgr.hpp | 1 + src/gui/SearchDialog.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/core/StelMovementMgr.cpp b/src/core/StelMovementMgr.cpp index ad7cf89192de3f..8f4524f1fbb193 100644 --- a/src/core/StelMovementMgr.cpp +++ b/src/core/StelMovementMgr.cpp @@ -1610,6 +1610,7 @@ void StelMovementMgr::panView(const double deltaAz, const double deltaAlt) { setViewUpVector(Vec3d(0., 0., 1.)); } + emit currentDirectionChanged(); } } diff --git a/src/core/StelMovementMgr.hpp b/src/core/StelMovementMgr.hpp index 2f1ec2f24e6f6b..39b9f35d66381d 100644 --- a/src/core/StelMovementMgr.hpp +++ b/src/core/StelMovementMgr.hpp @@ -480,6 +480,7 @@ public slots: void flagEnableZoomKeysChanged(bool b); void userMaxFovChanged(double fov); void currentFovChanged(double fov); + void currentDirectionChanged(); private slots: //! Called when the selected object changes. diff --git a/src/gui/SearchDialog.cpp b/src/gui/SearchDialog.cpp index 5c62aa7894ece4..fc5d5ae2e7bf09 100644 --- a/src/gui/SearchDialog.cpp +++ b/src/gui/SearchDialog.cpp @@ -394,6 +394,7 @@ void SearchDialog::createDialogContent() connect(ui->AxisXSpinBox, SIGNAL(valueChanged()), this, SLOT(manualPositionChanged())); connect(ui->AxisYSpinBox, SIGNAL(valueChanged()), this, SLOT(manualPositionChanged())); connect(ui->goPushButton, SIGNAL(clicked(bool)), this, SLOT(manualPositionChanged())); + connect(GETSTELMODULE(StelMovementMgr), SIGNAL(currentDirectionChanged()), this, SLOT(setCenterOfScreenCoordinates())); setCenterOfScreenCoordinates(); connect(ui->alphaPushButton, SIGNAL(clicked(bool)), this, SLOT(greekLetterClicked()));