SlewDialog.cpp   SlewDialog.cpp 
skipping to change at line 69 skipping to change at line 69
ui->setupUi(dialog); ui->setupUi(dialog);
//Inherited connect //Inherited connect
connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate())); connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL OT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ; connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())) ;
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(pressed()), this, SLOT(slew())); connect(ui->pushButtonSlew, SIGNAL(clicked()), this, SLOT(slew()));
connect(ui->pushButtonConfigure, SIGNAL(pressed()), this, SLOT(showC connect(ui->pushButtonConfigure, SIGNAL(clicked()), this, SLOT(showC
onfiguration())); 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
tObjectInfo()));
//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 180 skipping to change at line 181
{ {
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(){
const QList<StelObjectP>& selected = GETSTELMODULE(StelObjectMgr)->getS
electedObject();
if (!selected.isEmpty()) {
double dec_j2000 = 0;
double ra_j2000 = 0;
StelUtils::rectToSphe(&ra_j2000,&dec_j2000,selected[0]->getJ2000Equ
atorialPos(StelApp::getInstance().getCore()));
ui->spinBoxRA->setRadians(ra_j2000);
ui->spinBoxDec->setRadians(dec_j2000);
}
}
 End of changes. 3 change blocks. 
4 lines changed or deleted 6 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/