PageFooter::PageFooter(QObject *owner, QGraphicsItem *parent) : BandDesignIntf(LimeReport::BandDesignIntf::PageFooter,xmlTag,owner,parent), m_printOnFirstPage(true), m_printOnLastPage(true) { setBandTypeText( tr("Page Footer") ); setMarkerColor(bandColor()); }
void Pulsars::readSettingsFromConfig(void) { conf->beginGroup("Pulsars"); updateUrl = conf->value("url", "https://stellarium.org/json/pulsars.json").toString(); updateFrequencyDays = conf->value("update_frequency_days", 100).toInt(); lastUpdate = QDateTime::fromString(conf->value("last_update", "2012-05-24T12:00:00").toString(), Qt::ISODate); updatesEnabled = conf->value("updates_enabled", true).toBool(); setDisplayMode(conf->value("distribution_enabled", false).toBool()); setGlitchFlag(conf->value("use_separate_colors", false).toBool()); setFilteredMode(conf->value("filter_enabled", false).toBool()); setFilterValue(conf->value("filter_value", 150.f).toFloat()); setMarkerColor(StelUtils::strToVec3f(conf->value("marker_color", "0.4,0.5,1.0").toString())); setGlitchColor(StelUtils::strToVec3f(conf->value("glitch_color", "0.2,0.3,1.0").toString())); enableAtStartup = conf->value("enable_at_startup", false).toBool(); flagShowPulsarsButton = conf->value("flag_show_pulsars_button", true).toBool(); conf->endGroup(); }
void SetParameterOptionsDialog::chosseMarkerColor() { setMarkerColor( QColorDialog::getColor( this->MarkerColor(), this, tr( "Select color of markers"), QColorDialog::DontUseNativeDialog ) ); update(); }