ConfigureOrbitColorsDialog.cpp   ConfigureOrbitColorsDialog.cpp 
skipping to change at line 140 skipping to change at line 140
// Use style sheet for create a nice buttons :) // Use style sheet for create a nice buttons :)
toolButton->setStyleSheet("QToolButton { background-color:" + color. name() + "; }"); toolButton->setStyleSheet("QToolButton { background-color:" + color. name() + "; }");
toolButton->setFixedSize(QSize(18, 18)); toolButton->setFixedSize(QSize(18, 18));
} }
void ConfigureOrbitColorsDialog::askGenericOrbitColor() void ConfigureOrbitColorsDialog::askGenericOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.orbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.orbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGenericOr bits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGene ricOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setOrbitsColor(vColor); GETSTELMODULE(SolarSystem)->setOrbitsColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/sso_or bits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/sso_or bits_color", StelUtils::vec3fToStr(vColor));
ui->colorGenericOrbits->setStyleSheet("QToolButton { backgro und-color:" + c.name() + "; }"); ui->colorGenericOrbits->setStyleSheet("QToolButton { backgro und-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askMajorPlanetsGroupOrbitColor() void ConfigureOrbitColorsDialog::askMajorPlanetsGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.majorPlanetsOrbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.majorPlanetsOrbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsMaj orPlanetsOrbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psMajorPlanetsOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setMajorPlanetsOrbitsColor(vColo r); GETSTELMODULE(SolarSystem)->setMajorPlanetsOrbitsColor(vColo r);
StelApp::getInstance().getSettings()->setValue("color/major_ planet_orbits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/major_ planet_orbits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsMajorPlanetsOrbits->setStyleSheet("QToolButto n { background-color:" + c.name() + "; }"); ui->colorGroupsMajorPlanetsOrbits->setStyleSheet("QToolButto n { background-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askMinorPlanetsGroupOrbitColor() void ConfigureOrbitColorsDialog::askMinorPlanetsGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.minorPlanetsOrbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.minorPlanetsOrbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsMin orPlanetsOrbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psMinorPlanetsOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setMinorPlanetsOrbitsColor(vColo r); GETSTELMODULE(SolarSystem)->setMinorPlanetsOrbitsColor(vColo r);
StelApp::getInstance().getSettings()->setValue("color/minor_ planet_orbits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/minor_ planet_orbits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsMinorPlanetsOrbits->setStyleSheet("QToolButto n { background-color:" + c.name() + "; }"); ui->colorGroupsMinorPlanetsOrbits->setStyleSheet("QToolButto n { background-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askDwarfPlanetsGroupOrbitColor() void ConfigureOrbitColorsDialog::askDwarfPlanetsGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.dwarfPlanetsOrbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.dwarfPlanetsOrbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsDwa rfPlanetsOrbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psDwarfPlanetsOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setDwarfPlanetsOrbitsColor(vColo r); GETSTELMODULE(SolarSystem)->setDwarfPlanetsOrbitsColor(vColo r);
StelApp::getInstance().getSettings()->setValue("color/dwarf_ planet_orbits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/dwarf_ planet_orbits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsDwarfPlanetsOrbits->setStyleSheet("QToolButto n { background-color:" + c.name() + "; }"); ui->colorGroupsDwarfPlanetsOrbits->setStyleSheet("QToolButto n { background-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askCometsGroupOrbitColor() void ConfigureOrbitColorsDialog::askCometsGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.cometsOrbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.cometsOrbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsCom etsOrbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psCometsOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setCometsOrbitsColor(vColor); GETSTELMODULE(SolarSystem)->setCometsOrbitsColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/comet_ orbits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/comet_ orbits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsCometsOrbits->setStyleSheet("QToolButton { ba ckground-color:" + c.name() + "; }"); ui->colorGroupsCometsOrbits->setStyleSheet("QToolButton { ba ckground-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askSednoidsGroupOrbitColor() void ConfigureOrbitColorsDialog::askSednoidsGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.sednoidsOrbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.sednoidsOrbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsSed noidsOrbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psSednoidsOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setSednoidsOrbitsColor(vColor); GETSTELMODULE(SolarSystem)->setSednoidsOrbitsColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/sednoi d_orbits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/sednoi d_orbits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsSednoidsOrbits->setStyleSheet("QToolButton { background-color:" + c.name() + "; }"); ui->colorGroupsSednoidsOrbits->setStyleSheet("QToolButton { background-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askMoonsGroupOrbitColor() void ConfigureOrbitColorsDialog::askMoonsGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.moonsOrbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.moonsOrbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsMoo nsOrbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psMoonsOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setMoonsOrbitsColor(vColor); GETSTELMODULE(SolarSystem)->setMoonsOrbitsColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/moon_o rbits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/moon_o rbits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsMoonsOrbits->setStyleSheet("QToolButton { bac kground-color:" + c.name() + "; }"); ui->colorGroupsMoonsOrbits->setStyleSheet("QToolButton { bac kground-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askCubewanosGroupOrbitColor() void ConfigureOrbitColorsDialog::askCubewanosGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.cubewanosOrbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.cubewanosOrbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsCub ewanosOrbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psCubewanosOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setCubewanosOrbitsColor(vColor); GETSTELMODULE(SolarSystem)->setCubewanosOrbitsColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/cubewa no_orbits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/cubewa no_orbits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsCubewanosOrbits->setStyleSheet("QToolButton { background-color:" + c.name() + "; }"); ui->colorGroupsCubewanosOrbits->setStyleSheet("QToolButton { background-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askPlutinosGroupOrbitColor() void ConfigureOrbitColorsDialog::askPlutinosGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.plutinosOrbitsColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.plutinosOrbitsColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsPlu tinosOrbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psPlutinosOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setPlutinosOrbitsColor(vColor); GETSTELMODULE(SolarSystem)->setPlutinosOrbitsColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/plutin o_orbits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/plutin o_orbits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsPlutinosOrbits->setStyleSheet("QToolButton { background-color:" + c.name() + "; }"); ui->colorGroupsPlutinosOrbits->setStyleSheet("QToolButton { background-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askSDOGroupOrbitColor() void ConfigureOrbitColorsDialog::askSDOGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.scatteredDiskObjectsOrbitsColor")->getValue().value<Ve c3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.scatteredDiskObjectsOrbitsColor")->getValue().value<Ve c3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsSDO Orbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psSDOOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setScatteredDiskObjectsOrbitsCol or(vColor); GETSTELMODULE(SolarSystem)->setScatteredDiskObjectsOrbitsCol or(vColor);
StelApp::getInstance().getSettings()->setValue("color/sdo_or bits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/sdo_or bits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsSDOOrbits->setStyleSheet("QToolButton { backg round-color:" + c.name() + "; }"); ui->colorGroupsSDOOrbits->setStyleSheet("QToolButton { backg round-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askOCOGroupOrbitColor() void ConfigureOrbitColorsDialog::askOCOGroupOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.oortCloudObjectsOrbitsColor")->getValue().value<Vec3f> (); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.oortCloudObjectsOrbitsColor")->getValue().value<Vec3f> ();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorGroupsOCO Orbits->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorGrou psOCOOrbits->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setOortCloudObjectsOrbitsColor(v Color); GETSTELMODULE(SolarSystem)->setOortCloudObjectsOrbitsColor(v Color);
StelApp::getInstance().getSettings()->setValue("color/oco_or bits_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/oco_or bits_color", StelUtils::vec3fToStr(vColor));
ui->colorGroupsOCOOrbits->setStyleSheet("QToolButton { backg round-color:" + c.name() + "; }"); ui->colorGroupsOCOOrbits->setStyleSheet("QToolButton { backg round-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askMercuryOrbitColor() void ConfigureOrbitColorsDialog::askMercuryOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.mercuryOrbitColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.mercuryOrbitColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorMPMercury Orbit->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorMPMe rcuryOrbit->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setMercuryOrbitColor(vColor); GETSTELMODULE(SolarSystem)->setMercuryOrbitColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/mercur y_orbit_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/mercur y_orbit_color", StelUtils::vec3fToStr(vColor));
ui->colorMPMercuryOrbit->setStyleSheet("QToolButton { backgr ound-color:" + c.name() + "; }"); ui->colorMPMercuryOrbit->setStyleSheet("QToolButton { backgr ound-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askVenusOrbitColor() void ConfigureOrbitColorsDialog::askVenusOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.venusOrbitColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.venusOrbitColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorMPVenusOr bit->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorMPVe nusOrbit->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setVenusOrbitColor(vColor); GETSTELMODULE(SolarSystem)->setVenusOrbitColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/venus_ orbit_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/venus_ orbit_color", StelUtils::vec3fToStr(vColor));
ui->colorMPVenusOrbit->setStyleSheet("QToolButton { backgrou nd-color:" + c.name() + "; }"); ui->colorMPVenusOrbit->setStyleSheet("QToolButton { backgrou nd-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askEarthOrbitColor() void ConfigureOrbitColorsDialog::askEarthOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.earthOrbitColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.earthOrbitColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorMPEarthOr bit->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorMPEa rthOrbit->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setEarthOrbitColor(vColor); GETSTELMODULE(SolarSystem)->setEarthOrbitColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/earth_ orbit_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/earth_ orbit_color", StelUtils::vec3fToStr(vColor));
ui->colorMPEarthOrbit->setStyleSheet("QToolButton { backgrou nd-color:" + c.name() + "; }"); ui->colorMPEarthOrbit->setStyleSheet("QToolButton { backgrou nd-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askMarsOrbitColor() void ConfigureOrbitColorsDialog::askMarsOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.marsOrbitColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.marsOrbitColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorMPMarsOrb it->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorMPMa rsOrbit->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setMarsOrbitColor(vColor); GETSTELMODULE(SolarSystem)->setMarsOrbitColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/mars_o rbit_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/mars_o rbit_color", StelUtils::vec3fToStr(vColor));
ui->colorMPMarsOrbit->setStyleSheet("QToolButton { backgroun d-color:" + c.name() + "; }"); ui->colorMPMarsOrbit->setStyleSheet("QToolButton { backgroun d-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askJupiterOrbitColor() void ConfigureOrbitColorsDialog::askJupiterOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.jupiterOrbitColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.jupiterOrbitColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorMPJupiter Orbit->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorMPJu piterOrbit->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setJupiterOrbitColor(vColor); GETSTELMODULE(SolarSystem)->setJupiterOrbitColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/jupite r_orbit_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/jupite r_orbit_color", StelUtils::vec3fToStr(vColor));
ui->colorMPJupiterOrbit->setStyleSheet("QToolButton { backgr ound-color:" + c.name() + "; }"); ui->colorMPJupiterOrbit->setStyleSheet("QToolButton { backgr ound-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askSaturnOrbitColor() void ConfigureOrbitColorsDialog::askSaturnOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.saturnOrbitColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.saturnOrbitColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorMPSaturnO rbit->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorMPSa turnOrbit->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setSaturnOrbitColor(vColor); GETSTELMODULE(SolarSystem)->setSaturnOrbitColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/saturn _orbit_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/saturn _orbit_color", StelUtils::vec3fToStr(vColor));
ui->colorMPSaturnOrbit->setStyleSheet("QToolButton { backgro und-color:" + c.name() + "; }"); ui->colorMPSaturnOrbit->setStyleSheet("QToolButton { backgro und-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askUranusOrbitColor() void ConfigureOrbitColorsDialog::askUranusOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.uranusOrbitColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.uranusOrbitColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorMPUranusO rbit->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorMPUr anusOrbit->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setUranusOrbitColor(vColor); GETSTELMODULE(SolarSystem)->setUranusOrbitColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/uranus _orbit_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/uranus _orbit_color", StelUtils::vec3fToStr(vColor));
ui->colorMPUranusOrbit->setStyleSheet("QToolButton { backgro und-color:" + c.name() + "; }"); ui->colorMPUranusOrbit->setStyleSheet("QToolButton { backgro und-color:" + c.name() + "; }");
} }
} }
void ConfigureOrbitColorsDialog::askNeptuneOrbitColor() void ConfigureOrbitColorsDialog::askNeptuneOrbitColor()
{ {
Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.neptuneOrbitColor")->getValue().value<Vec3f>(); Vec3f vColor = StelApp::getInstance().getStelPropertyManager()->getP roperty("SolarSystem.neptuneOrbitColor")->getValue().value<Vec3f>();
QColor color(0,0,0); QColor color(0,0,0);
color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]); color.setRgbF(vColor.v[0], vColor.v[1], vColor.v[2]);
QColor c = QColorDialog::getColor(color, NULL, q_(ui->colorMPNeptune Orbit->toolTip())); QColor c = QColorDialog::getColor(color, Q_NULLPTR, q_(ui->colorMPNe ptuneOrbit->toolTip()));
if (c.isValid()) if (c.isValid())
{ {
vColor = Vec3f(c.redF(), c.greenF(), c.blueF()); vColor = Vec3f(c.redF(), c.greenF(), c.blueF());
GETSTELMODULE(SolarSystem)->setNeptuneOrbitColor(vColor); GETSTELMODULE(SolarSystem)->setNeptuneOrbitColor(vColor);
StelApp::getInstance().getSettings()->setValue("color/neptun e_orbit_color", StelUtils::vec3fToStr(vColor)); StelApp::getInstance().getSettings()->setValue("color/neptun e_orbit_color", StelUtils::vec3fToStr(vColor));
ui->colorMPNeptuneOrbit->setStyleSheet("QToolButton { backgr ound-color:" + c.name() + "; }"); ui->colorMPNeptuneOrbit->setStyleSheet("QToolButton { backgr ound-color:" + c.name() + "; }");
} }
} }
 End of changes. 19 change blocks. 
19 lines changed or deleted 19 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/