AtmosphereDialog.cpp   AtmosphereDialog.cpp 
skipping to change at line 30 skipping to change at line 30
#include "StelCore.hpp" #include "StelCore.hpp"
#include "StelSkyDrawer.hpp" #include "StelSkyDrawer.hpp"
#include "AtmosphereDialog.hpp" #include "AtmosphereDialog.hpp"
#include "ui_atmosphereDialog.h" #include "ui_atmosphereDialog.h"
AtmosphereDialog::AtmosphereDialog() AtmosphereDialog::AtmosphereDialog()
: refraction(NULL) : refraction(NULL)
, extinction(NULL) , extinction(NULL)
{ {
dialogName = "Atmosphere";
ui = new Ui_atmosphereDialogForm; ui = new Ui_atmosphereDialogForm;
} }
AtmosphereDialog::~AtmosphereDialog() AtmosphereDialog::~AtmosphereDialog()
{ {
delete ui; delete ui;
} }
void AtmosphereDialog::retranslate() void AtmosphereDialog::retranslate()
{ {
skipping to change at line 51 skipping to change at line 52
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
} }
void AtmosphereDialog::createDialogContent() void AtmosphereDialog::createDialogContent()
{ {
ui->setupUi(dialog); ui->setupUi(dialog);
//Signals and slots //Signals and slots
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->TitleBar, SIGNAL(movedTo(QPoint)), this, SLOT(handleMove dTo(QPoint)));
const StelSkyDrawer* skyDrawer = StelApp::getInstance().getCore()->g connectDoubleProperty(ui->pressureDoubleSpinBox,"StelSkyDrawer.atmos
etSkyDrawer(); pherePressure");
ui->pressureDoubleSpinBox->setValue(skyDrawer->getAtmospherePressure connectDoubleProperty(ui->temperatureDoubleSpinBox,"StelSkyDrawer.at
()); mosphereTemperature");
connect(ui->pressureDoubleSpinBox, SIGNAL(valueChanged(double)), connectDoubleProperty(ui->extinctionDoubleSpinBox,"StelSkyDrawer.ext
skyDrawer, SLOT(setAtmospherePressure(double))); inctionCoefficient");
ui->temperatureDoubleSpinBox->setValue(skyDrawer->getAtmosphereTempe
rature());
connect(ui->temperatureDoubleSpinBox, SIGNAL(valueChanged(double)),
skyDrawer, SLOT(setAtmosphereTemperature(double)));
ui->extinctionDoubleSpinBox->setValue(skyDrawer->getExtinctionCoeffi
cient());
connect(ui->extinctionDoubleSpinBox, SIGNAL(valueChanged(double)),
skyDrawer, SLOT(setExtinctionCoefficient(double)));
} }
 End of changes. 3 change blocks. 
14 lines changed or deleted 8 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/