~ubuntu-branches/debian/sid/stellarium/sid

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Tomasz Buchert
  • Date: 2013-08-04 15:06:55 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130804150655-iji0vb5navh3lk13
Tags: 0.12.2-1
* Imported Upstream version 0.12.2
* Added dependency to phonon (to enable video/sound)
* Fixed VCS links
* Removed unused lintian tag (embedded-library glee)
* Dropped obsolete patch
* Update copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
 
130
130
        bool getDisplayMode(void) {return distributionEnabled;}
131
131
        void setDisplayMode(bool b) {distributionEnabled=b;}
 
132
 
132
133
        bool getTimelineMode(void) {return timelineEnabled;}
133
134
        void setTimelineMode(bool b) {timelineEnabled=b;}
134
135
 
 
136
        void setEnableAtStartup(bool b) { enableAtStartup=b; }
 
137
        bool getEnableAtStartup(void) { return enableAtStartup; }
 
138
 
135
139
        //! get the date and time the TLE elements were updated
136
140
        QDateTime getLastUpdate(void) {return lastUpdate;}
137
141
 
160
164
        void setFlagShowExoplanets(bool b) { flagShowExoplanets=b; }
161
165
        bool getFlagShowExoplanets(void) { return flagShowExoplanets; }
162
166
 
 
167
        //! Define whether the button toggling exoplanets should be visible
 
168
        void setFlagShowExoplanetsButton(bool b);
 
169
        bool getFlagShowExoplanetsButton(void) { return flagShowExoplanetsButton; }
 
170
 
163
171
        //! Display a message. This is used for plugin-specific warnings and such
164
172
        void displayMessage(const QString& message, const QString hexColor="#999999");
165
173
        void messageTimeout(void);
171
179
        // if existing, delete Satellites section in main config.ini, then create with default values
172
180
        void restoreDefaultConfigIni(void);
173
181
 
 
182
        // Upgrade config.ini: rename old key settings to new
 
183
        void upgradeConfigIni(void);
 
184
 
174
185
        //! replace the json file with the default from the compiled-in resource
175
186
        void restoreDefaultJsonFile(void);
176
187
 
182
193
        //! @return true on OK, false on failure
183
194
        bool backupJsonFile(bool deleteOriginal=false);
184
195
 
185
 
        //! Get the version of catalog format from the "version" value in the exoplanets.json file
 
196
        //! Get the version of catalog format from the "version of the format" value in the exoplanets.json file
186
197
        //! @return version string, e.g. "1"
187
 
        int getJsonFileVersion(void);
 
198
        int getJsonFileFormatVersion(void);
188
199
 
189
200
        //! parse JSON file and load exoplanets to map
190
201
        QVariantMap loadEPMap(QString path=QString());
201
212
        // variables and functions for the updater
202
213
        UpdateState updateState;
203
214
        QNetworkAccessManager* downloadMgr;
204
 
        QString updateUrl;
205
 
        QString updateFile;     
 
215
        QString updateUrl;      
206
216
        QTimer* updateTimer;
207
217
        QTimer* messageTimer;
208
218
        QList<int> messageIDs;
211
221
        int updateFrequencyHours;
212
222
        bool distributionEnabled;
213
223
        bool timelineEnabled;
 
224
        bool enableAtStartup;
214
225
 
215
226
        QSettings* conf;
216
227
 
217
228
        // GUI
218
229
        ExoplanetsDialog* exoplanetsConfigDialog;
219
230
        bool flagShowExoplanets;
 
231
        bool flagShowExoplanetsButton;
220
232
        QPixmap* OnIcon;
221
233
        QPixmap* OffIcon;
222
234
        QPixmap* GlowIcon;