TextUserInterface.cpp   TextUserInterface.cpp 
skipping to change at line 62 skipping to change at line 62
#endif #endif
#include "StelGui.hpp" #include "StelGui.hpp"
#include "StelGuiItems.hpp"// Funny thing to include in a TEXT user interfa ce... #include "StelGuiItems.hpp"// Funny thing to include in a TEXT user interfa ce...
#include "renderer/StelRenderer.hpp" #include "renderer/StelRenderer.hpp"
#include <QKeyEvent> #include <QKeyEvent>
#include <QDebug> #include <QDebug>
#include <QLabel> #include <QLabel>
#include <QTime> #include <QTime>
#include <QProcess> #include <QProcess>
#include <QDir>
#ifdef DISABLE_SCRIPTING #ifdef DISABLE_SCRIPTING
#include "QSettings" // WTF? #include "QSettings" // WTF?
#endif #endif
/************************************************************************* /*************************************************************************
Utility functions Utility functions
*************************************************************************/ *************************************************************************/
QString colToConf(const Vec3f& c) QString colToConf(const Vec3f& c)
{ {
return QString("%1,%2,%3").arg(c[0],2,'f',2).arg(c[1],2,'f',2).arg(c [2],2,'f',2); return QString("%1,%2,%3").arg(c[0],2,'f',2).arg(c[1],2,'f',2).arg(c [2],2,'f',2);
skipping to change at line 820 skipping to change at line 821
// GLOBAL DISPLAY SETTINGS // GLOBAL DISPLAY SETTINGS
// TODO // TODO
qDebug() << "TextUserInterface::saveDefaultSettings done"; qDebug() << "TextUserInterface::saveDefaultSettings done";
} }
void TextUserInterface::shutDown() void TextUserInterface::shutDown()
{ {
QSettings* conf = StelApp::getInstance().getSettings(); QSettings* conf = StelApp::getInstance().getSettings();
QString shutdownCmd = conf->value("tui/admin_shutdown_cmd", "").toSt ring(); QString shutdownCmd = QDir::fromNativeSeparators(conf->value("tui/ad min_shutdown_cmd", "").toString());
int err; int err;
if (!(err = QProcess::execute(shutdownCmd))) { if (!(err = QProcess::execute(shutdownCmd))) {
qDebug() << "[TextUserInterface] shutdown error, QProcess::e xecute():" << err; qDebug() << "[TextUserInterface] shutdown error, QProcess::e xecute():" << err;
} }
} }
void TextUserInterface::setBortleScale(int bortle) void TextUserInterface::setBortleScale(int bortle)
{ {
LandscapeMgr* landscapeMgr = GETSTELMODULE(LandscapeMgr); LandscapeMgr* landscapeMgr = GETSTELMODULE(LandscapeMgr);
StelSkyDrawer* skyDrawer = StelApp::getInstance().getCore()->getSkyD rawer(); StelSkyDrawer* skyDrawer = StelApp::getInstance().getCore()->getSkyD rawer();
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/