SlewDialog.cpp   SlewDialog.cpp 
skipping to change at line 75 skipping to change at line 75
connect(ui->radioButtonHMS, SIGNAL(toggled(bool)), this, SLOT(setFor matHMS(bool))); connect(ui->radioButtonHMS, SIGNAL(toggled(bool)), this, SLOT(setFor matHMS(bool)));
connect(ui->radioButtonDMS, SIGNAL(toggled(bool)), this, SLOT(setFor matDMS(bool))); connect(ui->radioButtonDMS, SIGNAL(toggled(bool)), this, SLOT(setFor matDMS(bool)));
connect(ui->radioButtonDecimal, SIGNAL(toggled(bool)), this, SLOT(se tFormatDecimal(bool))); connect(ui->radioButtonDecimal, SIGNAL(toggled(bool)), this, SLOT(se tFormatDecimal(bool)));
connect(ui->pushButtonSlew, SIGNAL(clicked()), this, SLOT(slew())); connect(ui->pushButtonSlew, SIGNAL(clicked()), this, SLOT(slew()));
connect(ui->pushButtonConfigure, SIGNAL(clicked()), this, SLOT(showC onfiguration())); connect(ui->pushButtonConfigure, SIGNAL(clicked()), this, SLOT(showC onfiguration()));
connect(telescopeManager, SIGNAL(clientConnected(int, QString)), thi s, SLOT(addTelescope(int, QString))); connect(telescopeManager, SIGNAL(clientConnected(int, QString)), thi s, SLOT(addTelescope(int, QString)));
connect(telescopeManager, SIGNAL(clientDisconnected(int)), this, SLO T(removeTelescope(int))); connect(telescopeManager, SIGNAL(clientDisconnected(int)), this, SLO T(removeTelescope(int)));
// //
connect(ui->pushButtonCurrent,SIGNAL(clicked()),this,SLOT(getCurren connect(ui->pushButtonCurrent, SIGNAL(clicked()), this, SLOT(getCurr
tObjectInfo())); entObjectInfo()));
connect(ui->pushButtonCenter, SIGNAL(clicked()), this, SLOT(getCente
rInfo()));
//Coordinates are in HMS by default: //Coordinates are in HMS by default:
ui->radioButtonHMS->setChecked(true); ui->radioButtonHMS->setChecked(true);
updateTelescopeList(); updateTelescopeList();
} }
void SlewDialog::showConfiguration() void SlewDialog::showConfiguration()
{ {
//Hack to work around having no direct way to do display the window //Hack to work around having no direct way to do display the window
telescopeManager->configureGui(true); telescopeManager->configureGui(true);
skipping to change at line 182 skipping to change at line 183
double radiansRA = ui->spinBoxRA->valueRadians(); double radiansRA = ui->spinBoxRA->valueRadians();
double radiansDec = ui->spinBoxDec->valueRadians(); double radiansDec = ui->spinBoxDec->valueRadians();
int slot = connectedSlotsByName.value(ui->comboBoxTelescope->current Text()); int slot = connectedSlotsByName.value(ui->comboBoxTelescope->current Text());
Vec3d targetPosition; Vec3d targetPosition;
StelUtils::spheToRect(radiansRA, radiansDec, targetPosition); StelUtils::spheToRect(radiansRA, radiansDec, targetPosition);
telescopeManager->telescopeGoto(slot, targetPosition); telescopeManager->telescopeGoto(slot, targetPosition);
} }
void SlewDialog::getCurrentObjectInfo(){ void SlewDialog::getCurrentObjectInfo()
const QList<StelObjectP>& selected = GETSTELMODULE(StelObjectMgr)->getS {
electedObject(); const QList<StelObjectP>& selected = GETSTELMODULE(StelObjectMgr)->g
if (!selected.isEmpty()) { etSelectedObject();
double dec_j2000 = 0; if (!selected.isEmpty()) {
double ra_j2000 = 0; double dec_j2000 = 0;
StelUtils::rectToSphe(&ra_j2000,&dec_j2000,selected[0]->getJ2000Equ double ra_j2000 = 0;
atorialPos(StelApp::getInstance().getCore())); StelUtils::rectToSphe(&ra_j2000,&dec_j2000,selected[0]->getJ
ui->spinBoxRA->setRadians(ra_j2000); 2000EquatorialPos(StelApp::getInstance().getCore()));
ui->spinBoxDec->setRadians(dec_j2000); ui->spinBoxRA->setRadians(ra_j2000);
} ui->spinBoxDec->setRadians(dec_j2000);
}
}
void SlewDialog::getCenterInfo()
{
StelCore *core = StelApp::getInstance().getCore();
const StelProjectorP projector = core->getProjection(StelCore::Frame
EquinoxEqu);
Vec3d centerPosition;
Vec2f center = projector->getViewportCenter();
projector->unProject(center[0], center[1], centerPosition);
double dec_j2000 = 0;
double ra_j2000 = 0;
StelUtils::rectToSphe(&ra_j2000,&dec_j2000,core->equinoxEquToJ2000(c
enterPosition));
ui->spinBoxRA->setRadians(ra_j2000);
ui->spinBoxDec->setRadians(dec_j2000);
} }
 End of changes. 2 change blocks. 
13 lines changed or deleted 32 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/