Skip to content

Commit

Permalink
Fix building Stellarium without scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Mar 31, 2020
1 parent ceb7712 commit a5786f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions plugins/NavStars/src/NavStars.cpp
Expand Up @@ -35,7 +35,6 @@
#include "NavStarsWindow.hpp"
#include "NavStarsCalculator.hpp"
#include "Planet.hpp"
#include <StelMainScriptAPI.hpp>

#include <QList>
#include <QSharedPointer>
Expand Down Expand Up @@ -489,7 +488,7 @@ void NavStars::extraInfo(StelCore* core, const StelObjectP& selectedObject, bool
jde = core->getJDE();

NavStarsCalculator calc;
calc.setUTC(StelMainScriptAPI::getDate("utc"))
calc.setUTC(StelUtils::julianDayToISO8601String(jd))
.setLatDeg(core->getCurrentLocation().latitude)
.setLonDeg(core->getCurrentLocation().longitude)
.setJd(jd)
Expand Down
4 changes: 3 additions & 1 deletion src/gui/StelGui.cpp
Expand Up @@ -225,13 +225,15 @@ void StelGui::init(QGraphicsWidget *atopLevelGraphicsWidget)
QString windowsGroup = N_("Windows");
QString miscGroup = N_("Miscellaneous");
actionsMgr->addAction("actionQuit_Global", miscGroup, N_("Quit"), this, "quit()", "Ctrl+Q", "Ctrl+X");

#ifndef DISABLE_SCRIPTING
actionsMgr->addAction("actionIncrease_Script_Speed", datetimeGroup, N_("Speed up the script execution rate"), this, "increaseScriptSpeed()");
actionsMgr->addAction("actionDecrease_Script_Speed", datetimeGroup, N_("Slow down the script execution rate"), this, "decreaseScriptSpeed()");
actionsMgr->addAction("actionSet_Real_Script_Speed", datetimeGroup, N_("Set the normal script execution rate"), this, "setRealScriptSpeed()");
actionsMgr->addAction("actionStop_Script", datetimeGroup, N_("Stop script execution"), this, "stopScript()", "Ctrl+D, S");
actionsMgr->addAction("actionPause_Script", datetimeGroup, N_("Pause script execution"), this, "pauseScript()", "Ctrl+D, P");
actionsMgr->addAction("actionResume_Script", datetimeGroup, N_("Resume script execution"), this, "resumeScript()", "Ctrl+D, R");

#endif
#ifdef ENABLE_SCRIPT_CONSOLE
actionsMgr->addAction("actionShow_ScriptConsole_Window_Global", windowsGroup, N_("Script console window"), scriptConsole, "visible", "F12", "", true);
#endif
Expand Down

0 comments on commit a5786f1

Please sign in to comment.