~oopsdude/stellarium/stellarium-whatsuptonight

« back to all changes in this revision

Viewing changes to plugins/Exoplanets/src/Exoplanets.cpp

  • Committer: Alexander Wolf
  • Date: 2012-11-23 15:39:10 UTC
  • Revision ID: alex.v.wolf@gmail.com-20121123153910-taijk93qz6aaaste
added distribution mode for exoplanets

Show diffs side-by-side

added added

removed removed

Lines of Context:
539
539
        // delete all existing Exoplanets settings...
540
540
        conf->remove("");
541
541
 
 
542
        conf->setValue("distribution_enabled", false);
542
543
        conf->setValue("updates_enabled", true);
543
544
        conf->setValue("flag_show_exoplanets", false);
544
545
        conf->setValue("url", "http://stellarium.org/json/exoplanets.json");
554
555
        updateFrequencyHours = conf->value("update_frequency_hours", 72).toInt();
555
556
        lastUpdate = QDateTime::fromString(conf->value("last_update", "2012-05-24T12:00:00").toString(), Qt::ISODate);
556
557
        updatesEnabled = conf->value("updates_enabled", true).toBool();
 
558
        distributionEnabled = conf->value("distribution_enabled", false).toBool();
557
559
        flagShowExoplanets = conf->value("flag_show_exoplanets", false).toBool();
558
560
 
559
561
        conf->endGroup();
566
568
        conf->setValue("url", updateUrl);
567
569
        conf->setValue("update_frequency_hours", updateFrequencyHours);
568
570
        conf->setValue("updates_enabled", updatesEnabled );
 
571
        conf->setValue("distribution_enabled", distributionEnabled);
569
572
        conf->setValue("flag_show_exoplanets", flagShowExoplanets);
570
573
 
571
574
        conf->endGroup();