void AngleMeasure::loadSettings() { conf->beginGroup("AngleMeasure"); useDmsFormat(conf->value("angle_format_dms", false).toBool()); showPositionAngle(conf->value("show_position_angle", false).toBool()); textColor = StelUtils::strToVec3f(conf->value("text_color", "0,0.5,1").toString()); lineColor = StelUtils::strToVec3f(conf->value("line_color", "0,0.5,1").toString()); conf->endGroup(); }
int AngleMeasure::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = StelModule::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 10) qt_static_metacall(this, _c, _id, _a); _id -= 10; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 10) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 10; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = isEnabled(); break; case 1: *reinterpret_cast< bool*>(_v) = isDmsFormat(); break; case 2: *reinterpret_cast< bool*>(_v) = isPaDisplayed(); break; } _id -= 3; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: enableAngleMeasure(*reinterpret_cast< bool*>(_v)); break; case 1: useDmsFormat(*reinterpret_cast< bool*>(_v)); break; case 2: showPositionAngle(*reinterpret_cast< bool*>(_v)); break; } _id -= 3; } else if (_c == QMetaObject::ResetProperty) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 3; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 3; } else if (_c == QMetaObject::RegisterPropertyMetaType) { if (_id < 3) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 3; } #endif // QT_NO_PROPERTIES return _id; }
void AngleMeasure::loadSettings() { enableAngleMeasure(conf->value("AngleMeasure/enable_at_startup", false).toBool()); useDmsFormat(conf->value("AngleMeasure/angle_format_dms", false).toBool()); showPositionAngle(conf->value("AngleMeasure/show_position_angle", false).toBool()); textColor = StelUtils::strToVec3f(conf->value("AngleMeasure/text_color", "0,0.5,1").toString()); lineColor = StelUtils::strToVec3f(conf->value("AngleMeasure/line_color", "0,0.5,1").toString()); horTextColor = StelUtils::strToVec3f(conf->value("AngleMeasure/text_color_horizontal", "0.9,0.6,0.4").toString()); horLineColor = StelUtils::strToVec3f(conf->value("AngleMeasure/line_color_horizontal", "0.9,0.6,0.4").toString()); showPositionAngleHor(conf->value("AngleMeasure/show_position_angle_horizontal", false).toBool()); showEquatorial(conf->value("AngleMeasure/show_equatorial", true).toBool()); showHorizontal(conf->value("AngleMeasure/show_horizontal", false).toBool()); showHorizontalStartSkylinked(conf->value("AngleMeasure/link_horizontal_start_to_sky", false).toBool()); showHorizontalEndSkylinked(conf->value("AngleMeasure/link_horizontal_end_to_sky", false).toBool()); }
void AngleMeasure::loadSettings() { conf->beginGroup("AngleMeasure"); useDmsFormat(conf->value("angle_format_dms", false).toBool()); showPositionAngle(conf->value("show_position_angle", false).toBool()); textColor = StelUtils::strToVec3f(conf->value("text_color", "0,0.5,1").toString()); lineColor = StelUtils::strToVec3f(conf->value("line_color", "0,0.5,1").toString()); horTextColor = StelUtils::strToVec3f(conf->value("text_color_horizontal", "0.9,0.6,0.4").toString()); horLineColor = StelUtils::strToVec3f(conf->value("line_color_horizontal", "0.9,0.6,0.4").toString()); showPositionAngleHor(conf->value("show_position_angle_horizontal", false).toBool()); flagShowEquatorial = conf->value("show_equatorial", true).toBool(); flagShowHorizontal = conf->value("show_horizontal", false).toBool(); flagShowHorizontalStartSkylinked = conf->value("link_horizontal_start_to_sky", false).toBool(); flagShowHorizontalEndSkylinked = conf->value("link_horizontal_end_to_sky", false).toBool(); conf->endGroup(); }