void AngleMeasure::saveSettings()
{
	conf->beginGroup("AngleMeasure");

	conf->setValue("angle_format_dms", isDmsFormat());
	conf->setValue("show_position_angle", isPaDisplayed());

	conf->endGroup();
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
void AngleMeasure::saveSettings()
{
    conf->beginGroup("AngleMeasure");

    conf->setValue("angle_format_dms", isDmsFormat());
    conf->setValue("show_position_angle", isPaDisplayed());
    conf->setValue("show_position_angle_horizontal", isHorPaDisplayed());
    conf->setValue("show_equatorial", isEquatorial());
    conf->setValue("show_horizontal", isHorizontal());
    conf->setValue("link_horizontal_start_to_sky", isHorizontalStartSkylinked());
    conf->setValue("link_horizontal_end_to_sky", isHorizontalEndSkylinked());

    conf->endGroup();
}