AtmosphereDialog.cpp   AtmosphereDialog.cpp 
/* /*
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#include "StelApp.hpp" #include "StelApp.hpp"
#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()
{ {
ui=new Ui_AtmosphereDialogForm; ui = new Ui_AtmosphereDialogForm;
} }
AtmosphereDialog::~AtmosphereDialog() AtmosphereDialog::~AtmosphereDialog()
{ {
delete ui; delete ui;
} }
void AtmosphereDialog::languageChanged() void AtmosphereDialog::retranslate()
{ {
if (dialog) if (dialog)
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, S connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SL
LOT(languageChanged())); OT(retranslate()));
connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close()) connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close()))
); ;
ui->pressureDoubleSpinBox->setValue(StelApp::getInstance().getCore( const StelSkyDrawer* skyDrawer = StelApp::getInstance().getCore()->g
)->getSkyDrawer()->getAtmospherePressure()); etSkyDrawer();
connect(ui->pressureDoubleSpinBox, SIGNAL(valueChanged(double)), St ui->pressureDoubleSpinBox->setValue(skyDrawer->getAtmospherePressure
elApp::getInstance().getCore()->getSkyDrawer(), SLOT(setAtmospherePressure( ());
double))); connect(ui->pressureDoubleSpinBox, SIGNAL(valueChanged(double)),
ui->temperatureDoubleSpinBox->setValue(StelApp::getInstance().getCo skyDrawer, SLOT(setAtmospherePressure(double)));
re()->getSkyDrawer()->getAtmosphereTemperature()); ui->temperatureDoubleSpinBox->setValue(skyDrawer->getAtmosphereTempe
connect(ui->temperatureDoubleSpinBox, SIGNAL(valueChanged(double)), rature());
StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setAtmosphereTemper connect(ui->temperatureDoubleSpinBox, SIGNAL(valueChanged(double)),
ature(double))); skyDrawer, SLOT(setAtmosphereTemperature(double)));
ui->extinctionDoubleSpinBox->setValue(StelApp::getInstance().getCor ui->extinctionDoubleSpinBox->setValue(skyDrawer->getExtinctionCoeffi
e()->getSkyDrawer()->getExtinctionCoefficient()); cient());
connect(ui->extinctionDoubleSpinBox, SIGNAL(valueChanged(double)), connect(ui->extinctionDoubleSpinBox, SIGNAL(valueChanged(double)),
StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setExtinctionCoeffic skyDrawer, SLOT(setExtinctionCoefficient(double)));
ient(double)));
} }
 End of changes. 7 change blocks. 
28 lines changed or deleted 27 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/