EquationOfTime.cpp   EquationOfTime.cpp 
skipping to change at line 68 skipping to change at line 68
return info; return info;
} }
EquationOfTime::EquationOfTime() EquationOfTime::EquationOfTime()
: flagShowSolutionEquationOfTime(false) : flagShowSolutionEquationOfTime(false)
, flagUseInvertedValue(false) , flagUseInvertedValue(false)
, flagUseMsFormat(false) , flagUseMsFormat(false)
, flagEnableAtStartup(false) , flagEnableAtStartup(false)
, flagShowEOTButton(false) , flagShowEOTButton(false)
, fontSize(20) , fontSize(20)
, toolbarButton(NULL) , toolbarButton(Q_NULLPTR)
{ {
setObjectName("EquationOfTime"); setObjectName("EquationOfTime");
mainWindow = new EquationOfTimeWindow(); mainWindow = new EquationOfTimeWindow();
StelApp &app = StelApp::getInstance(); StelApp &app = StelApp::getInstance();
conf = app.getSettings(); conf = app.getSettings();
gui = dynamic_cast<StelGui*>(app.getGui()); gui = dynamic_cast<StelGui*>(app.getGui());
} }
EquationOfTime::~EquationOfTime() EquationOfTime::~EquationOfTime()
{ {
skipping to change at line 200 skipping to change at line 200
setFlagEnableAtStartup(conf->value("enable_at_startup", false).toBoo l()); setFlagEnableAtStartup(conf->value("enable_at_startup", false).toBoo l());
setFlagMsFormat(conf->value("flag_use_ms_format", true).toBool()); setFlagMsFormat(conf->value("flag_use_ms_format", true).toBool());
setFlagInvertedValue(conf->value("flag_use_inverted_value", false).t oBool()); setFlagInvertedValue(conf->value("flag_use_inverted_value", false).t oBool());
textColor = StelUtils::strToVec3f(conf->value("text_color", "0,0.5,1 ").toString()); textColor = StelUtils::strToVec3f(conf->value("text_color", "0,0.5,1 ").toString());
setFontSize(conf->value("font_size", 20).toInt()); setFontSize(conf->value("font_size", 20).toInt());
flagShowEOTButton = conf->value("flag_show_button", true).toBool(); flagShowEOTButton = conf->value("flag_show_button", true).toBool();
conf->endGroup(); conf->endGroup();
} }
void EquationOfTime::saveSettingsToConfig(void) void EquationOfTime::saveSettingsToConfig(void) const
{ {
conf->beginGroup("EquationOfTime"); conf->beginGroup("EquationOfTime");
conf->setValue("enable_at_startup", getFlagEnableAtStartup()); conf->setValue("enable_at_startup", getFlagEnableAtStartup());
conf->setValue("flag_use_ms_format", getFlagMsFormat()); conf->setValue("flag_use_ms_format", getFlagMsFormat());
conf->setValue("flag_use_inverted_value", getFlagInvertedValue()); conf->setValue("flag_use_inverted_value", getFlagInvertedValue());
conf->setValue("flag_show_button", getFlagShowEOTButton()); conf->setValue("flag_show_button", getFlagShowEOTButton());
//conf->setValue("text_color", "0,0.5,1"); //conf->setValue("text_color", "0,0.5,1");
conf->setValue("font_size", getFontSize()); conf->setValue("font_size", getFontSize());
skipping to change at line 226 skipping to change at line 226
messageEquation = q_("Equation of Time"); messageEquation = q_("Equation of Time");
// TRANSLATORS: minutes. // TRANSLATORS: minutes.
messageEquationMinutes = qc_("m", "time"); messageEquationMinutes = qc_("m", "time");
// TRANSLATORS: seconds. // TRANSLATORS: seconds.
messageEquationSeconds = qc_("s", "time"); messageEquationSeconds = qc_("s", "time");
} }
void EquationOfTime::setFlagShowEOTButton(bool b) void EquationOfTime::setFlagShowEOTButton(bool b)
{ {
if (b==true) { if (b==true) {
if (toolbarButton==NULL) { if (toolbarButton==Q_NULLPTR) {
// Create the button // Create the button
toolbarButton = new StelButton(NULL, toolbarButton = new StelButton(Q_NULLPTR,
QPixmap(":/EquationOf Time/bt_EquationOfTime_On.png"), QPixmap(":/EquationOf Time/bt_EquationOfTime_On.png"),
QPixmap(":/EquationOf Time/bt_EquationOfTime_Off.png"), QPixmap(":/EquationOf Time/bt_EquationOfTime_Off.png"),
QPixmap(":/graphicGui /glow32x32.png"), QPixmap(":/graphicGui /glow32x32.png"),
"actionShow_EquationO fTime"); "actionShow_EquationO fTime");
} }
gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGr oup"); gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGr oup");
} else { } else {
gui->getButtonBar()->hideButton("actionShow_EquationOfTime") ; gui->getButtonBar()->hideButton("actionShow_EquationOfTime") ;
} }
flagShowEOTButton = b; flagShowEOTButton = b;
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 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/