ViewDialog.cpp   ViewDialog.cpp 
skipping to change at line 58 skipping to change at line 58
#include <QFile> #include <QFile>
#include <QFileInfo> #include <QFileInfo>
#include <QSettings> #include <QSettings>
#include <QTimer> #include <QTimer>
#include <QDialog> #include <QDialog>
ViewDialog::ViewDialog() ViewDialog::ViewDialog()
{ {
ui = new Ui_viewDialogForm; ui = new Ui_viewDialogForm;
addRemoveLandscapesDialog = NULL; addRemoveLandscapesDialog = NULL;
atmosphereDialog=NULL; atmosphereDialog=NULL;
} }
ViewDialog::~ViewDialog() ViewDialog::~ViewDialog()
{ {
delete ui; delete ui;
ui=NULL; ui=NULL;
delete addRemoveLandscapesDialog; delete addRemoveLandscapesDialog;
addRemoveLandscapesDialog = NULL; addRemoveLandscapesDialog = NULL;
delete atmosphereDialog; delete atmosphereDialog;
atmosphereDialog = NULL; atmosphereDialog = NULL;
} }
void ViewDialog::retranslate() void ViewDialog::retranslate()
{ {
if (dialog) if (dialog)
{ {
ui->retranslateUi(dialog); ui->retranslateUi(dialog);
setZhrFromControls(); setZhrFromControls();
populateLists(); populateLists();
skipping to change at line 174 skipping to change at line 174
connect(ui->planetOrbitCheckBox, SIGNAL(toggled(bool)), ssmgr, SLOT( setFlagOrbits(bool))); connect(ui->planetOrbitCheckBox, SIGNAL(toggled(bool)), ssmgr, SLOT( setFlagOrbits(bool)));
ui->planetLightSpeedCheckBox->setChecked(ssmgr->getFlagLightTravelTi me()); ui->planetLightSpeedCheckBox->setChecked(ssmgr->getFlagLightTravelTi me());
connect(ui->planetLightSpeedCheckBox, SIGNAL(toggled(bool)), ssmgr, SLOT(setFlagLightTravelTime(bool))); connect(ui->planetLightSpeedCheckBox, SIGNAL(toggled(bool)), ssmgr, SLOT(setFlagLightTravelTime(bool)));
// Shooting stars section // Shooting stars section
MeteorMgr* mmgr = GETSTELMODULE(MeteorMgr); MeteorMgr* mmgr = GETSTELMODULE(MeteorMgr);
Q_ASSERT(mmgr); Q_ASSERT(mmgr);
updateZhrControls(mmgr->getZHR()); updateZhrControls(mmgr->getZHR());
connect(mmgr, SIGNAL(zhrChanged(int)), connect(mmgr, SIGNAL(zhrChanged(int)),
this, SLOT(updateZhrControls(int))); this, SLOT(updateZhrControls(int)));
connect(ui->zhrNone, SIGNAL(clicked()), this, SLOT(setZhrFromControl s())); connect(ui->zhrNone, SIGNAL(clicked()), this, SLOT(setZhrFromControl s()));
connect(ui->zhr10, SIGNAL(clicked()), this, SLOT(setZhrFromControls( ))); connect(ui->zhr10, SIGNAL(clicked()), this, SLOT(setZhrFromControls( )));
connect(ui->zhr80, SIGNAL(clicked()), this, SLOT(setZhrFromControls( ))); connect(ui->zhr80, SIGNAL(clicked()), this, SLOT(setZhrFromControls( )));
connect(ui->zhr10000, SIGNAL(clicked()), this, SLOT(setZhrFromContro ls())); connect(ui->zhr10000, SIGNAL(clicked()), this, SLOT(setZhrFromContro ls()));
connect(ui->zhr144000, SIGNAL(clicked()), this, SLOT(setZhrFromContr ols())); connect(ui->zhr144000, SIGNAL(clicked()), this, SLOT(setZhrFromContr ols()));
// Labels section // Labels section
StarMgr* smgr = GETSTELMODULE(StarMgr); StarMgr* smgr = GETSTELMODULE(StarMgr);
ui->starLabelCheckBox->setChecked(smgr->getFlagLabels()); ui->starLabelCheckBox->setChecked(smgr->getFlagLabels());
connect(ui->starLabelCheckBox, SIGNAL(toggled(bool)), smgr, SLOT(set FlagLabels(bool))); connect(ui->starLabelCheckBox, SIGNAL(toggled(bool)), smgr, SLOT(set FlagLabels(bool)));
StelGuiBase* gui = StelApp::getInstance().getGui(); StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui( ));
NebulaMgr* nmgr = GETSTELMODULE(NebulaMgr); NebulaMgr* nmgr = GETSTELMODULE(NebulaMgr);
ui->nebulaLabelCheckBox->setChecked(nmgr->getFlagHints()); ui->nebulaLabelCheckBox->setChecked(nmgr->getFlagHints());
a = gui->getGuiActions("actionShow_Nebulas"); a = gui->getGuiAction("actionShow_Nebulas");
connect(a, SIGNAL(toggled(bool)), ui->nebulaLabelCheckBox, SLOT(setC hecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->nebulaLabelCheckBox, SLOT(setC hecked(bool)));
connect(ui->nebulaLabelCheckBox, SIGNAL(toggled(bool)), a, SLOT(setC hecked(bool))); connect(ui->nebulaLabelCheckBox, SIGNAL(toggled(bool)), a, SLOT(setC hecked(bool)));
ui->planetLabelCheckBox->setChecked(ssmgr->getFlagLabels()); ui->planetLabelCheckBox->setChecked(ssmgr->getFlagLabels());
connect(ui->planetLabelCheckBox, SIGNAL(toggled(bool)), ssmgr, SLOT( setFlagLabels(bool))); connect(ui->planetLabelCheckBox, SIGNAL(toggled(bool)), ssmgr, SLOT( setFlagLabels(bool)));
ui->starsLabelsHorizontalSlider->setValue((int)(smgr->getLabelsAmoun t()*10.f)); ui->starsLabelsHorizontalSlider->setValue((int)(smgr->getLabelsAmoun t()*10.f));
connect(ui->starsLabelsHorizontalSlider, SIGNAL(valueChanged(int)), this, SLOT(starsLabelsValueChanged(int))); connect(ui->starsLabelsHorizontalSlider, SIGNAL(valueChanged(int)), this, SLOT(starsLabelsValueChanged(int)));
ui->planetsLabelsHorizontalSlider->setValue((int)(ssmgr->getLabelsAm ount()*10.f)); ui->planetsLabelsHorizontalSlider->setValue((int)(ssmgr->getLabelsAm ount()*10.f));
connect(ui->planetsLabelsHorizontalSlider, SIGNAL(valueChanged(int)) , this, SLOT(planetsLabelsValueChanged(int))); connect(ui->planetsLabelsHorizontalSlider, SIGNAL(valueChanged(int)) , this, SLOT(planetsLabelsValueChanged(int)));
ui->nebulasLabelsHorizontalSlider->setValue((int)(nmgr->getHintsAmou nt()*10.f)); ui->nebulasLabelsHorizontalSlider->setValue((int)(nmgr->getHintsAmou nt()*10.f));
connect(ui->nebulasLabelsHorizontalSlider, SIGNAL(valueChanged(int)) , this, SLOT(nebulasLabelsValueChanged(int))); connect(ui->nebulasLabelsHorizontalSlider, SIGNAL(valueChanged(int)) , this, SLOT(nebulasLabelsValueChanged(int)));
// Landscape section // Landscape section
LandscapeMgr* lmgr = GETSTELMODULE(LandscapeMgr); LandscapeMgr* lmgr = GETSTELMODULE(LandscapeMgr);
ui->showGroundCheckBox->setChecked(lmgr->getFlagLandscape()); ui->showGroundCheckBox->setChecked(lmgr->getFlagLandscape());
a = gui->getGuiActions("actionShow_Ground"); a = gui->getGuiAction("actionShow_Ground");
connect(a, SIGNAL(toggled(bool)), ui->showGroundCheckBox, SLOT(setCh ecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showGroundCheckBox, SLOT(setCh ecked(bool)));
connect(ui->showGroundCheckBox, SIGNAL(toggled(bool)), a, SLOT(setCh ecked(bool))); connect(ui->showGroundCheckBox, SIGNAL(toggled(bool)), a, SLOT(setCh ecked(bool)));
ui->showFogCheckBox->setChecked(lmgr->getFlagFog()); ui->showFogCheckBox->setChecked(lmgr->getFlagFog());
connect(ui->showFogCheckBox, SIGNAL(toggled(bool)), lmgr, SLOT(setFl agFog(bool))); connect(ui->showFogCheckBox, SIGNAL(toggled(bool)), lmgr, SLOT(setFl agFog(bool)));
ui->showAtmosphereCheckBox->setChecked(lmgr->getFlagAtmosphere()); ui->showAtmosphereCheckBox->setChecked(lmgr->getFlagAtmosphere());
a = gui->getGuiActions("actionShow_Atmosphere"); a = gui->getGuiAction("actionShow_Atmosphere");
connect(a, SIGNAL(toggled(bool)), ui->showAtmosphereCheckBox, SLOT(s etChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showAtmosphereCheckBox, SLOT(s etChecked(bool)));
connect(ui->showAtmosphereCheckBox, SIGNAL(toggled(bool)), a, SLOT(s etChecked(bool))); connect(ui->showAtmosphereCheckBox, SIGNAL(toggled(bool)), a, SLOT(s etChecked(bool)));
ui->landscapePositionCheckBox->setChecked(lmgr->getFlagLandscapeSets Location()); ui->landscapePositionCheckBox->setChecked(lmgr->getFlagLandscapeSets Location());
connect(ui->landscapePositionCheckBox, SIGNAL(toggled(bool)), lmgr, SLOT(setFlagLandscapeSetsLocation(bool))); connect(ui->landscapePositionCheckBox, SIGNAL(toggled(bool)), lmgr, SLOT(setFlagLandscapeSetsLocation(bool)));
ui->lightPollutionSpinBox->setValue(StelApp::getInstance().getCore() ->getSkyDrawer()->getBortleScale()); ui->lightPollutionSpinBox->setValue(StelApp::getInstance().getCore() ->getSkyDrawer()->getBortleScale());
connect(ui->lightPollutionSpinBox, SIGNAL(valueChanged(int)), lmgr, SLOT(setAtmosphereBortleLightPollution(int))); connect(ui->lightPollutionSpinBox, SIGNAL(valueChanged(int)), lmgr, SLOT(setAtmosphereBortleLightPollution(int)));
connect(ui->lightPollutionSpinBox, SIGNAL(valueChanged(int)), StelAp p::getInstance().getCore()->getSkyDrawer(), SLOT(setBortleScale(int))); connect(ui->lightPollutionSpinBox, SIGNAL(valueChanged(int)), StelAp p::getInstance().getCore()->getSkyDrawer(), SLOT(setBortleScale(int)));
// GZ: changes for refraction // GZ: changes for refraction
//ui->pressureDoubleSpinBox->setValue(StelApp::getInstance().getCor //ui->pressureDoubleSpinBox->setValue(StelApp::getInstance().getCore
e()->getSkyDrawer()->getAtmospherePressure()); ()->getSkyDrawer()->getAtmospherePressure());
//connect(ui->pressureDoubleSpinBox, SIGNAL(valueChanged(double)), //connect(ui->pressureDoubleSpinBox, SIGNAL(valueChanged(double)), S
StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setAtmospherePressur telApp::getInstance().getCore()->getSkyDrawer(), SLOT(setAtmospherePressure
e(double))); (double)));
//ui->temperatureDoubleSpinBox->setValue(StelApp::getInstance().get //ui->temperatureDoubleSpinBox->setValue(StelApp::getInstance().getC
Core()->getSkyDrawer()->getAtmosphereTemperature()); ore()->getSkyDrawer()->getAtmosphereTemperature());
//connect(ui->temperatureDoubleSpinBox, SIGNAL(valueChanged(double) //connect(ui->temperatureDoubleSpinBox, SIGNAL(valueChanged(double))
), StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setAtmosphereTemp , StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setAtmosphereTempe
erature(double))); rature(double)));
//ui->extinctionDoubleSpinBox->setValue(StelApp::getInstance().getC //ui->extinctionDoubleSpinBox->setValue(StelApp::getInstance().getCo
ore()->getSkyDrawer()->getExtinctionCoefficient()); re()->getSkyDrawer()->getExtinctionCoefficient());
//connect(ui->extinctionDoubleSpinBox, SIGNAL(valueChanged(double)) //connect(ui->extinctionDoubleSpinBox, SIGNAL(valueChanged(double)),
, StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setExtinctionCoeff StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setExtinctionCoeffi
icient(double))); cient(double)));
//// instead //// instead
connect(ui->pushButtonAtmosphereDetails, SIGNAL(clicked()), this, S connect(ui->pushButtonAtmosphereDetails, SIGNAL(clicked()), this, SL
LOT(showAtmosphereDialog())); OT(showAtmosphereDialog()));
// GZ: Done // GZ: Done
ui->useAsDefaultLandscapeCheckBox->setChecked(lmgr->getCurrentLandsc apeID()==lmgr->getDefaultLandscapeID()); ui->useAsDefaultLandscapeCheckBox->setChecked(lmgr->getCurrentLandsc apeID()==lmgr->getDefaultLandscapeID());
ui->useAsDefaultLandscapeCheckBox->setEnabled(lmgr->getCurrentLandsc apeID()!=lmgr->getDefaultLandscapeID()); ui->useAsDefaultLandscapeCheckBox->setEnabled(lmgr->getCurrentLandsc apeID()!=lmgr->getDefaultLandscapeID());
connect(ui->useAsDefaultLandscapeCheckBox, SIGNAL(clicked()), this, SLOT(setCurrentLandscapeAsDefault())); connect(ui->useAsDefaultLandscapeCheckBox, SIGNAL(clicked()), this, SLOT(setCurrentLandscapeAsDefault()));
connect(GETSTELMODULE(LandscapeMgr), SIGNAL(landscapesChanged()), th is, SLOT(populateLists())); connect(GETSTELMODULE(LandscapeMgr), SIGNAL(landscapesChanged()), th is, SLOT(populateLists()));
connect(ui->pushButtonAddRemoveLandscapes, SIGNAL(clicked()), this, SLOT(showAddRemoveLandscapesDialog())); connect(ui->pushButtonAddRemoveLandscapes, SIGNAL(clicked()), this, SLOT(showAddRemoveLandscapesDialog()));
// Grid and lines // Grid and lines
GridLinesMgr* glmgr = GETSTELMODULE(GridLinesMgr); GridLinesMgr* glmgr = GETSTELMODULE(GridLinesMgr);
ui->showEquatorLineCheckBox->setChecked(glmgr->getFlagEquatorLine()) ; ui->showEquatorLineCheckBox->setChecked(glmgr->getFlagEquatorLine()) ;
a = gui->getGuiActions("actionShow_Equator_Line"); a = gui->getGuiAction("actionShow_Equator_Line");
connect(a, SIGNAL(toggled(bool)), ui->showEquatorLineCheckBox, SLOT( setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showEquatorLineCheckBox, SLOT( setChecked(bool)));
connect(ui->showEquatorLineCheckBox, SIGNAL(toggled(bool)), a, SLOT( setChecked(bool))); connect(ui->showEquatorLineCheckBox, SIGNAL(toggled(bool)), a, SLOT( setChecked(bool)));
ui->showEclipticLineCheckBox->setChecked(glmgr->getFlagEclipticLine( )); ui->showEclipticLineCheckBox->setChecked(glmgr->getFlagEclipticLine( ));
a = gui->getGuiActions("actionShow_Ecliptic_Line"); a = gui->getGuiAction("actionShow_Ecliptic_Line");
connect(a, SIGNAL(toggled(bool)), ui->showEclipticLineCheckBox, SLOT (setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showEclipticLineCheckBox, SLOT (setChecked(bool)));
connect(ui->showEclipticLineCheckBox, SIGNAL(toggled(bool)), a, SLOT (setChecked(bool))); connect(ui->showEclipticLineCheckBox, SIGNAL(toggled(bool)), a, SLOT (setChecked(bool)));
ui->showMeridianLineCheckBox->setChecked(glmgr->getFlagMeridianLine( )); ui->showMeridianLineCheckBox->setChecked(glmgr->getFlagMeridianLine( ));
a = gui->getGuiActions("actionShow_Meridian_Line"); a = gui->getGuiAction("actionShow_Meridian_Line");
connect(a, SIGNAL(toggled(bool)), ui->showMeridianLineCheckBox, SLOT (setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showMeridianLineCheckBox, SLOT (setChecked(bool)));
connect(ui->showMeridianLineCheckBox, SIGNAL(toggled(bool)), a, SLOT (setChecked(bool))); connect(ui->showMeridianLineCheckBox, SIGNAL(toggled(bool)), a, SLOT (setChecked(bool)));
ui->showHorizonLineCheckBox->setChecked(glmgr->getFlagHorizonLine()) ; ui->showHorizonLineCheckBox->setChecked(glmgr->getFlagHorizonLine()) ;
a = gui->getGuiActions("actionShow_Horizon_Line"); a = gui->getGuiAction("actionShow_Horizon_Line");
connect(a, SIGNAL(toggled(bool)), ui->showHorizonLineCheckBox, SLOT( setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showHorizonLineCheckBox, SLOT( setChecked(bool)));
connect(ui->showHorizonLineCheckBox, SIGNAL(toggled(bool)), a, SLOT( setChecked(bool))); connect(ui->showHorizonLineCheckBox, SIGNAL(toggled(bool)), a, SLOT( setChecked(bool)));
ui->showEquatorialGridCheckBox->setChecked(glmgr->getFlagEquatorGrid ()); ui->showEquatorialGridCheckBox->setChecked(glmgr->getFlagEquatorGrid ());
a = gui->getGuiActions("actionShow_Equatorial_Grid"); a = gui->getGuiAction("actionShow_Equatorial_Grid");
connect(a, SIGNAL(toggled(bool)), ui->showEquatorialGridCheckBox, SL OT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showEquatorialGridCheckBox, SL OT(setChecked(bool)));
connect(ui->showEquatorialGridCheckBox, SIGNAL(toggled(bool)), a, SL OT(setChecked(bool))); connect(ui->showEquatorialGridCheckBox, SIGNAL(toggled(bool)), a, SL OT(setChecked(bool)));
ui->showGalacticGridCheckBox->setChecked(glmgr->getFlagGalacticGrid( )); ui->showGalacticGridCheckBox->setChecked(glmgr->getFlagGalacticGrid( ));
a = gui->getGuiActions("actionShow_Galactic_Grid"); a = gui->getGuiAction("actionShow_Galactic_Grid");
connect(a, SIGNAL(toggled(bool)), ui->showGalacticGridCheckBox, SLOT (setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showGalacticGridCheckBox, SLOT (setChecked(bool)));
connect(ui->showGalacticGridCheckBox, SIGNAL(toggled(bool)), a, SLOT (setChecked(bool))); connect(ui->showGalacticGridCheckBox, SIGNAL(toggled(bool)), a, SLOT (setChecked(bool)));
ui->showGalacticPlaneLineCheckBox->setChecked(glmgr->getFlagGalactic PlaneLine()); ui->showGalacticPlaneLineCheckBox->setChecked(glmgr->getFlagGalactic PlaneLine());
a = gui->getGuiActions("actionShow_Galactic_Plane_Line"); a = gui->getGuiAction("actionShow_Galactic_Plane_Line");
connect(a, SIGNAL(toggled(bool)), ui->showGalacticPlaneLineCheckBox, SLOT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showGalacticPlaneLineCheckBox, SLOT(setChecked(bool)));
connect(ui->showGalacticPlaneLineCheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool))); connect(ui->showGalacticPlaneLineCheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool)));
ui->showAzimuthalGridCheckBox->setChecked(glmgr->getFlagAzimuthalGri d()); ui->showAzimuthalGridCheckBox->setChecked(glmgr->getFlagAzimuthalGri d());
a = gui->getGuiActions("actionShow_Azimuthal_Grid"); a = gui->getGuiAction("actionShow_Azimuthal_Grid");
connect(a, SIGNAL(toggled(bool)), ui->showAzimuthalGridCheckBox, SLO T(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showAzimuthalGridCheckBox, SLO T(setChecked(bool)));
connect(ui->showAzimuthalGridCheckBox, SIGNAL(toggled(bool)), a, SLO T(setChecked(bool))); connect(ui->showAzimuthalGridCheckBox, SIGNAL(toggled(bool)), a, SLO T(setChecked(bool)));
ui->showEquatorialJ2000GridCheckBox->setChecked(glmgr->getFlagEquato rJ2000Grid()); ui->showEquatorialJ2000GridCheckBox->setChecked(glmgr->getFlagEquato rJ2000Grid());
a = gui->getGuiActions("actionShow_Equatorial_J2000_Grid"); a = gui->getGuiAction("actionShow_Equatorial_J2000_Grid");
connect(a, SIGNAL(toggled(bool)), ui->showEquatorialJ2000GridCheckBo x, SLOT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showEquatorialJ2000GridCheckBo x, SLOT(setChecked(bool)));
connect(ui->showEquatorialJ2000GridCheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool))); connect(ui->showEquatorialJ2000GridCheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool)));
ui->showEclipticGridJ2000CheckBox->setChecked(glmgr->getFlagEcliptic J2000Grid()); ui->showEclipticGridJ2000CheckBox->setChecked(glmgr->getFlagEcliptic J2000Grid());
a = gui->getGuiActions("actionShow_Ecliptic_J2000_Grid"); a = gui->getGuiAction("actionShow_Ecliptic_J2000_Grid");
connect(a, SIGNAL(toggled(bool)), ui->showEclipticGridJ2000CheckBox, SLOT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showEclipticGridJ2000CheckBox, SLOT(setChecked(bool)));
connect(ui->showEclipticGridJ2000CheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool))); connect(ui->showEclipticGridJ2000CheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool)));
ui->showCardinalPointsCheckBox->setChecked(lmgr->getFlagCardinalsPoi nts()); ui->showCardinalPointsCheckBox->setChecked(lmgr->getFlagCardinalsPoi nts());
a = gui->getGuiActions("actionShow_Cardinal_Points"); a = gui->getGuiAction("actionShow_Cardinal_Points");
connect(a, SIGNAL(toggled(bool)), ui->showCardinalPointsCheckBox, SL OT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showCardinalPointsCheckBox, SL OT(setChecked(bool)));
connect(ui->showCardinalPointsCheckBox, SIGNAL(toggled(bool)), a, SL OT(setChecked(bool))); connect(ui->showCardinalPointsCheckBox, SIGNAL(toggled(bool)), a, SL OT(setChecked(bool)));
// Constellations // Constellations
ConstellationMgr* cmgr = GETSTELMODULE(ConstellationMgr); ConstellationMgr* cmgr = GETSTELMODULE(ConstellationMgr);
ui->showConstellationLinesCheckBox->setChecked(cmgr->getFlagLines()) ; ui->showConstellationLinesCheckBox->setChecked(cmgr->getFlagLines()) ;
a = gui->getGuiActions("actionShow_Constellation_Lines"); a = gui->getGuiAction("actionShow_Constellation_Lines");
connect(a, SIGNAL(toggled(bool)), ui->showConstellationLinesCheckBox , SLOT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showConstellationLinesCheckBox , SLOT(setChecked(bool)));
connect(ui->showConstellationLinesCheckBox, SIGNAL(toggled(bool)), a , SLOT(setChecked(bool))); connect(ui->showConstellationLinesCheckBox, SIGNAL(toggled(bool)), a , SLOT(setChecked(bool)));
ui->showConstellationLabelsCheckBox->setChecked(cmgr->getFlagLabels( )); ui->showConstellationLabelsCheckBox->setChecked(cmgr->getFlagLabels( ));
a = gui->getGuiActions("actionShow_Constellation_Labels"); a = gui->getGuiAction("actionShow_Constellation_Labels");
connect(a, SIGNAL(toggled(bool)), ui->showConstellationLabelsCheckBo x, SLOT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showConstellationLabelsCheckBo x, SLOT(setChecked(bool)));
connect(ui->showConstellationLabelsCheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool))); connect(ui->showConstellationLabelsCheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool)));
ui->showConstellationBoundariesCheckBox->setChecked(cmgr->getFlagBou ndaries()); ui->showConstellationBoundariesCheckBox->setChecked(cmgr->getFlagBou ndaries());
a = gui->getGuiActions("actionShow_Constellation_Boundaries"); a = gui->getGuiAction("actionShow_Constellation_Boundaries");
connect(a, SIGNAL(toggled(bool)), ui->showConstellationBoundariesChe ckBox, SLOT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showConstellationBoundariesChe ckBox, SLOT(setChecked(bool)));
connect(ui->showConstellationBoundariesCheckBox, SIGNAL(toggled(bool )), a, SLOT(setChecked(bool))); connect(ui->showConstellationBoundariesCheckBox, SIGNAL(toggled(bool )), a, SLOT(setChecked(bool)));
ui->showConstellationArtCheckBox->setChecked(cmgr->getFlagArt()); ui->showConstellationArtCheckBox->setChecked(cmgr->getFlagArt());
a = gui->getGuiActions("actionShow_Constellation_Art"); a = gui->getGuiAction("actionShow_Constellation_Art");
connect(a, SIGNAL(toggled(bool)), ui->showConstellationArtCheckBox, SLOT(setChecked(bool))); connect(a, SIGNAL(toggled(bool)), ui->showConstellationArtCheckBox, SLOT(setChecked(bool)));
connect(ui->showConstellationArtCheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool))); connect(ui->showConstellationArtCheckBox, SIGNAL(toggled(bool)), a, SLOT(setChecked(bool)));
ui->constellationArtBrightnessSpinBox->setValue(cmgr->getArtIntensit y()); ui->constellationArtBrightnessSpinBox->setValue(cmgr->getArtIntensit y());
connect(ui->constellationArtBrightnessSpinBox, SIGNAL(valueChanged(d ouble)), cmgr, SLOT(setArtIntensity(double))); connect(ui->constellationArtBrightnessSpinBox, SIGNAL(valueChanged(d ouble)), cmgr, SLOT(setArtIntensity(double)));
// Starlore // Starlore
connect(ui->useAsDefaultSkyCultureCheckBox, SIGNAL(clicked()), this, SLOT(setCurrentCultureAsDefault())); connect(ui->useAsDefaultSkyCultureCheckBox, SIGNAL(clicked()), this, SLOT(setCurrentCultureAsDefault()));
const bool b = StelApp::getInstance().getSkyCultureMgr().getCurrentS kyCultureID()==StelApp::getInstance().getSkyCultureMgr().getDefaultSkyCultu reID(); const bool b = StelApp::getInstance().getSkyCultureMgr().getCurrentS kyCultureID()==StelApp::getInstance().getSkyCultureMgr().getDefaultSkyCultu reID();
ui->useAsDefaultSkyCultureCheckBox->setChecked(b); ui->useAsDefaultSkyCultureCheckBox->setChecked(b);
skipping to change at line 531 skipping to change at line 531
void ViewDialog::showAddRemoveLandscapesDialog() void ViewDialog::showAddRemoveLandscapesDialog()
{ {
if(addRemoveLandscapesDialog == NULL) if(addRemoveLandscapesDialog == NULL)
addRemoveLandscapesDialog = new AddRemoveLandscapesDialog(); addRemoveLandscapesDialog = new AddRemoveLandscapesDialog();
addRemoveLandscapesDialog->setVisible(true); addRemoveLandscapesDialog->setVisible(true);
} }
void ViewDialog::showAtmosphereDialog() void ViewDialog::showAtmosphereDialog()
{ {
if(atmosphereDialog == NULL) if(atmosphereDialog == NULL)
atmosphereDialog = new AtmosphereDialog(); atmosphereDialog = new AtmosphereDialog();
//ui->temperatureDoubleSpinBox->setValue(StelApp::getInstance().get //ui->temperatureDoubleSpinBox->setValue(StelApp::getInstance().getC
Core()->getSkyDrawer()->getAtmosphereTemperature()); ore()->getSkyDrawer()->getAtmosphereTemperature());
//ui->extinctionDoubleSpinBox->setValue(StelApp::getInstance().getC //ui->extinctionDoubleSpinBox->setValue(StelApp::getInstance().getCo
ore()->getSkyDrawer()->getExtinctionCoefficient()); re()->getSkyDrawer()->getExtinctionCoefficient());
//ui->pressureDoubleSpinBox->setValue(StelApp::getInstance().getCor //ui->pressureDoubleSpinBox->setValue(StelApp::getInstance().getCore
e()->getSkyDrawer()->getAtmospherePressure()); ()->getSkyDrawer()->getAtmospherePressure());
atmosphereDialog->setVisible(true); atmosphereDialog->setVisible(true);
} }
void ViewDialog::setZhrFromControls() void ViewDialog::setZhrFromControls()
{ {
MeteorMgr* mmgr = GETSTELMODULE(MeteorMgr); MeteorMgr* mmgr = GETSTELMODULE(MeteorMgr);
int zhr=-1; int zhr=-1;
if (ui->zhrNone->isChecked()) if (ui->zhrNone->isChecked())
{ {
mmgr->setFlagShow(false); mmgr->setFlagShow(false);
zhr = 0; zhr = 0;
 End of changes. 25 change blocks. 
51 lines changed or deleted 51 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/