SlewDialog.cpp   SlewDialog.cpp 
skipping to change at line 37 skipping to change at line 37
#include "VecMath.hpp" #include "VecMath.hpp"
#include "TelescopeControl.hpp" #include "TelescopeControl.hpp"
#include "SlewDialog.hpp" #include "SlewDialog.hpp"
#include "ui_slewDialog.h" #include "ui_slewDialog.h"
#include <QDebug> #include <QDebug>
using namespace TelescopeControlGlobals; using namespace TelescopeControlGlobals;
SlewDialog::SlewDialog() SlewDialog::SlewDialog()
: StelDialog("TelescopeControlSlew")
, storedPointsDialog(NULL)
{ {
ui = new Ui_slewDialog(); ui = new Ui_slewDialog();
dialogName = "TelescopeControlSlew";
//TODO: Fix this - it's in the same plugin //TODO: Fix this - it's in the same plugin
telescopeManager = GETSTELMODULE(TelescopeControl); telescopeManager = GETSTELMODULE(TelescopeControl);
storedPointsDialog = NULL;
} }
SlewDialog::~SlewDialog() SlewDialog::~SlewDialog()
{ {
delete ui; delete ui;
storedPointsDialog = NULL; storedPointsDialog = NULL;
} }
void SlewDialog::retranslate() void SlewDialog::retranslate()
{ {
skipping to change at line 232 skipping to change at line 232
void SlewDialog::getCenterInfo() void SlewDialog::getCenterInfo()
{ {
StelCore *core = StelApp::getInstance().getCore(); StelCore *core = StelApp::getInstance().getCore();
const StelProjectorP projector = core->getProjection(StelCore::Frame EquinoxEqu); const StelProjectorP projector = core->getProjection(StelCore::Frame EquinoxEqu);
Vec3d centerPosition; Vec3d centerPosition;
Vec2f center = projector->getViewportCenter(); Vec2f center = projector->getViewportCenter();
projector->unProject(center[0], center[1], centerPosition); projector->unProject(center[0], center[1], centerPosition);
double dec_j2000 = 0; double dec_j2000 = 0;
double ra_j2000 = 0; double ra_j2000 = 0;
StelUtils::rectToSphe(&ra_j2000,&dec_j2000,core->equinoxEquToJ2000(c enterPosition)); StelUtils::rectToSphe(&ra_j2000,&dec_j2000,core->equinoxEquToJ2000(c enterPosition, StelCore::RefractionOff));
ui->spinBoxRA->setRadians(ra_j2000); ui->spinBoxRA->setRadians(ra_j2000);
ui->spinBoxDec->setRadians(dec_j2000); ui->spinBoxDec->setRadians(dec_j2000);
} }
void SlewDialog::editStoredPoints() void SlewDialog::editStoredPoints()
{ {
storedPointsDialog->setVisible(true); storedPointsDialog->setVisible(true);
QVariantList qvl; QVariantList qvl;
for (int i = 1;i< ui->comboBoxStoredPoints->count(); i++) for (int i = 1;i< ui->comboBoxStoredPoints->count(); i++)
 End of changes. 4 change blocks. 
3 lines changed or deleted 3 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/