120
124
*************************************************************************/
121
125
void TextUserInterface::init()
123
qDebug() << "init called for TextUserInterface";
124
TuiNode* m1 = new TuiNode("1. Set Location");
125
TuiNode* m1_1 = new TuiNodeDouble("1.1 Latitude",
127
//Reusing translations: The translators will have to do less work if the
128
//strings used here match strings used elsewhere. Do not change strings
129
//unless you have a good reason. --BM
131
StelCore* core = StelApp::getInstance().getCore();
132
//Reusing strings from the location dialog
133
TuiNode* m1 = new TuiNode(N_("Location"));
134
TuiNode* m1_1 = new TuiNodeDouble(N_("Latitude:"),
126
135
this, SLOT(setLatitude(double)),
127
136
getLatitude(), -180, 180, 0.5, m1);
128
TuiNode* m1_2 = new TuiNodeDouble("1.2 Longitude",
137
TuiNode* m1_2 = new TuiNodeDouble(N_("Longitude:"),
129
138
this, SLOT(setLongitude(double)),
130
139
getLongitude(), -180, 180, 0.5, m1, m1_1);
131
TuiNode* m1_3 = new TuiNodeInt("1.3 Altitude",
140
TuiNode* m1_3 = new TuiNodeInt(N_("Altitude:"),
132
141
this, SLOT(setAltitude(int)),
133
StelApp::getInstance().getCore()->getCurrentLocation().altitude,
142
core->getCurrentLocation().altitude,
134
143
-200, 200000, 100, m1, m1_2);
135
TuiNode* m1_4 = new TuiNodeEnum("1.4 Solar System Body",
145
// TODO: Now new Solar System bodies can be added at runtime, so the list
146
// needs to be populated every time this happens. --BM
147
SolarSystem* solarSystem = GETSTELMODULE(SolarSystem);
148
TuiNode* m1_4 = new TuiNodeEnum(N_("Solar System body"),
136
149
this, SLOT(setHomePlanet(QString)),
137
GETSTELMODULE(SolarSystem)->getAllPlanetEnglishNames(),
138
StelApp::getInstance().getCore()->getCurrentLocation().planetName,
150
solarSystem->getAllPlanetEnglishNames(),
151
core->getCurrentLocation().planetName,
140
m1_1->setPrevNode(m1_4);
141
153
m1_1->setNextNode(m1_2);
142
154
m1_2->setNextNode(m1_3);
143
155
m1_3->setNextNode(m1_4);
144
156
m1_4->setNextNode(m1_1);
157
m1_1->loopToTheLast();
145
158
m1->setChildNode(m1_1);
147
TuiNode* m2 = new TuiNode("2. Date & Time", NULL, m1);
160
TuiNode* m2 = new TuiNode(N_("Date and Time"), NULL, m1);
148
161
m1->setNextNode(m2);
149
TuiNode* m2_1 = new TuiNodeDateTime("2.1 Sky Time",
150
StelApp::getInstance().getCore(),
162
TuiNode* m2_1 = new TuiNodeDateTime(N_("Current date/time"),
151
164
SLOT(setJDay(double)),
152
StelApp::getInstance().getCore()->getJDay(),
154
TuiNode* m2_2 = new TuiNode("2.2 Set Time Zone", m2, m2_1);
155
TuiNode* m2_3 = new TuiNode("2.3 Day Keys", m2, m2_2);
156
TuiNode* m2_4 = new TuiNodeDateTime("2.4 Preset Sky Time",
157
StelApp::getInstance().getCore(),
167
TuiNode* m2_2 = new TuiNode(N_("Set time zone"), m2, m2_1);
168
TuiNode* m2_3 = new TuiNode(N_("Day keys"), m2, m2_2);
169
TuiNode* m2_4 = new TuiNodeDateTime(N_("Startup date/time preset"),
158
171
SLOT(setPresetSkyTime(double)),
159
StelApp::getInstance().getCore()->getPresetSkyTime(),
172
core->getPresetSkyTime(),
161
174
QStringList startupModes;
162
startupModes << "system" << "preset";
163
TuiNode* m2_5 = new TuiNodeEnum("2.5 Sky Time at Startup",
164
this, SLOT(setStartupDateMode(QString)), startupModes,
165
StelApp::getInstance().getCore()->getStartupTimeMode(),
175
// TRANSLATORS: The current system time is used at startup
176
startupModes << N_("system");
177
// TRANSLATORS: A pre-set time is used at startup
178
startupModes << N_("preset");
179
TuiNode* m2_5 = new TuiNodeEnum(N_("Startup date and time"),
180
this, SLOT(setStartupDateMode(QString)),
182
core->getStartupTimeMode(),
184
StelLocaleMgr& localeMgr = StelApp::getInstance().getLocaleMgr();
167
185
QStringList dateFormats;
168
dateFormats << "system_default" << "mmddyyyy" << "ddmmyyyy" << "yyyymmdd";
169
TuiNode* m2_6 = new TuiNodeEnum("2.6 Date Display Format",
170
this, SLOT(setDateFormat(QString)), dateFormats,
171
StelApp::getInstance().getLocaleMgr().getDateFormatStr(),
186
dateFormats << "system_default" << N_("mmddyyyy") << N_("ddmmyyyy") << N_("yyyymmdd");
187
TuiNode* m2_6 = new TuiNodeEnum(N_("Date display format"), //Used in Time Zone plugin
188
this, SLOT(setDateFormat(QString)),
190
localeMgr.getDateFormatStr(),
173
192
QStringList timeFormats;
174
timeFormats << "system_default" << "12h" << "24h";
175
TuiNode* m2_7 = new TuiNodeEnum("2.7 Time Display Format",
176
this, SLOT(setTimeFormat(QString)), timeFormats,
177
StelApp::getInstance().getLocaleMgr().getTimeFormatStr(),
193
timeFormats << "system_default";
194
// TRANSLATORS: 12-hour time format
195
timeFormats << N_("12h");
196
// TRANSLATORS: 24-hour time format
197
timeFormats << N_("24h");
198
TuiNode* m2_7 = new TuiNodeEnum(N_("Time display format"), //Used in Time Zone plugin
199
this, SLOT(setTimeFormat(QString)),
201
localeMgr.getTimeFormatStr(),
179
m2_1->setPrevNode(m2_7);
180
203
m2_1->setNextNode(m2_2);
181
204
m2_2->setNextNode(m2_3);
182
205
m2_3->setNextNode(m2_4);
184
207
m2_5->setNextNode(m2_6);
185
208
m2_6->setNextNode(m2_7);
186
209
m2_7->setNextNode(m2_1);
210
m2_1->loopToTheLast();
187
211
m2->setChildNode(m2_1);
189
TuiNode* m3 = new TuiNode("3. General", NULL, m2);
213
TuiNode* m3 = new TuiNode(N_("General"), NULL, m2);
190
214
m2->setNextNode(m3);
191
TuiNode* m3_1 = new TuiNodeEnum("3.1 Sky Culture",
215
StelSkyCultureMgr& skyCultureMgr = StelApp::getInstance().getSkyCultureMgr();
216
TuiNode* m3_1 = new TuiNodeEnum(N_("Starlore"),
193
218
SLOT(setSkyCulture(QString)),
194
StelApp::getInstance().getSkyCultureMgr().getSkyCultureListI18(),
195
StelApp::getInstance().getSkyCultureMgr().getCurrentSkyCultureNameI18(),
219
skyCultureMgr.getSkyCultureListI18(),
220
skyCultureMgr.getCurrentSkyCultureNameI18(),
197
TuiNode* m3_2 = new TuiNodeEnum("3.2 Language",
222
TuiNode* m3_2 = new TuiNodeEnum(N_("Language"),
199
224
SLOT(setAppLanguage(QString)),
200
225
StelTranslator::globalTranslator.getAvailableLanguagesNamesNative(StelFileMgr::getLocaleDir()),
201
StelTranslator::iso639_1CodeToNativeName(StelApp::getInstance().getLocaleMgr().getAppLanguage()),
226
StelTranslator::iso639_1CodeToNativeName(localeMgr.getAppLanguage()),
203
m3_1->setPrevNode(m3_2);
204
228
m3_1->setNextNode(m3_2);
205
229
m3_2->setNextNode(m3_1);
230
m3_1->loopToTheLast();
206
231
m3->setChildNode(m3_1);
208
TuiNode* m4 = new TuiNode("4. Stars", NULL, m3);
233
TuiNode* m4 = new TuiNode(N_("Stars"), NULL, m3);
209
234
m3->setNextNode(m4);
210
TuiNode* m4_1 = new TuiNodeBool("4.1 Show Stars",
211
GETSTELMODULE(StarMgr), SLOT(setFlagStars(bool)),
212
GETSTELMODULE(StarMgr)->getFlagStars(), m4);
213
TuiNode* m4_2 = new TuiNodeDouble("4.2 Star Relative Scale",
214
StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setRelativeStarScale(double)),
215
StelApp::getInstance().getCore()->getSkyDrawer()->getRelativeStarScale(), 0.0, 5., 0.15,
235
StarMgr* starMgr = GETSTELMODULE(StarMgr);
236
TuiNode* m4_1 = new TuiNodeBool(N_("Show stars"),
237
starMgr, SLOT(setFlagStars(bool)),
238
starMgr->getFlagStars(), m4);
239
StelSkyDrawer* skyDrawer = core->getSkyDrawer();
240
TuiNode* m4_2 = new TuiNodeDouble(N_("Relative scale:"),
242
SLOT(setRelativeStarScale(double)),
243
skyDrawer->getRelativeStarScale(),
217
TuiNode* m4_3 = new TuiNodeDouble("4.3 Absolute Star Scale",
218
StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setAbsoluteStarScale(double)),
219
StelApp::getInstance().getCore()->getSkyDrawer()->getAbsoluteStarScale(), 0.0, 9., 0.15,
246
TuiNode* m4_3 = new TuiNodeDouble(N_("Absolute scale:"),
248
SLOT(setAbsoluteStarScale(double)),
249
skyDrawer->getAbsoluteStarScale(),
221
TuiNode* m4_4 = new TuiNodeDouble("4.4 Twinkling",
222
StelApp::getInstance().getCore()->getSkyDrawer(), SLOT(setTwinkleAmount(double)),
223
StelApp::getInstance().getCore()->getSkyDrawer()->getTwinkleAmount(), 0.0, 1.5, 0.1,
252
TuiNode* m4_4 = new TuiNodeDouble(N_("Twinkle:"),
253
skyDrawer, SLOT(setTwinkleAmount(double)),
254
skyDrawer->getTwinkleAmount(),
225
m4_1->setPrevNode(m4_4);
226
257
m4_1->setNextNode(m4_2);
227
258
m4_2->setNextNode(m4_3);
228
259
m4_3->setNextNode(m4_4);
229
260
m4_4->setNextNode(m4_1);
261
m4_1->loopToTheLast();
230
262
m4->setChildNode(m4_1);
232
TuiNode* m5 = new TuiNode("5. Colors", NULL, m4);
264
TuiNode* m5 = new TuiNode(N_("Colors"), NULL, m4);
233
265
m4->setNextNode(m5);
234
TuiNode* m5_1 = new TuiNodeColor("5.1 Constellation Lines",
235
GETSTELMODULE(ConstellationMgr), SLOT(setLinesColor(Vec3f)),
236
GETSTELMODULE(ConstellationMgr)->getLinesColor(),
266
ConstellationMgr* constellationMgr = GETSTELMODULE(ConstellationMgr);
267
TuiNode* m5_1 = new TuiNodeColor(N_("Constellation lines"),
269
SLOT(setLinesColor(Vec3f)),
270
constellationMgr->getLinesColor(),
238
TuiNode* m5_2 = new TuiNodeColor("5.2 Constellation Names",
239
GETSTELMODULE(ConstellationMgr), SLOT(setLabelsColor(Vec3f)),
240
GETSTELMODULE(ConstellationMgr)->getLabelsColor(),
272
TuiNode* m5_2 = new TuiNodeColor(N_("Constellation labels"),
274
SLOT(setNamesColor(Vec3f)),
275
constellationMgr->getNamesColor(),
242
TuiNode* m5_3 = new TuiNode("5.3 Constellation Art", m5, m5_2);
243
TuiNode* m5_4 = new TuiNodeColor("5.4 Constellation Boundaries",
244
GETSTELMODULE(ConstellationMgr), SLOT(setBoundariesColor(Vec3f)),
245
GETSTELMODULE(ConstellationMgr)->getBoundariesColor(),
277
TuiNode* m5_3 = new TuiNode(N_("Constellation art"), m5, m5_2);
278
TuiNode* m5_4 = new TuiNodeColor(N_("Constellation boundaries"),
280
SLOT(setBoundariesColor(Vec3f)),
281
constellationMgr->getBoundariesColor(),
247
TuiNode* m5_5 = new TuiNodeDouble("5.5 Constellation Art Intensity",
248
GETSTELMODULE(ConstellationMgr), SLOT(setArtIntensity(double)),
249
GETSTELMODULE(ConstellationMgr)->getArtIntensity(), 0.0, 1.0, 0.05,
283
// TRANSLATORS: Refers to constellation art
284
TuiNode* m5_5 = new TuiNodeDouble(N_("Art brightness:"),
286
SLOT(setArtIntensity(double)),
287
constellationMgr->getArtIntensity(),
251
TuiNode* m5_6 = new TuiNodeColor("5.6 Cardinal Points",
252
GETSTELMODULE(LandscapeMgr), SLOT(setColorCardinalPoints(Vec3f)),
253
GETSTELMODULE(LandscapeMgr)->getColorCardinalPoints(),
290
LandscapeMgr* landscapeMgr = GETSTELMODULE(LandscapeMgr);
291
TuiNode* m5_6 = new TuiNodeColor(N_("Cardinal points"),
293
SLOT(setColorCardinalPoints(Vec3f)),
294
landscapeMgr->getColorCardinalPoints(),
255
TuiNode* m5_7 = new TuiNodeColor("5.7 Planet Names",
256
GETSTELMODULE(SolarSystem), SLOT(setLabelsColor(Vec3f)),
257
GETSTELMODULE(SolarSystem)->getLabelsColor(),
296
TuiNode* m5_7 = new TuiNodeColor(N_("Planet labels"),
297
solarSystem, SLOT(setLabelsColor(Vec3f)),
298
solarSystem->getLabelsColor(),
259
TuiNode* m5_8 = new TuiNodeColor("5.8 Planet Orbits",
260
GETSTELMODULE(SolarSystem), SLOT(setOrbitsColor(Vec3f)),
261
GETSTELMODULE(SolarSystem)->getOrbitsColor(),
300
TuiNode* m5_8 = new TuiNodeColor(N_("Planet orbits"),
301
solarSystem, SLOT(setOrbitsColor(Vec3f)),
302
solarSystem->getOrbitsColor(),
263
TuiNode* m5_9 = new TuiNodeColor("5.9 Planet Trails",
264
GETSTELMODULE(SolarSystem), SLOT(setTrailsColor(Vec3f)),
265
GETSTELMODULE(SolarSystem)->getTrailsColor(),
304
TuiNode* m5_9 = new TuiNodeColor(N_("Planet trails"),
305
solarSystem, SLOT(setTrailsColor(Vec3f)),
306
solarSystem->getTrailsColor(),
267
TuiNode* m5_10 = new TuiNodeColor("5.10 Meridian Line",
268
GETSTELMODULE(GridLinesMgr), SLOT(setColorMeridianLine(Vec3f)),
269
GETSTELMODULE(GridLinesMgr)->getColorMeridianLine(),
308
GridLinesMgr* gridLinesMgr = GETSTELMODULE(GridLinesMgr);
309
TuiNode* m5_10 = new TuiNodeColor(N_("Meridian line"),
311
SLOT(setMeridianLineColor(Vec3f)),
312
gridLinesMgr->getMeridianLineColor(),
271
TuiNode* m5_11 = new TuiNodeColor("5.11 Azimuthal Grid",
272
GETSTELMODULE(GridLinesMgr), SLOT(setColorAzimuthalGrid(Vec3f)),
273
GETSTELMODULE(GridLinesMgr)->getColorAzimuthalGrid(),
314
TuiNode* m5_11 = new TuiNodeColor(N_("Azimuthal grid"),
316
SLOT(setAzimuthalGridColor(Vec3f)),
317
gridLinesMgr->getAzimuthalGridColor(),
275
TuiNode* m5_12 = new TuiNodeColor("5.12 Equatorial Grid",
276
GETSTELMODULE(GridLinesMgr), SLOT(setColorEquatorGrid(Vec3f)),
277
GETSTELMODULE(GridLinesMgr)->getColorEquatorGrid(),
319
TuiNode* m5_12 = new TuiNodeColor(N_("Equatorial grid"),
321
SLOT(setEquatorGridColor(Vec3f)),
322
gridLinesMgr->getEquatorGridColor(),
279
TuiNode* m5_13 = new TuiNodeColor("5.13 Equatorial J2000 Grid",
280
GETSTELMODULE(GridLinesMgr), SLOT(setColorEquatorJ2000Grid(Vec3f)),
281
GETSTELMODULE(GridLinesMgr)->getColorEquatorJ2000Grid(),
324
TuiNode* m5_13 = new TuiNodeColor(N_("Equatorial J2000 grid"),
326
SLOT(setEquatorJ2000GridColor(Vec3f)),
327
gridLinesMgr->getEquatorJ2000GridColor(),
283
TuiNode* m5_14 = new TuiNodeColor("5.14 Equator Line",
284
GETSTELMODULE(GridLinesMgr), SLOT(setColorEquatorLine(Vec3f)),
285
GETSTELMODULE(GridLinesMgr)->getColorEquatorLine(),
329
TuiNode* m5_14 = new TuiNodeColor(N_("Equator line"),
331
SLOT(setEquatorLineColor(Vec3f)),
332
gridLinesMgr->getEquatorLineColor(),
287
TuiNode* m5_15 = new TuiNodeColor("5.15 Ecliptic Line",
288
GETSTELMODULE(GridLinesMgr), SLOT(setColorEclipticLine(Vec3f)),
289
GETSTELMODULE(GridLinesMgr)->getColorEclipticLine(),
291
TuiNode* m5_16 = new TuiNodeColor("5.16 Nebula Names",
292
GETSTELMODULE(NebulaMgr), SLOT(setLabelsColor(Vec3f)),
293
GETSTELMODULE(NebulaMgr)->getLabelsColor(),
295
TuiNode* m5_17 = new TuiNodeColor("5.17 Nebubla Hints",
296
GETSTELMODULE(NebulaMgr), SLOT(setCirclesColor(Vec3f)),
297
GETSTELMODULE(NebulaMgr)->getCirclesColor(),
299
m5_1->setPrevNode(m5_17);
334
TuiNode* m5_15 = new TuiNodeColor(N_("Ecliptic line"),
336
SLOT(setEclipticLineColor(Vec3f)),
337
gridLinesMgr->getEclipticLineColor(),
339
NebulaMgr* nebulaMgr = GETSTELMODULE(NebulaMgr);
340
TuiNode* m5_16 = new TuiNodeColor(N_("Nebula names"),
341
nebulaMgr, SLOT(setLabelsColor(Vec3f)),
342
nebulaMgr->getLabelsColor(),
344
TuiNode* m5_17 = new TuiNodeColor(N_("Nebula hints"),
345
nebulaMgr, SLOT(setCirclesColor(Vec3f)),
346
nebulaMgr->getCirclesColor(),
348
TuiNode* m5_18 = new TuiNodeColor(N_("Horizon line"),
350
SLOT(setHorizonLineColor(Vec3f)),
351
gridLinesMgr->getHorizonLineColor(),
353
TuiNode* m5_19 = new TuiNodeColor(N_("Galactic grid"),
355
SLOT(setGalacticGridColor(Vec3f)),
356
gridLinesMgr->getGalacticGridColor(),
358
TuiNode* m5_20 = new TuiNodeColor(N_("Galactic plane line"),
360
SLOT(setGalacticPlaneLineColor(Vec3f)),
361
gridLinesMgr->getGalacticPlaneLineColor(),
300
364
m5_1->setNextNode(m5_2);
301
365
m5_2->setNextNode(m5_3);
302
366
m5_3->setNextNode(m5_4);
313
377
m5_14->setNextNode(m5_15);
314
378
m5_15->setNextNode(m5_16);
315
379
m5_16->setNextNode(m5_17);
316
m5_17->setNextNode(m5_1);
380
m5_17->setNextNode(m5_18);
381
m5_18->setNextNode(m5_19);
382
m5_19->setNextNode(m5_20);
383
m5_20->setNextNode(m5_1);
384
m5_1->loopToTheLast();
317
385
m5->setChildNode(m5_1);
319
TuiNode* m6 = new TuiNode("6. Effects", NULL, m5);
387
TuiNode* m6 = new TuiNode(N_("Effects"), NULL, m5);
320
388
m5->setNextNode(m6);
321
TuiNode* m6_1 = new TuiNodeInt("6.1 Light Pollution Level",
322
GETSTELMODULE(LandscapeMgr), SLOT(setAtmosphereBortleLightPollution(int)),
389
TuiNode* m6_1 = new TuiNodeInt(N_("Light pollution:"),
391
SLOT(setAtmosphereBortleLightPollution(int)),
325
TuiNode* m6_2 = new TuiNodeEnum("6.2 Landscape",
326
GETSTELMODULE(LandscapeMgr),
394
TuiNode* m6_2 = new TuiNodeEnum(N_("Landscape"),
327
396
SLOT(setCurrentLandscapeName(QString)),
328
GETSTELMODULE(LandscapeMgr)->getAllLandscapeNames(),
329
GETSTELMODULE(LandscapeMgr)->getCurrentLandscapeName(),
397
landscapeMgr->getAllLandscapeNames(),
398
landscapeMgr->getCurrentLandscapeName(),
331
TuiNode* m6_3 = new TuiNodeBool("6.3 Manual Zoom",
332
GETSTELMODULE(StelMovementMgr), SLOT(setFlagAutoZoomOutResetsDirection(bool)),
333
GETSTELMODULE(StelMovementMgr)->getFlagAutoZoomOutResetsDirection(),
400
StelMovementMgr* movementMgr = GETSTELMODULE(StelMovementMgr);
401
TuiNode* m6_3 = new TuiNodeBool(N_("Manual zoom"),
403
SLOT(setFlagAutoZoomOutResetsDirection(bool)),
404
movementMgr->getFlagAutoZoomOutResetsDirection(),
335
TuiNode* m6_4 = new TuiNode("6.4 Magnitude Scaling Multiplier", m6, m6_3);
336
TuiNode* m6_5 = new TuiNodeFloat("6.5 Milky Way Intensity",
337
GETSTELMODULE(MilkyWay), SLOT(setIntensity(float)),
338
GETSTELMODULE(MilkyWay)->getIntensity(), 0, 10.0, 0.1,
406
TuiNode* m6_4 = new TuiNode(N_("Magnitude scaling multiplier"),
408
TuiNode* m6_5 = new TuiNodeFloat(N_("Milky Way intensity:"),
409
GETSTELMODULE(MilkyWay),
410
SLOT(setIntensity(float)),
411
GETSTELMODULE(MilkyWay)->getIntensity(),
340
TuiNode* m6_6 = new TuiNode("6.6 Nebula Label Frequency", m6, m6_5);
341
TuiNode* m6_7 = new TuiNodeFloat("6.7 Zoom Duration",
342
GETSTELMODULE(StelMovementMgr), SLOT(setAutoMoveDuration(float)),
343
GETSTELMODULE(StelMovementMgr)->getAutoMoveDuration(), 0, 20.0, 0.1,
414
TuiNode* m6_6 = new TuiNode(N_("Nebula label frequency:"), m6, m6_5);
415
TuiNode* m6_7 = new TuiNodeFloat(N_("Zoom duration:"),
417
SLOT(setAutoMoveDuration(float)),
418
movementMgr->getAutoMoveDuration(),
345
TuiNode* m6_8 = new TuiNode("6.8 Cursor Timeout", m6, m6_7);
346
TuiNode* m6_9 = new TuiNodeBool("6.9 Setting Landscape Sets Location",
347
GETSTELMODULE(LandscapeMgr), SLOT(setFlagLandscapeSetsLocation(bool)),
348
GETSTELMODULE(LandscapeMgr)->getFlagLandscapeSetsLocation(),
421
TuiNode* m6_8 = new TuiNode(N_("Cursor timeout:"), m6, m6_7);
422
TuiNode* m6_9 = new TuiNodeBool(N_("Setting landscape sets location"),
424
SLOT(setFlagLandscapeSetsLocation(bool)),
425
landscapeMgr->getFlagLandscapeSetsLocation(),
350
m6_1->setPrevNode(m6_9);
351
427
m6_1->setNextNode(m6_2);
352
428
m6_2->setNextNode(m6_3);
353
429
m6_3->setNextNode(m6_4);
589
690
// sub-menu 5: colors
590
691
conf->setValue("color/const_lines_color", colToConf(cmgr->getLinesColor()));
591
conf->setValue("color/const_names_color", colToConf(cmgr->getLabelsColor()));
692
conf->setValue("color/const_names_color", colToConf(cmgr->getNamesColor()));
592
693
conf->setValue("color/const_boundary_color", colToConf(cmgr->getBoundariesColor()));
593
694
conf->setValue("viewing/constellation_art_intensity", cmgr->getArtIntensity());
594
695
conf->setValue("color/cardinal_color", colToConf(lmgr->getColorCardinalPoints()) );
595
696
conf->setValue("color/planet_names_color", colToConf(ssmgr->getLabelsColor()));
596
697
conf->setValue("color/planet_orbits_color", colToConf(ssmgr->getOrbitsColor()));
597
698
conf->setValue("color/object_trails_color", colToConf(ssmgr->getTrailsColor()));
598
conf->setValue("color/meridian_color", colToConf(glmgr->getColorMeridianLine()));
599
conf->setValue("color/azimuthal_color", colToConf(glmgr->getColorAzimuthalGrid()));
600
conf->setValue("color/equator_color", colToConf(glmgr->getColorEquatorGrid()));
601
conf->setValue("color/equatorial_J2000_color", colToConf(glmgr->getColorEquatorJ2000Grid()));
602
conf->setValue("color/equator_color", colToConf(glmgr->getColorEquatorLine()));
603
conf->setValue("color/ecliptic_color", colToConf(glmgr->getColorEclipticLine()));
699
conf->setValue("color/meridian_color", colToConf(glmgr->getMeridianLineColor()));
700
conf->setValue("color/azimuthal_color", colToConf(glmgr->getAzimuthalGridColor()));
701
conf->setValue("color/equator_color", colToConf(glmgr->getEquatorGridColor()));
702
conf->setValue("color/equatorial_J2000_color", colToConf(glmgr->getEquatorJ2000GridColor()));
703
conf->setValue("color/equator_color", colToConf(glmgr->getEquatorLineColor()));
704
conf->setValue("color/ecliptic_color", colToConf(glmgr->getEclipticLineColor()));
604
705
conf->setValue("color/nebula_label_color", colToConf(nmgr->getLabelsColor()));
605
706
conf->setValue("color/nebula_circle_color", colToConf(nmgr->getCirclesColor()));
607
708
// sub-menu 6: effects
608
// TODO enable this when we do the release after 0.10.2 - this plugin will crash for 0.10.2 because
609
// getAtmosphereBortleLightPollution() was not defined in the 0.10.2 release.
610
// conf->setValue("stars/init_bortle_scale", lmgr->getAtmosphereBortleLightPollution());
709
conf->setValue("stars/init_bortle_scale", lmgr->getAtmosphereBortleLightPollution());
611
710
lmgr->setDefaultLandscapeID(lmgr->getCurrentLandscapeID());
612
711
conf->setValue("navigation/auto_zoom_out_resets_direction", mvmgr->getFlagAutoZoomOutResetsDirection());
613
712
conf->setValue("astro/milky_way_intensity", milk->getIntensity());