StoredPointsDialog.cpp   StoredPointsDialog.cpp 
skipping to change at line 24 skipping to change at line 24
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "StoredPointsDialog.hpp" #include "StoredPointsDialog.hpp"
#include "ui_storedPointsDialog.h" #include "ui_storedPointsDialog.h"
StoredPointsDialog::StoredPointsDialog() StoredPointsDialog::StoredPointsDialog(): StelDialog("TelescopeControlStore dPoints")
{ {
ui = new Ui_StoredPoints; ui = new Ui_StoredPoints;
dialogName = "TelescopeControlStoredPoints";
storedPointsListModel = new QStandardItemModel(0, ColumnCount); storedPointsListModel = new QStandardItemModel(0, ColumnCount);
} }
StoredPointsDialog::~StoredPointsDialog() StoredPointsDialog::~StoredPointsDialog()
{ {
delete ui; delete ui;
delete storedPointsListModel; delete storedPointsListModel;
} }
void StoredPointsDialog::retranslate() void StoredPointsDialog::retranslate()
skipping to change at line 180 skipping to change at line 179
void StoredPointsDialog::getCenterInfo() void StoredPointsDialog::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)); // GZ for 0.15.2: Not sure about RefractionOff. This just keeps old behaviour.
ui->spinBoxRA->setRadians(ra_j2000); ui->spinBoxRA->setRadians(ra_j2000);
ui->spinBoxDec->setRadians(dec_j2000); ui->spinBoxDec->setRadians(dec_j2000);
ui->lineEditStoredPointName->clear(); // if previous saved ui->lineEditStoredPointName->clear(); // if previous saved
ui->lineEditStoredPointName->setFocus(); ui->lineEditStoredPointName->setFocus();
} }
 End of changes. 3 change blocks. 
3 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/