Merge lp:~daggerstab/stellarium/custom-object-info-gui into lp:stellarium

Proposed by Bogdan Marinov
Status: Merged
Merged at revision: 5450
Proposed branch: lp:~daggerstab/stellarium/custom-object-info-gui
Merge into: lp:stellarium
Diff against target: 1753 lines (+477/-963)
12 files modified
src/CMakeLists.txt (+0/-4)
src/core/StelObject.hpp (+9/-3)
src/core/StelObjectMgr.cpp (+0/-154)
src/core/StelObjectMgr.hpp (+0/-2)
src/gui/ConfigurationDialog.cpp (+100/-40)
src/gui/ConfigurationDialog.hpp (+8/-8)
src/gui/CustomInfoDialog.cpp (+0/-249)
src/gui/CustomInfoDialog.hpp (+0/-96)
src/gui/CustomInfoDialog.ui (+0/-286)
src/gui/SkyGui.cpp (+30/-1)
src/gui/SkyGui.hpp (+2/-0)
src/gui/configurationDialog.ui (+328/-120)
To merge this branch: bzr merge lp:~daggerstab/stellarium/custom-object-info-gui
Reviewer Review Type Date Requested Status
Alexander Wolf Approve
Review via email: mp+115778@code.launchpad.net

Description of the change

I've rewritten the feature allowing customization of the information displayed for a selected object that was introduced before the previous release.

Now instead of a separate window it's a tab in the Configuration window.It also works in a different manner than the original feature, though I've kept the same keys in the configuration file.

A possible modification is moving it to the Sky and viewing options window.

I the changes are approved, I'd like to merge them in the trunk myself.

To post a comment you must log in.
Revision history for this message
Alexander Wolf (alexwolf) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/CMakeLists.txt'
--- src/CMakeLists.txt 2012-06-14 03:22:36 +0000
+++ src/CMakeLists.txt 2012-07-19 16:10:25 +0000
@@ -415,8 +415,6 @@
415 gui/AddRemoveLandscapesDialog.cpp415 gui/AddRemoveLandscapesDialog.cpp
416 gui/AtmosphereDialog.hpp416 gui/AtmosphereDialog.hpp
417 gui/AtmosphereDialog.cpp417 gui/AtmosphereDialog.cpp
418 gui/CustomInfoDialog.hpp
419 gui/CustomInfoDialog.cpp
420 gui/StelDialog.hpp418 gui/StelDialog.hpp
421 gui/StelDialog.cpp)419 gui/StelDialog.cpp)
422420
@@ -436,7 +434,6 @@
436 gui/ConfigurationDialog.hpp434 gui/ConfigurationDialog.hpp
437 gui/AddRemoveLandscapesDialog.hpp435 gui/AddRemoveLandscapesDialog.hpp
438 gui/AtmosphereDialog.hpp436 gui/AtmosphereDialog.hpp
439 gui/CustomInfoDialog.hpp
440 gui/StelDialog.hpp)437 gui/StelDialog.hpp)
441438
442 ################# compiles .ui files ############439 ################# compiles .ui files ############
@@ -448,7 +445,6 @@
448 gui/searchDialogGui.ui445 gui/searchDialogGui.ui
449 gui/configurationDialog.ui446 gui/configurationDialog.ui
450 gui/AtmosphereDialog.ui447 gui/AtmosphereDialog.ui
451 gui/CustomInfoDialog.ui
452 gui/addRemoveLandscapesDialog.ui)448 gui/addRemoveLandscapesDialog.ui)
453449
454 IF(ENABLE_SCRIPT_CONSOLE)450 IF(ENABLE_SCRIPT_CONSOLE)
455451
=== modified file 'src/core/StelObject.hpp'
--- src/core/StelObject.hpp 2012-04-13 16:42:43 +0000
+++ src/core/StelObject.hpp 2012-07-19 16:10:25 +0000
@@ -20,6 +20,7 @@
20#ifndef _STELOBJECT_HPP_20#ifndef _STELOBJECT_HPP_
21#define _STELOBJECT_HPP_21#define _STELOBJECT_HPP_
2222
23#include <QFlags>
23#include <QString>24#include <QString>
24#include "VecMath.hpp"25#include "VecMath.hpp"
25#include "StelObjectType.hpp"26#include "StelObjectType.hpp"
@@ -38,7 +39,8 @@
38 //! filter results of getInfoString. The precise definition of these should39 //! filter results of getInfoString. The precise definition of these should
39 //! be documented in the getInfoString documentation for the derived classes40 //! be documented in the getInfoString documentation for the derived classes
40 //! for all specifiers which are defined in that derivative.41 //! for all specifiers which are defined in that derivative.
41 enum InfoStringGroup42 //! Use InfoStringGroup instead.
43 enum InfoStringGroupFlags
42 {44 {
43 Name = 0x00000001, //!< An object's name45 Name = 0x00000001, //!< An object's name
44 CatalogNumber = 0x00000002, //!< Catalog numbers46 CatalogNumber = 0x00000002, //!< Catalog numbers
@@ -55,11 +57,13 @@
55 HourAngle = 0x00001000, //!< The hour angle + DE (of date)57 HourAngle = 0x00001000, //!< The hour angle + DE (of date)
56 AbsoluteMagnitude = 0x00002000 //!< The absolute magnitude58 AbsoluteMagnitude = 0x00002000 //!< The absolute magnitude
57 };59 };
60 typedef QFlags<InfoStringGroupFlags> InfoStringGroup;
61 Q_FLAGS(InfoStringGroup)
5862
59 //! A pre-defined set of specifiers for the getInfoString flags argument to getInfoString63 //! A pre-defined set of specifiers for the getInfoString flags argument to getInfoString
60 static const InfoStringGroup AllInfo = (InfoStringGroup)(Name|CatalogNumber|Magnitude|RaDecJ2000|RaDecOfDate|AltAzi|Distance|Size|Extra1|Extra2|Extra3|HourAngle|AbsoluteMagnitude);64 static const InfoStringGroupFlags AllInfo = (InfoStringGroupFlags)(Name|CatalogNumber|Magnitude|RaDecJ2000|RaDecOfDate|AltAzi|Distance|Size|Extra1|Extra2|Extra3|HourAngle|AbsoluteMagnitude);
61 //! A pre-defined set of specifiers for the getInfoString flags argument to getInfoString65 //! A pre-defined set of specifiers for the getInfoString flags argument to getInfoString
62 static const InfoStringGroup ShortInfo = (InfoStringGroup)(Name|CatalogNumber|Magnitude|RaDecJ2000);66 static const InfoStringGroupFlags ShortInfo = (InfoStringGroupFlags)(Name|CatalogNumber|Magnitude|RaDecJ2000);
6367
64 virtual ~StelObject() {}68 virtual ~StelObject() {}
6569
@@ -148,4 +152,6 @@
148 void postProcessInfoString(QString& str, const InfoStringGroup& flags) const;152 void postProcessInfoString(QString& str, const InfoStringGroup& flags) const;
149};153};
150154
155Q_DECLARE_OPERATORS_FOR_FLAGS(StelObject::InfoStringGroup)
156
151#endif // _STELOBJECT_HPP_157#endif // _STELOBJECT_HPP_
152158
=== modified file 'src/core/StelObjectMgr.cpp'
--- src/core/StelObjectMgr.cpp 2012-04-13 16:50:19 +0000
+++ src/core/StelObjectMgr.cpp 2012-07-19 16:10:25 +0000
@@ -32,7 +32,6 @@
32#include <QString>32#include <QString>
33#include <QDebug>33#include <QDebug>
34#include <QStringList>34#include <QStringList>
35#include <QSettings>
3635
37StelObjectMgr::StelObjectMgr() : searchRadiusPixel(30.f), distanceWeight(1.f)36StelObjectMgr::StelObjectMgr() : searchRadiusPixel(30.f), distanceWeight(1.f)
38{37{
@@ -245,156 +244,3 @@
245 result.sort();244 result.sort();
246 return result;245 return result;
247}246}
248
249int StelObjectMgr::getCustomInfoString(void)
250{
251 QSettings* conf = StelApp::getInstance().getSettings();
252
253 bool Name = conf->value("custom_selected_info/flag_show_name", false).toBool();
254 bool CatalogNumber = conf->value("custom_selected_info/flag_show_catalognumber", false).toBool();
255 bool Magnitude = conf->value("custom_selected_info/flag_show_magnitude", false).toBool();
256 bool RaDecJ2000 = conf->value("custom_selected_info/flag_show_radecj2000", false).toBool();
257 bool RaDecOfDate = conf->value("custom_selected_info/flag_show_radecofdate", false).toBool();
258 bool AltAz = conf->value("custom_selected_info/flag_show_altaz", false).toBool();
259 bool Distance = conf->value("custom_selected_info/flag_show_distance", false).toBool();
260 bool Size = conf->value("custom_selected_info/flag_show_size", false).toBool();
261 bool Extra1 = conf->value("custom_selected_info/flag_show_extra1", false).toBool();
262 bool Extra2 = conf->value("custom_selected_info/flag_show_extra2", false).toBool();
263 bool Extra3 = conf->value("custom_selected_info/flag_show_extra3", false).toBool();
264 bool HourAngle = conf->value("custom_selected_info/flag_show_hourangle", false).toBool();
265 bool AbsoluteMagnitude = conf->value("custom_selected_info/flag_show_absolutemagnitude", false).toBool();
266
267 int OctZero = 0x00000000;
268
269 int NameOct;
270 if (Name)
271 {
272 NameOct = StelObject::Name;
273 }
274 else
275 {
276 NameOct = OctZero;
277 }
278
279 int CatalogNumberOct;
280 if (CatalogNumber)
281 {
282 CatalogNumberOct = StelObject::CatalogNumber;
283 }
284 else
285 {
286 CatalogNumberOct = OctZero;
287 }
288
289 int MagnitudeOct;
290 if (Magnitude)
291 {
292 MagnitudeOct = StelObject::Magnitude;
293 }
294 else
295 {
296 MagnitudeOct = OctZero;
297 }
298
299 int RaDecJ2000Oct;
300 if (RaDecJ2000)
301 {
302 RaDecJ2000Oct = StelObject::RaDecJ2000;
303 }
304 else
305 {
306 RaDecJ2000Oct = OctZero;
307 }
308
309 int RaDecOfDateOct;
310 if (RaDecOfDate)
311 {
312 RaDecOfDateOct = StelObject::RaDecOfDate;
313 }
314 else
315 {
316 RaDecOfDateOct = OctZero;
317 }
318
319 int AltAzOct;
320 if (AltAz)
321 {
322 AltAzOct = StelObject::AltAzi;
323 }
324 else
325 {
326 AltAzOct = OctZero;
327 }
328
329 int DistanceOct;
330 if (Distance)
331 {
332 DistanceOct = StelObject::Distance;
333 }
334 else
335 {
336 DistanceOct = OctZero;
337 }
338
339 int SizeOct;
340 if (Size)
341 {
342 SizeOct = StelObject::Size;
343 }
344 else
345 {
346 SizeOct = OctZero;
347 }
348
349 int Extra1Oct;
350 if (Extra1)
351 {
352 Extra1Oct = StelObject::Extra1;
353 }
354 else
355 {
356 Extra1Oct = OctZero;
357 }
358
359 int Extra2Oct;
360 if (Extra2)
361 {
362 Extra2Oct = StelObject::Extra2;
363 }
364 else
365 {
366 Extra2Oct = OctZero;
367 }
368
369 int Extra3Oct;
370 if (Extra3)
371 {
372 Extra3Oct = StelObject::Extra3;
373 }
374 else
375 {
376 Extra3Oct = OctZero;
377 }
378
379 int HourAngleOct;
380 if (HourAngle)
381 {
382 HourAngleOct = StelObject::HourAngle;
383 }
384 else
385 {
386 HourAngleOct = OctZero;
387 }
388
389 int AbsoluteMagnitudeOct;
390 if (AbsoluteMagnitude)
391 {
392 AbsoluteMagnitudeOct = StelObject::AbsoluteMagnitude;
393 }
394 else
395 {
396 AbsoluteMagnitudeOct = OctZero;
397 }
398
399 return (NameOct|CatalogNumberOct|MagnitudeOct|RaDecJ2000Oct|RaDecOfDateOct|AltAzOct|DistanceOct|SizeOct|Extra1Oct|Extra2Oct|Extra3Oct|HourAngleOct|AbsoluteMagnitudeOct);
400}
401247
=== modified file 'src/core/StelObjectMgr.hpp'
--- src/core/StelObjectMgr.hpp 2012-04-13 16:42:43 +0000
+++ src/core/StelObjectMgr.hpp 2012-07-19 16:10:25 +0000
@@ -126,8 +126,6 @@
126 //! Default to 1.126 //! Default to 1.
127 void setDistanceWeight(float newDistanceWeight) {distanceWeight=newDistanceWeight;}127 void setDistanceWeight(float newDistanceWeight) {distanceWeight=newDistanceWeight;}
128128
129 int getCustomInfoString(void);
130
131signals:129signals:
132 //! Indicate that the selected StelObjects has changed.130 //! Indicate that the selected StelObjects has changed.
133 //! @param action define if the user requested that the objects are added to the selection or just replace it131 //! @param action define if the user requested that the objects are added to the selection or just replace it
134132
=== modified file 'src/gui/ConfigurationDialog.cpp'
--- src/gui/ConfigurationDialog.cpp 2012-06-29 14:07:11 +0000
+++ src/gui/ConfigurationDialog.cpp 2012-07-19 16:10:25 +0000
@@ -2,6 +2,7 @@
2 * Stellarium2 * Stellarium
3 * Copyright (C) 2008 Fabien Chereau3 * Copyright (C) 2008 Fabien Chereau
4 * Copyright (C) 2012 Timothy Reaves4 * Copyright (C) 2012 Timothy Reaves
5 * Copyright (C) 2012 Bogdan Marinov
5 *6 *
6 * This program is free software; you can redistribute it and/or7 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License8 * modify it under the terms of the GNU General Public License
@@ -20,7 +21,6 @@
2021
21#include "Dialog.hpp"22#include "Dialog.hpp"
22#include "ConfigurationDialog.hpp"23#include "ConfigurationDialog.hpp"
23#include "CustomInfoDialog.hpp"
24#include "StelMainGraphicsView.hpp"24#include "StelMainGraphicsView.hpp"
25#include "StelMainWindow.hpp"25#include "StelMainWindow.hpp"
26#include "ui_configurationDialog.h"26#include "ui_configurationDialog.h"
@@ -64,7 +64,6 @@
64ConfigurationDialog::ConfigurationDialog(StelGui* agui) : StelDialog(agui), starCatalogDownloadReply(NULL), currentDownloadFile(NULL), progressBar(NULL), gui(agui)64ConfigurationDialog::ConfigurationDialog(StelGui* agui) : StelDialog(agui), starCatalogDownloadReply(NULL), currentDownloadFile(NULL), progressBar(NULL), gui(agui)
65{65{
66 ui = new Ui_configurationDialogForm;66 ui = new Ui_configurationDialogForm;
67 customInfoDialog = NULL;
68 hasDownloadedStarCatalog = false;67 hasDownloadedStarCatalog = false;
69 isDownloadingStarCatalog = false;68 isDownloadingStarCatalog = false;
70 savedProjectionType = StelApp::getInstance().getCore()->getCurrentProjectionType(); 69 savedProjectionType = StelApp::getInstance().getCore()->getCurrentProjectionType();
@@ -73,9 +72,7 @@
73ConfigurationDialog::~ConfigurationDialog()72ConfigurationDialog::~ConfigurationDialog()
74{73{
75 delete ui;74 delete ui;
76 ui=NULL;75 ui = 0;
77 delete customInfoDialog;
78 customInfoDialog = NULL;
79}76}
8077
81void ConfigurationDialog::retranslate()78void ConfigurationDialog::retranslate()
@@ -150,34 +147,30 @@
150 resetStarCatalogControls();147 resetStarCatalogControls();
151148
152 // Selected object info149 // Selected object info
153 if (gui->getInfoTextFilters() == (StelObject::InfoStringGroup)0)150 if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(0))
154 {151 {
155 ui->noSelectedInfoRadio->setChecked(true);152 ui->noSelectedInfoRadio->setChecked(true);
156 ui->pushButtonCustomInfoDialog->setEnabled(false);
157 }153 }
158 else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::ShortInfo))154 else if (gui->getInfoTextFilters() == StelObject::ShortInfo)
159 {155 {
160 ui->briefSelectedInfoRadio->setChecked(true); 156 ui->briefSelectedInfoRadio->setChecked(true);
161 ui->pushButtonCustomInfoDialog->setEnabled(false);
162 }157 }
163 else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::AllInfo))158 else if (gui->getInfoTextFilters() == StelObject::AllInfo)
164 {159 {
165 ui->allSelectedInfoRadio->setChecked(true);160 ui->allSelectedInfoRadio->setChecked(true);
166 ui->pushButtonCustomInfoDialog->setEnabled(false);
167 }161 }
168 else162 else
169 {163 {
170 ui->customSelectedInfoRadio->setChecked(true);164 ui->customSelectedInfoRadio->setChecked(true);
171 ui->pushButtonCustomInfoDialog->setEnabled(true);
172 }165 }
173166 updateSelectedInfoCheckBoxes();
167
174 connect(ui->noSelectedInfoRadio, SIGNAL(released()), this, SLOT(setNoSelectedInfo()));168 connect(ui->noSelectedInfoRadio, SIGNAL(released()), this, SLOT(setNoSelectedInfo()));
175 connect(ui->allSelectedInfoRadio, SIGNAL(released()), this, SLOT(setAllSelectedInfo()));169 connect(ui->allSelectedInfoRadio, SIGNAL(released()), this, SLOT(setAllSelectedInfo()));
176 connect(ui->briefSelectedInfoRadio, SIGNAL(released()), this, SLOT(setBriefSelectedInfo()));170 connect(ui->briefSelectedInfoRadio, SIGNAL(released()), this, SLOT(setBriefSelectedInfo()));
177 connect(ui->customSelectedInfoRadio, SIGNAL(released()), this, SLOT(setCustomSelectedInfo()));171 connect(ui->buttonGroupDisplayedFields, SIGNAL(buttonClicked(int)),
178172 this, SLOT(setSelectedInfoFromCheckBoxes()));
179 connect(ui->pushButtonCustomInfoDialog, SIGNAL(clicked()), this, SLOT(showCustomInfoDialog()));173
180
181 // Navigation tab174 // Navigation tab
182 // Startup time175 // Startup time
183 if (core->getStartupTimeMode()=="actual")176 if (core->getStartupTimeMode()=="actual")
@@ -262,8 +255,6 @@
262 connect(ui->pluginConfigureButton, SIGNAL(clicked()), this, SLOT(pluginConfigureCurrentSelection()));255 connect(ui->pluginConfigureButton, SIGNAL(clicked()), this, SLOT(pluginConfigureCurrentSelection()));
263 populatePluginsList();256 populatePluginsList();
264257
265
266 connect(ui->stackListWidget, SIGNAL(currentItemChanged(QListWidgetItem *, QListWidgetItem *)), this, SLOT(changePage(QListWidgetItem *, QListWidgetItem*)));
267 updateConfigLabels();258 updateConfigLabels();
268}259}
269260
@@ -315,25 +306,58 @@
315void ConfigurationDialog::setNoSelectedInfo(void)306void ConfigurationDialog::setNoSelectedInfo(void)
316{307{
317 gui->setInfoTextFilters(StelObject::InfoStringGroup(0));308 gui->setInfoTextFilters(StelObject::InfoStringGroup(0));
318 ui->pushButtonCustomInfoDialog->setEnabled(false);309 updateSelectedInfoCheckBoxes();
319}310}
320311
321void ConfigurationDialog::setAllSelectedInfo(void)312void ConfigurationDialog::setAllSelectedInfo(void)
322{313{
323 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelObject::AllInfo));314 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelObject::AllInfo));
324 ui->pushButtonCustomInfoDialog->setEnabled(false);315 updateSelectedInfoCheckBoxes();
325}316}
326317
327void ConfigurationDialog::setBriefSelectedInfo(void)318void ConfigurationDialog::setBriefSelectedInfo(void)
328{319{
329 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelObject::ShortInfo));320 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelObject::ShortInfo));
330 ui->pushButtonCustomInfoDialog->setEnabled(false);321 updateSelectedInfoCheckBoxes();
331}322}
332323
333void ConfigurationDialog::setCustomSelectedInfo(void)324void ConfigurationDialog::setSelectedInfoFromCheckBoxes()
334{325{
335 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));326 // As this signal will be called when a checbox is toggled,
336 ui->pushButtonCustomInfoDialog->setEnabled(true);327 // change the general mode to Custom.
328 if (!ui->customSelectedInfoRadio->isChecked())
329 ui->customSelectedInfoRadio->setChecked(true);
330
331 StelObject::InfoStringGroup flags(0);
332
333 if (ui->checkBoxName->isChecked())
334 flags |= StelObject::Name;
335 if (ui->checkBoxCatalogNumbers->isChecked())
336 flags |= StelObject::CatalogNumber;
337 if (ui->checkBoxVisualMag->isChecked())
338 flags |= StelObject::Magnitude;
339 if (ui->checkBoxAbsoluteMag->isChecked())
340 flags |= StelObject::AbsoluteMagnitude;
341 if (ui->checkBoxRaDecJ2000->isChecked())
342 flags |= StelObject::RaDecJ2000;
343 if (ui->checkBoxRaDecOfDate->isChecked())
344 flags |= StelObject::RaDecOfDate;
345 if (ui->checkBoxHourAngle->isChecked())
346 flags |= StelObject::HourAngle;
347 if (ui->checkBoxAltAz->isChecked())
348 flags |= StelObject::AltAzi;
349 if (ui->checkBoxDistance->isChecked())
350 flags |= StelObject::Distance;
351 if (ui->checkBoxSize->isChecked())
352 flags |= StelObject::Size;
353 if (ui->checkBoxExtra1->isChecked())
354 flags |= StelObject::Extra1;
355 if (ui->checkBoxExtra2->isChecked())
356 flags |= StelObject::Extra2;
357 if (ui->checkBoxExtra3->isChecked())
358 flags |= StelObject::Extra3;
359
360 gui->setInfoTextFilters(flags);
337}361}
338362
339363
@@ -463,14 +487,46 @@
463 langName = StelApp::getInstance().getLocaleMgr().getSkyLanguage();487 langName = StelApp::getInstance().getLocaleMgr().getSkyLanguage();
464 conf->setValue("localization/sky_locale", StelTranslator::nativeNameToIso639_1Code(langName));488 conf->setValue("localization/sky_locale", StelTranslator::nativeNameToIso639_1Code(langName));
465489
466 if (gui->getInfoTextFilters() == (StelObject::InfoStringGroup)0)490 // configuration dialog / selected object info tab
491 const StelObject::InfoStringGroup& flags = gui->getInfoTextFilters();
492 if (flags == StelObject::InfoStringGroup(0))
467 conf->setValue("gui/selected_object_info", "none");493 conf->setValue("gui/selected_object_info", "none");
468 else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::ShortInfo))494 else if (flags == StelObject::InfoStringGroup(StelObject::ShortInfo))
469 conf->setValue("gui/selected_object_info", "short");495 conf->setValue("gui/selected_object_info", "short");
470 else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::AllInfo))496 else if (flags == StelObject::InfoStringGroup(StelObject::AllInfo))
471 conf->setValue("gui/selected_object_info", "all");497 conf->setValue("gui/selected_object_info", "all");
472 else498 else
499 {
473 conf->setValue("gui/selected_object_info", "custom");500 conf->setValue("gui/selected_object_info", "custom");
501
502 conf->beginGroup("custom_selected_info");
503 conf->setValue("flag_show_name", (bool) (flags & StelObject::Name));
504 conf->setValue("flag_show_catalognumber",
505 (bool) (flags & StelObject::CatalogNumber));
506 conf->setValue("flag_show_magnitude",
507 (bool) (flags & StelObject::Magnitude));
508 conf->setValue("flag_show_absolutemagnitude",
509 (bool) (flags & StelObject::AbsoluteMagnitude));
510 conf->setValue("flag_show_radecj2000",
511 (bool) (flags & StelObject::RaDecJ2000));
512 conf->setValue("flag_show_radecofdate",
513 (bool) (flags & StelObject::RaDecOfDate));
514 conf->setValue("flag_show_hourangle",
515 (bool) (flags & StelObject::HourAngle));
516 conf->setValue("flag_show_altaz",
517 (bool) (flags & StelObject::AltAzi));
518 conf->setValue("flag_show_distance",
519 (bool) (flags & StelObject::Distance));
520 conf->setValue("flag_show_size",
521 (bool) (flags & StelObject::Size));
522 conf->setValue("flag_show_extra1",
523 (bool) (flags & StelObject::Extra1));
524 conf->setValue("flag_show_extra2",
525 (bool) (flags & StelObject::Extra2));
526 conf->setValue("flag_show_extra3",
527 (bool) (flags & StelObject::Extra3));
528 conf->endGroup();
529 }
474530
475 // toolbar auto-hide status531 // toolbar auto-hide status
476 conf->setValue("gui/auto_hide_horizontal_toolbar", gui->getAutoHideHorizontalButtonBar());532 conf->setValue("gui/auto_hide_horizontal_toolbar", gui->getAutoHideHorizontalButtonBar());
@@ -710,13 +766,6 @@
710 setStartupTimeMode();766 setStartupTimeMode();
711}767}
712768
713void ConfigurationDialog::changePage(QListWidgetItem *current, QListWidgetItem *previous)
714{
715 if (!current)
716 current = previous;
717 ui->configurationStackedWidget->setCurrentIndex(ui->stackListWidget->row(current));
718}
719
720769
721void ConfigurationDialog::resetStarCatalogControls()770void ConfigurationDialog::resetStarCatalogControls()
722{771{
@@ -936,10 +985,21 @@
936 resetStarCatalogControls();985 resetStarCatalogControls();
937}986}
938987
939void ConfigurationDialog::showCustomInfoDialog()988void ConfigurationDialog::updateSelectedInfoCheckBoxes()
940{989{
941 if(customInfoDialog == NULL)990 const StelObject::InfoStringGroup& flags = gui->getInfoTextFilters();
942 customInfoDialog = new CustomInfoDialog();991
943992 ui->checkBoxName->setChecked(flags & StelObject::Name);
944 customInfoDialog->setVisible(true);993 ui->checkBoxCatalogNumbers->setChecked(flags & StelObject::CatalogNumber);
994 ui->checkBoxVisualMag->setChecked(flags & StelObject::Magnitude);
995 ui->checkBoxAbsoluteMag->setChecked(flags & StelObject::AbsoluteMagnitude);
996 ui->checkBoxRaDecJ2000->setChecked(flags & StelObject::RaDecJ2000);
997 ui->checkBoxRaDecOfDate->setChecked(flags & StelObject::RaDecOfDate);
998 ui->checkBoxHourAngle->setChecked(flags & StelObject::HourAngle);
999 ui->checkBoxAltAz->setChecked(flags & StelObject::AltAzi);
1000 ui->checkBoxDistance->setChecked(flags & StelObject::Distance);
1001 ui->checkBoxSize->setChecked(flags & StelObject::Size);
1002 ui->checkBoxExtra1->setChecked(flags & StelObject::Extra1);
1003 ui->checkBoxExtra2->setChecked(flags & StelObject::Extra2);
1004 ui->checkBoxExtra3->setChecked(flags & StelObject::Extra3);
945}1005}
9461006
=== modified file 'src/gui/ConfigurationDialog.hpp'
--- src/gui/ConfigurationDialog.hpp 2012-04-13 18:02:25 +0000
+++ src/gui/ConfigurationDialog.hpp 2012-07-19 16:10:25 +0000
@@ -32,7 +32,6 @@
32class QNetworkAccessManager;32class QNetworkAccessManager;
33class QListWidgetItem;33class QListWidgetItem;
34class StelGui;34class StelGui;
35class CustomInfoDialog;
3635
37class ConfigurationDialog : public StelDialog36class ConfigurationDialog : public StelDialog
38{37{
@@ -77,7 +76,11 @@
77 void setNoSelectedInfo(void);76 void setNoSelectedInfo(void);
78 void setAllSelectedInfo(void);77 void setAllSelectedInfo(void);
79 void setBriefSelectedInfo(void);78 void setBriefSelectedInfo(void);
80 void setCustomSelectedInfo(void);79 //! Set the selected object info fields from the "Displayed Fields" boxes.
80 //! Called when any of the boxes has been clicked. Sets the
81 //! "selected info" mode to "Custom".
82 void setSelectedInfoFromCheckBoxes();
83
81 void selectLanguage(const QString& languageCode);84 void selectLanguage(const QString& languageCode);
82 void setStartupTimeMode();85 void setStartupTimeMode();
83 void setDiskViewport(bool);86 void setDiskViewport(bool);
@@ -131,16 +134,13 @@
131 #endif134 #endif
132 void setFixedDateTimeToCurrent();135 void setFixedDateTimeToCurrent();
133136
134 void changePage(QListWidgetItem *current, QListWidgetItem *previous);
135
136 void showCustomInfoDialog();
137
138private:137private:
139 StelGui* gui;138 StelGui* gui;
140139
141 int savedProjectionType;140 int savedProjectionType;
142141
143 CustomInfoDialog* customInfoDialog;142 //! Set the displayed fields checkboxes from the current displayed fields.
143 void updateSelectedInfoCheckBoxes();
144};144};
145145
146#endif // _CONFIGURATIONDIALOG_HPP_146#endif // _CONFIGURATIONDIALOG_HPP_
147147
=== removed file 'src/gui/CustomInfoDialog.cpp'
--- src/gui/CustomInfoDialog.cpp 2012-04-13 18:02:25 +0000
+++ src/gui/CustomInfoDialog.cpp 1970-01-01 00:00:00 +0000
@@ -1,249 +0,0 @@
1/*
2 * This program is distributed in the hope that it will be useful,
3 * but WITHOUT ANY WARRANTY; without even the implied warranty of
4 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5 * GNU General Public License for more details.
6 * You should have received a copy of the GNU General Public License
7 * along with this program; if not, write to the Free Software
8 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
9*/
10
11#include "CustomInfoDialog.hpp"
12#include "ui_CustomInfoDialog.h"
13
14#include "Dialog.hpp"
15#include "StelApp.hpp"
16#include "StelObjectMgr.hpp"
17
18#include <QDebug>
19
20CustomInfoDialog::CustomInfoDialog()
21{
22 ui = new Ui_CustomInfoDialogForm;
23 conf = StelApp::getInstance().getSettings();
24 gui = StelApp::getInstance().getGui();
25}
26
27CustomInfoDialog::~CustomInfoDialog()
28{
29 delete ui;
30 ui=NULL;
31}
32
33void CustomInfoDialog::retranslate()
34{
35 if (dialog)
36 ui->retranslateUi(dialog);
37}
38
39
40void CustomInfoDialog::createDialogContent()
41{
42 ui->setupUi(dialog);
43
44 //Signals and slots
45 connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate()));
46 connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close()));
47
48 //An object's name
49 ui->nameCheckBox->setChecked(getNameCustomInfoFlag());
50 connect(ui->nameCheckBox, SIGNAL(toggled(bool)), this, SLOT(setNameCustomInfoFlag(bool)));
51
52 //Catalog numbers
53 ui->catalogNumberCheckBox->setChecked(getCatalogNumberCustomInfoFlag());
54 connect(ui->catalogNumberCheckBox, SIGNAL(toggled(bool)), this, SLOT(setCatalogNumberCustomInfoFlag(bool)));
55
56 //Magnitude related data
57 ui->magnitudeCheckBox->setChecked(getMagnitudeCustomInfoFlag());
58 connect(ui->magnitudeCheckBox, SIGNAL(toggled(bool)), this, SLOT(setMagnitudeCustomInfoFlag(bool)));
59
60 //The equatorial position (J2000 ref)
61 ui->raDecJ2000CheckBox->setChecked(getRaDecJ2000CustomInfoFlag());
62 connect(ui->raDecJ2000CheckBox, SIGNAL(toggled(bool)), this, SLOT(setRaDecJ2000CustomInfoFlag(bool)));
63
64 //The equatorial position (of date)
65 ui->raDecOfDateCheckBox->setChecked(getRaDecOfDateCustomInfoFlag());
66 connect(ui->raDecOfDateCheckBox, SIGNAL(toggled(bool)), this, SLOT(setRaDecOfDateCustomInfoFlag(bool)));
67
68 //The position (Altitude/Azimuth)
69 ui->altAzCheckBox->setChecked(getAltAzCustomInfoFlag());
70 connect(ui->altAzCheckBox, SIGNAL(toggled(bool)), this, SLOT(setAltAzCustomInfoFlag(bool)));
71
72 //Info about an object's distance
73 ui->distanceCheckBox->setChecked(getDistanceCustomInfoFlag());
74 connect(ui->distanceCheckBox, SIGNAL(toggled(bool)), this, SLOT(setDistanceCustomInfoFlag(bool)));
75
76 //Info about an object's size
77 ui->sizeCheckBox->setChecked(getSizeCustomInfoFlag());
78 connect(ui->sizeCheckBox, SIGNAL(toggled(bool)), this, SLOT(setSizeCustomInfoFlag(bool)));
79
80 //Derived class-specific extra fields
81 ui->extra1CheckBox->setChecked(getExtra1CustomInfoFlag());
82 connect(ui->extra1CheckBox, SIGNAL(toggled(bool)), this, SLOT(setExtra1CustomInfoFlag(bool)));
83
84 //Derived class-specific extra fields
85 ui->extra2CheckBox->setChecked(getExtra2CustomInfoFlag());
86 connect(ui->extra2CheckBox, SIGNAL(toggled(bool)), this, SLOT(setExtra2CustomInfoFlag(bool)));
87
88 //Derived class-specific extra fields
89 ui->extra3CheckBox->setChecked(getExtra3CustomInfoFlag());
90 connect(ui->extra3CheckBox, SIGNAL(toggled(bool)), this, SLOT(setExtra3CustomInfoFlag(bool)));
91
92 //The hour angle + DE (of date)
93 ui->hourAngleCheckBox->setChecked(getHourAngleCustomInfoFlag());
94 connect(ui->hourAngleCheckBox, SIGNAL(toggled(bool)), this, SLOT(setHourAngleCustomInfoFlag(bool)));
95
96 //The absolute magnitude
97 ui->absoluteMagnitudeCheckBox->setChecked(getAbsoluteMagnitudeCustomInfoFlag());
98 connect(ui->absoluteMagnitudeCheckBox, SIGNAL(toggled(bool)), this, SLOT(setAbsoluteMagnitudeCustomInfoFlag(bool)));
99
100}
101
102void CustomInfoDialog::setVisible(bool v)
103{
104 StelDialog::setVisible(v);
105}
106
107bool CustomInfoDialog::getNameCustomInfoFlag()
108{
109 return conf->value("custom_selected_info/flag_show_name", false).toBool();
110}
111
112void CustomInfoDialog::setNameCustomInfoFlag(bool flag)
113{
114 conf->setValue("custom_selected_info/flag_show_name", flag);
115 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
116}
117
118bool CustomInfoDialog::getCatalogNumberCustomInfoFlag()
119{
120 return conf->value("custom_selected_info/flag_show_catalognumber", false).toBool();
121}
122
123void CustomInfoDialog::setCatalogNumberCustomInfoFlag(bool flag)
124{
125 conf->setValue("custom_selected_info/flag_show_catalognumber", flag);
126 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
127}
128
129bool CustomInfoDialog::getMagnitudeCustomInfoFlag()
130{
131 return conf->value("custom_selected_info/flag_show_magnitude", false).toBool();
132}
133
134void CustomInfoDialog::setMagnitudeCustomInfoFlag(bool flag)
135{
136 conf->setValue("custom_selected_info/flag_show_magnitude", flag);
137 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
138}
139
140bool CustomInfoDialog::getRaDecJ2000CustomInfoFlag()
141{
142 return conf->value("custom_selected_info/flag_show_radecj2000", false).toBool();
143}
144
145void CustomInfoDialog::setRaDecJ2000CustomInfoFlag(bool flag)
146{
147 conf->setValue("custom_selected_info/flag_show_radecj2000", flag);
148 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
149}
150
151bool CustomInfoDialog::getRaDecOfDateCustomInfoFlag()
152{
153 return conf->value("custom_selected_info/flag_show_radecofdate", false).toBool();
154}
155
156void CustomInfoDialog::setRaDecOfDateCustomInfoFlag(bool flag)
157{
158 conf->setValue("custom_selected_info/flag_show_radecofdate", flag);
159 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
160}
161
162bool CustomInfoDialog::getAltAzCustomInfoFlag()
163{
164 return conf->value("custom_selected_info/flag_show_altaz", false).toBool();
165}
166
167void CustomInfoDialog::setAltAzCustomInfoFlag(bool flag)
168{
169 conf->setValue("custom_selected_info/flag_show_altaz", flag);
170 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
171}
172
173bool CustomInfoDialog::getDistanceCustomInfoFlag()
174{
175 return conf->value("custom_selected_info/flag_show_distance", false).toBool();
176}
177
178void CustomInfoDialog::setDistanceCustomInfoFlag(bool flag)
179{
180 conf->setValue("custom_selected_info/flag_show_distance", flag);
181 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
182}
183
184bool CustomInfoDialog::getSizeCustomInfoFlag()
185{
186 return conf->value("custom_selected_info/flag_show_size", false).toBool();
187}
188
189void CustomInfoDialog::setSizeCustomInfoFlag(bool flag)
190{
191 conf->setValue("custom_selected_info/flag_show_size", flag);
192 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
193}
194
195bool CustomInfoDialog::getExtra1CustomInfoFlag()
196{
197 return conf->value("custom_selected_info/flag_show_extra1", false).toBool();
198}
199
200void CustomInfoDialog::setExtra1CustomInfoFlag(bool flag)
201{
202 conf->setValue("custom_selected_info/flag_show_extra1", flag);
203 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
204}
205
206bool CustomInfoDialog::getExtra2CustomInfoFlag()
207{
208 return conf->value("custom_selected_info/flag_show_extra2", false).toBool();
209}
210
211void CustomInfoDialog::setExtra2CustomInfoFlag(bool flag)
212{
213 conf->setValue("custom_selected_info/flag_show_extra2", flag);
214 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
215}
216
217bool CustomInfoDialog::getExtra3CustomInfoFlag()
218{
219 return conf->value("custom_selected_info/flag_show_extra3", false).toBool();
220}
221
222void CustomInfoDialog::setExtra3CustomInfoFlag(bool flag)
223{
224 conf->setValue("custom_selected_info/flag_show_extra3", flag);
225 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
226}
227
228bool CustomInfoDialog::getHourAngleCustomInfoFlag()
229{
230 return conf->value("custom_selected_info/flag_show_hourangle", false).toBool();
231}
232
233void CustomInfoDialog::setHourAngleCustomInfoFlag(bool flag)
234{
235 conf->setValue("custom_selected_info/flag_show_hourangle", flag);
236 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
237}
238
239bool CustomInfoDialog::getAbsoluteMagnitudeCustomInfoFlag()
240{
241 return conf->value("custom_selected_info/flag_show_absolutemagnitude", false).toBool();
242}
243
244void CustomInfoDialog::setAbsoluteMagnitudeCustomInfoFlag(bool flag)
245{
246 conf->setValue("custom_selected_info/flag_show_absolutemagnitude", flag);
247 gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()));
248}
249
2500
=== removed file 'src/gui/CustomInfoDialog.hpp'
--- src/gui/CustomInfoDialog.hpp 2012-04-13 18:02:25 +0000
+++ src/gui/CustomInfoDialog.hpp 1970-01-01 00:00:00 +0000
@@ -1,96 +0,0 @@
1/*
2 * Stellarium
3 *
4 * Copyright (C) 2012 Alexander Wolf
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18*/
19
20// AW: Methods copied largely from AddRemoveLandscapesDialog
21
22#ifndef _CUSTOMINFODIALOG_HPP_
23#define _CUSTOMINFODIALOG_HPP_
24
25#include <QObject>
26#include <QSettings>
27#include "StelDialog.hpp"
28#include "StelGui.hpp"
29
30class Ui_CustomInfoDialogForm;
31
32//! @class CustomInfoDialog
33class CustomInfoDialog : public StelDialog
34{
35 Q_OBJECT
36
37public:
38 CustomInfoDialog();
39 virtual ~CustomInfoDialog();
40
41public slots:
42 void retranslate();
43 void setVisible(bool);
44
45protected:
46 //! Initialize the dialog widgets and connect the signals/slots.
47 virtual void createDialogContent();
48 Ui_CustomInfoDialogForm *ui;
49
50private slots:
51 bool getNameCustomInfoFlag();
52 void setNameCustomInfoFlag(bool flag);
53
54 bool getCatalogNumberCustomInfoFlag();
55 void setCatalogNumberCustomInfoFlag(bool flag);
56
57 bool getMagnitudeCustomInfoFlag();
58 void setMagnitudeCustomInfoFlag(bool flag);
59
60 bool getRaDecJ2000CustomInfoFlag();
61 void setRaDecJ2000CustomInfoFlag(bool flag);
62
63 bool getRaDecOfDateCustomInfoFlag();
64 void setRaDecOfDateCustomInfoFlag(bool flag);
65
66 bool getAltAzCustomInfoFlag();
67 void setAltAzCustomInfoFlag(bool flag);
68
69 bool getDistanceCustomInfoFlag();
70 void setDistanceCustomInfoFlag(bool flag);
71
72 bool getSizeCustomInfoFlag();
73 void setSizeCustomInfoFlag(bool flag);
74
75 bool getExtra1CustomInfoFlag();
76 void setExtra1CustomInfoFlag(bool flag);
77
78 bool getExtra2CustomInfoFlag();
79 void setExtra2CustomInfoFlag(bool flag);
80
81 bool getExtra3CustomInfoFlag();
82 void setExtra3CustomInfoFlag(bool flag);
83
84 bool getHourAngleCustomInfoFlag();
85 void setHourAngleCustomInfoFlag(bool flag);
86
87 bool getAbsoluteMagnitudeCustomInfoFlag();
88 void setAbsoluteMagnitudeCustomInfoFlag(bool flag);
89
90private:
91 StelGuiBase* gui;
92 QSettings* conf;
93
94};
95
96#endif // _CUSTOMINFODIALOG_HPP_
970
=== removed file 'src/gui/CustomInfoDialog.ui'
--- src/gui/CustomInfoDialog.ui 2012-04-02 16:56:13 +0000
+++ src/gui/CustomInfoDialog.ui 1970-01-01 00:00:00 +0000
@@ -1,286 +0,0 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <class>CustomInfoDialogForm</class>
4 <widget class="QWidget" name="CustomInfoDialogForm">
5 <property name="sizePolicy">
6 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
7 <horstretch>0</horstretch>
8 <verstretch>0</verstretch>
9 </sizepolicy>
10 </property>
11 <layout class="QVBoxLayout" name="verticalLayout">
12 <property name="spacing">
13 <number>0</number>
14 </property>
15 <property name="margin">
16 <number>0</number>
17 </property>
18 <item>
19 <widget class="BarFrame" name="TitleBar">
20 <property name="minimumSize">
21 <size>
22 <width>16</width>
23 <height>25</height>
24 </size>
25 </property>
26 <property name="maximumSize">
27 <size>
28 <width>16777215</width>
29 <height>25</height>
30 </size>
31 </property>
32 <property name="frameShape">
33 <enum>QFrame::StyledPanel</enum>
34 </property>
35 <layout class="QHBoxLayout">
36 <property name="leftMargin">
37 <number>0</number>
38 </property>
39 <property name="topMargin">
40 <number>0</number>
41 </property>
42 <property name="rightMargin">
43 <number>4</number>
44 </property>
45 <property name="bottomMargin">
46 <number>0</number>
47 </property>
48 <item>
49 <spacer>
50 <property name="orientation">
51 <enum>Qt::Horizontal</enum>
52 </property>
53 <property name="sizeHint" stdset="0">
54 <size>
55 <width>40</width>
56 <height>20</height>
57 </size>
58 </property>
59 </spacer>
60 </item>
61 <item>
62 <widget class="QLabel" name="stelWindowTitle">
63 <property name="palette">
64 <palette>
65 <active/>
66 <inactive/>
67 <disabled/>
68 </palette>
69 </property>
70 <property name="font">
71 <font/>
72 </property>
73 <property name="text">
74 <string>Selected object information</string>
75 </property>
76 </widget>
77 </item>
78 <item>
79 <spacer>
80 <property name="orientation">
81 <enum>Qt::Horizontal</enum>
82 </property>
83 <property name="sizeHint" stdset="0">
84 <size>
85 <width>40</width>
86 <height>20</height>
87 </size>
88 </property>
89 </spacer>
90 </item>
91 <item>
92 <widget class="QPushButton" name="closeStelWindow">
93 <property name="minimumSize">
94 <size>
95 <width>16</width>
96 <height>16</height>
97 </size>
98 </property>
99 <property name="maximumSize">
100 <size>
101 <width>16</width>
102 <height>16</height>
103 </size>
104 </property>
105 <property name="focusPolicy">
106 <enum>Qt::NoFocus</enum>
107 </property>
108 <property name="text">
109 <string/>
110 </property>
111 </widget>
112 </item>
113 </layout>
114 </widget>
115 </item>
116 <item>
117 <widget class="QGroupBox" name="customInfoGroupBox">
118 <property name="title">
119 <string>Custom Info Settings</string>
120 </property>
121 <property name="alignment">
122 <set>Qt::AlignCenter</set>
123 </property>
124 <layout class="QVBoxLayout" name="verticalLayout_3">
125 <property name="margin">
126 <number>0</number>
127 </property>
128 <item>
129 <widget class="QCheckBox" name="nameCheckBox">
130 <property name="toolTip">
131 <string>Display info about an object's name</string>
132 </property>
133 <property name="text">
134 <string>An object's name</string>
135 </property>
136 </widget>
137 </item>
138 <item>
139 <widget class="QCheckBox" name="catalogNumberCheckBox">
140 <property name="toolTip">
141 <string>Display info about a catalog numbers</string>
142 </property>
143 <property name="text">
144 <string>Catalog numbers</string>
145 </property>
146 </widget>
147 </item>
148 <item>
149 <widget class="QCheckBox" name="magnitudeCheckBox">
150 <property name="toolTip">
151 <string>Display info about a visual magnitude</string>
152 </property>
153 <property name="text">
154 <string>Visual magnitude</string>
155 </property>
156 </widget>
157 </item>
158 <item>
159 <widget class="QCheckBox" name="absoluteMagnitudeCheckBox">
160 <property name="toolTip">
161 <string>Display info about an absolute magnitude</string>
162 </property>
163 <property name="text">
164 <string>Absolute magnitude</string>
165 </property>
166 </widget>
167 </item>
168 <item>
169 <widget class="QCheckBox" name="raDecJ2000CheckBox">
170 <property name="toolTip">
171 <string>Display the equatorial position (J2000 ref)</string>
172 </property>
173 <property name="text">
174 <string>The equatorial coordinates (J2000 ref)</string>
175 </property>
176 </widget>
177 </item>
178 <item>
179 <widget class="QCheckBox" name="raDecOfDateCheckBox">
180 <property name="toolTip">
181 <string>Display the equatorial position (of date)</string>
182 </property>
183 <property name="text">
184 <string>The equatorial coordinates (of date)</string>
185 </property>
186 </widget>
187 </item>
188 <item>
189 <widget class="QCheckBox" name="altAzCheckBox">
190 <property name="toolTip">
191 <string>Display the altitude and azimuth position</string>
192 </property>
193 <property name="text">
194 <string>The alt-azimuthal coordinates</string>
195 </property>
196 </widget>
197 </item>
198 <item>
199 <widget class="QCheckBox" name="hourAngleCheckBox">
200 <property name="toolTip">
201 <string>Display the hour angle + DE (of date)</string>
202 </property>
203 <property name="text">
204 <string>The hour angle</string>
205 </property>
206 </widget>
207 </item>
208 <item>
209 <widget class="QCheckBox" name="distanceCheckBox">
210 <property name="toolTip">
211 <string>Display info about an object's distance</string>
212 </property>
213 <property name="text">
214 <string>Object's distance</string>
215 </property>
216 </widget>
217 </item>
218 <item>
219 <widget class="QCheckBox" name="sizeCheckBox">
220 <property name="toolTip">
221 <string>Display info about an object's size</string>
222 </property>
223 <property name="text">
224 <string>Object's size</string>
225 </property>
226 </widget>
227 </item>
228 <item>
229 <widget class="QCheckBox" name="extra1CheckBox">
230 <property name="toolTip">
231 <string>Display a derived class-specific extra fields</string>
232 </property>
233 <property name="text">
234 <string>Additional info (Extra 1)</string>
235 </property>
236 </widget>
237 </item>
238 <item>
239 <widget class="QCheckBox" name="extra2CheckBox">
240 <property name="toolTip">
241 <string>Display a derived class-specific extra fields</string>
242 </property>
243 <property name="text">
244 <string>Additional info (Extra 2)</string>
245 </property>
246 </widget>
247 </item>
248 <item>
249 <widget class="QCheckBox" name="extra3CheckBox">
250 <property name="toolTip">
251 <string>Display a derived class-specific extra fields</string>
252 </property>
253 <property name="text">
254 <string>Additional info (Extra 3)</string>
255 </property>
256 </widget>
257 </item>
258 <item>
259 <spacer name="verticalSpacer">
260 <property name="orientation">
261 <enum>Qt::Vertical</enum>
262 </property>
263 <property name="sizeHint" stdset="0">
264 <size>
265 <width>20</width>
266 <height>40</height>
267 </size>
268 </property>
269 </spacer>
270 </item>
271 </layout>
272 </widget>
273 </item>
274 </layout>
275 </widget>
276 <customwidgets>
277 <customwidget>
278 <class>BarFrame</class>
279 <extends>QFrame</extends>
280 <header>Dialog.hpp</header>
281 <container>1</container>
282 </customwidget>
283 </customwidgets>
284 <resources/>
285 <connections/>
286</ui>
2870
=== modified file 'src/gui/SkyGui.cpp'
--- src/gui/SkyGui.cpp 2012-04-13 16:50:19 +0000
+++ src/gui/SkyGui.cpp 2012-07-19 16:10:25 +0000
@@ -49,7 +49,36 @@
49 }49 }
50 else if (objectInfo == "custom")50 else if (objectInfo == "custom")
51 {51 {
52 infoTextFilters = StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString());52 infoTextFilters = StelObject::InfoStringGroup(0);
53
54 conf->beginGroup("custom_selected_info");
55 if (conf->value("flag_show_name", false).toBool())
56 infoTextFilters |= StelObject::Name;
57 if (conf->value("flag_show_catalognumber", false).toBool())
58 infoTextFilters |= StelObject::CatalogNumber;
59 if (conf->value("flag_show_magnitude", false).toBool())
60 infoTextFilters |= StelObject::Magnitude;
61 if (conf->value("flag_show_absolutemagnitude", false).toBool())
62 infoTextFilters |= StelObject::AbsoluteMagnitude;
63 if (conf->value("flag_show_radecj2000", false).toBool())
64 infoTextFilters |= StelObject::RaDecJ2000;
65 if (conf->value("flag_show_radecofdate", false).toBool())
66 infoTextFilters |= StelObject::RaDecOfDate;
67 if (conf->value("flag_show_hourangle", false).toBool())
68 infoTextFilters |= StelObject::HourAngle;
69 if (conf->value("flag_show_altaz", false).toBool())
70 infoTextFilters |= StelObject::AltAzi;
71 if (conf->value("flag_show_distance", false).toBool())
72 infoTextFilters |= StelObject::Distance;
73 if (conf->value("flag_show_size", false).toBool())
74 infoTextFilters |= StelObject::Size;
75 if (conf->value("flag_show_extra1", false).toBool())
76 infoTextFilters |= StelObject::Extra1;
77 if (conf->value("flag_show_extra2", false).toBool())
78 infoTextFilters |= StelObject::Extra2;
79 if (conf->value("flag_show_extra3", false).toBool())
80 infoTextFilters |= StelObject::Extra3;
81 conf->endGroup();
53 }82 }
54 else83 else
55 {84 {
5685
=== modified file 'src/gui/SkyGui.hpp'
--- src/gui/SkyGui.hpp 2012-02-19 00:21:59 +0000
+++ src/gui/SkyGui.hpp 2012-07-19 16:10:25 +0000
@@ -38,6 +38,8 @@
38class InfoPanel : public QGraphicsTextItem38class InfoPanel : public QGraphicsTextItem
39{39{
40 public:40 public:
41 //! Reads "gui/selected_object_info", etc from the configuration file.
42 //! @todo Bad idea to read from the configuration file in a constructor? --BM
41 InfoPanel(QGraphicsItem* parent);43 InfoPanel(QGraphicsItem* parent);
42 void setInfoTextFilters(const StelObject::InfoStringGroup& aflags) {infoTextFilters=aflags;}44 void setInfoTextFilters(const StelObject::InfoStringGroup& aflags) {infoTextFilters=aflags;}
43 const StelObject::InfoStringGroup& getInfoTextFilters(void) const {return infoTextFilters;}45 const StelObject::InfoStringGroup& getInfoTextFilters(void) const {return infoTextFilters;}
4446
=== modified file 'src/gui/configurationDialog.ui'
--- src/gui/configurationDialog.ui 2012-06-29 14:07:11 +0000
+++ src/gui/configurationDialog.ui 2012-07-19 16:10:25 +0000
@@ -6,13 +6,10 @@
6 <rect>6 <rect>
7 <x>0</x>7 <x>0</x>
8 <y>0</y>8 <y>0</y>
9 <width>428</width>9 <width>525</width>
10 <height>463</height>10 <height>465</height>
11 </rect>11 </rect>
12 </property>12 </property>
13 <property name="styleSheet">
14 <string notr="true"/>
15 </property>
16 <layout class="QVBoxLayout">13 <layout class="QVBoxLayout">
17 <property name="spacing">14 <property name="spacing">
18 <number>0</number>15 <number>0</number>
@@ -132,9 +129,6 @@
132 </property>129 </property>
133 <item row="1" column="0">130 <item row="1" column="0">
134 <widget class="QStackedWidget" name="configurationStackedWidget">131 <widget class="QStackedWidget" name="configurationStackedWidget">
135 <property name="currentIndex">
136 <number>1</number>
137 </property>
138 <widget class="QWidget" name="page">132 <widget class="QWidget" name="page">
139 <layout class="QVBoxLayout" name="verticalLayout_10">133 <layout class="QVBoxLayout" name="verticalLayout_10">
140 <property name="spacing">134 <property name="spacing">
@@ -145,18 +139,6 @@
145 </property>139 </property>
146 <item>140 <item>
147 <widget class="QGroupBox" name="groupBox_2">141 <widget class="QGroupBox" name="groupBox_2">
148 <property name="sizePolicy">
149 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
150 <horstretch>0</horstretch>
151 <verstretch>0</verstretch>
152 </sizepolicy>
153 </property>
154 <property name="minimumSize">
155 <size>
156 <width>0</width>
157 <height>0</height>
158 </size>
159 </property>
160 <property name="title">142 <property name="title">
161 <string>Program language</string>143 <string>Program language</string>
162 </property>144 </property>
@@ -190,106 +172,7 @@
190 </widget>172 </widget>
191 </item>173 </item>
192 <item>174 <item>
193 <widget class="QGroupBox" name="groupBox_4">
194 <property name="sizePolicy">
195 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
196 <horstretch>0</horstretch>
197 <verstretch>0</verstretch>
198 </sizepolicy>
199 </property>
200 <property name="font">
201 <font>
202 <weight>50</weight>
203 <bold>false</bold>
204 <kerning>true</kerning>
205 </font>
206 </property>
207 <property name="title">
208 <string>Selected object information</string>
209 </property>
210 <layout class="QVBoxLayout" name="verticalLayout_5">
211 <property name="margin">
212 <number>0</number>
213 </property>
214 <item>
215 <layout class="QHBoxLayout" name="horizontalLayout_13">
216 <item>
217 <widget class="QRadioButton" name="allSelectedInfoRadio">
218 <property name="toolTip">
219 <string>Display all information available</string>
220 </property>
221 <property name="text">
222 <string>All available</string>
223 </property>
224 </widget>
225 </item>
226 <item>
227 <widget class="QRadioButton" name="briefSelectedInfoRadio">
228 <property name="toolTip">
229 <string>Display less information</string>
230 </property>
231 <property name="text">
232 <string>Short</string>
233 </property>
234 </widget>
235 </item>
236 </layout>
237 </item>
238 <item>
239 <layout class="QHBoxLayout" name="horizontalLayout_14">
240 <item>
241 <layout class="QHBoxLayout" name="horizontalLayout_16">
242 <item>
243 <widget class="QRadioButton" name="customSelectedInfoRadio">
244 <property name="toolTip">
245 <string>Display user settings information</string>
246 </property>
247 <property name="text">
248 <string>Customized</string>
249 </property>
250 </widget>
251 </item>
252 <item>
253 <widget class="QPushButton" name="pushButtonCustomInfoDialog">
254 <property name="enabled">
255 <bool>true</bool>
256 </property>
257 <property name="text">
258 <string notr="true">...</string>
259 </property>
260 </widget>
261 </item>
262 </layout>
263 </item>
264 <item>
265 <widget class="QRadioButton" name="noSelectedInfoRadio">
266 <property name="toolTip">
267 <string>Display no information</string>
268 </property>
269 <property name="text">
270 <string>None</string>
271 </property>
272 </widget>
273 </item>
274 </layout>
275 </item>
276 </layout>
277 </widget>
278 </item>
279 <item>
280 <widget class="QGroupBox" name="groupBox_6">175 <widget class="QGroupBox" name="groupBox_6">
281 <property name="sizePolicy">
282 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
283 <horstretch>0</horstretch>
284 <verstretch>0</verstretch>
285 </sizepolicy>
286 </property>
287 <property name="font">
288 <font>
289 <weight>50</weight>
290 <bold>false</bold>
291 </font>
292 </property>
293 <property name="title">176 <property name="title">
294 <string>Default options</string>177 <string>Default options</string>
295 </property>178 </property>
@@ -405,6 +288,243 @@
405 </item>288 </item>
406 </layout>289 </layout>
407 </widget>290 </widget>
291 <widget class="QWidget" name="pageSelectedObjectInfo">
292 <layout class="QVBoxLayout" name="verticalLayout_2">
293 <property name="spacing">
294 <number>0</number>
295 </property>
296 <property name="margin">
297 <number>0</number>
298 </property>
299 <item>
300 <widget class="QGroupBox" name="groupBox_4">
301 <property name="sizePolicy">
302 <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
303 <horstretch>0</horstretch>
304 <verstretch>0</verstretch>
305 </sizepolicy>
306 </property>
307 <property name="title">
308 <string>Selected object information</string>
309 </property>
310 <layout class="QVBoxLayout" name="verticalLayout_5">
311 <property name="margin">
312 <number>0</number>
313 </property>
314 <item>
315 <widget class="QRadioButton" name="allSelectedInfoRadio">
316 <property name="toolTip">
317 <string>Display all information available</string>
318 </property>
319 <property name="text">
320 <string>All available</string>
321 </property>
322 </widget>
323 </item>
324 <item>
325 <widget class="QRadioButton" name="briefSelectedInfoRadio">
326 <property name="toolTip">
327 <string>Display less information</string>
328 </property>
329 <property name="text">
330 <string>Short</string>
331 </property>
332 </widget>
333 </item>
334 <item>
335 <widget class="QRadioButton" name="noSelectedInfoRadio">
336 <property name="toolTip">
337 <string>Display no information</string>
338 </property>
339 <property name="text">
340 <string>None</string>
341 </property>
342 </widget>
343 </item>
344 <item>
345 <widget class="QRadioButton" name="customSelectedInfoRadio">
346 <property name="toolTip">
347 <string>Display user settings information</string>
348 </property>
349 <property name="text">
350 <string>Customized</string>
351 </property>
352 </widget>
353 </item>
354 </layout>
355 </widget>
356 </item>
357 <item>
358 <widget class="QGroupBox" name="groupBoxDisplayedFields">
359 <property name="sizePolicy">
360 <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
361 <horstretch>0</horstretch>
362 <verstretch>0</verstretch>
363 </sizepolicy>
364 </property>
365 <property name="title">
366 <string>Displayed fields</string>
367 </property>
368 <layout class="QGridLayout" name="gridLayoutDisplayedFields">
369 <property name="margin">
370 <number>0</number>
371 </property>
372 <item row="0" column="1">
373 <widget class="QCheckBox" name="checkBoxVisualMag">
374 <property name="text">
375 <string>Visual magnitude</string>
376 </property>
377 <attribute name="buttonGroup">
378 <string notr="true">buttonGroupDisplayedFields</string>
379 </attribute>
380 </widget>
381 </item>
382 <item row="6" column="0">
383 <widget class="QCheckBox" name="checkBoxExtra1">
384 <property name="toolTip">
385 <string>Spectral class, nebula type, etc.</string>
386 </property>
387 <property name="text">
388 <string>Additional information 1</string>
389 </property>
390 <attribute name="buttonGroup">
391 <string notr="true">buttonGroupDisplayedFields</string>
392 </attribute>
393 </widget>
394 </item>
395 <item row="7" column="0" colspan="2">
396 <widget class="QCheckBox" name="checkBoxExtra3">
397 <property name="text">
398 <string>Additional information 3</string>
399 </property>
400 <attribute name="buttonGroup">
401 <string notr="true">buttonGroupDisplayedFields</string>
402 </attribute>
403 </widget>
404 </item>
405 <item row="1" column="0">
406 <widget class="QCheckBox" name="checkBoxCatalogNumbers">
407 <property name="text">
408 <string>Catalog number(s)</string>
409 </property>
410 <attribute name="buttonGroup">
411 <string notr="true">buttonGroupDisplayedFields</string>
412 </attribute>
413 </widget>
414 </item>
415 <item row="0" column="0">
416 <widget class="QCheckBox" name="checkBoxName">
417 <property name="text">
418 <string>Name</string>
419 </property>
420 <attribute name="buttonGroup">
421 <string notr="true">buttonGroupDisplayedFields</string>
422 </attribute>
423 </widget>
424 </item>
425 <item row="6" column="1">
426 <widget class="QCheckBox" name="checkBoxExtra2">
427 <property name="toolTip">
428 <string/>
429 </property>
430 <property name="text">
431 <string>Additional information 2</string>
432 </property>
433 <attribute name="buttonGroup">
434 <string notr="true">buttonGroupDisplayedFields</string>
435 </attribute>
436 </widget>
437 </item>
438 <item row="1" column="1">
439 <widget class="QCheckBox" name="checkBoxAbsoluteMag">
440 <property name="text">
441 <string>Absolute magnitude</string>
442 </property>
443 <attribute name="buttonGroup">
444 <string notr="true">buttonGroupDisplayedFields</string>
445 </attribute>
446 </widget>
447 </item>
448 <item row="4" column="1">
449 <widget class="QCheckBox" name="checkBoxAltAz">
450 <property name="toolTip">
451 <string>Horizontal coordinates</string>
452 </property>
453 <property name="text">
454 <string>Altitude/Azimuth</string>
455 </property>
456 <attribute name="buttonGroup">
457 <string notr="true">buttonGroupDisplayedFields</string>
458 </attribute>
459 </widget>
460 </item>
461 <item row="5" column="1">
462 <widget class="QCheckBox" name="checkBoxSize">
463 <property name="toolTip">
464 <string>Angular or physical size</string>
465 </property>
466 <property name="text">
467 <string>Size</string>
468 </property>
469 <attribute name="buttonGroup">
470 <string notr="true">buttonGroupDisplayedFields</string>
471 </attribute>
472 </widget>
473 </item>
474 <item row="3" column="0" colspan="2">
475 <widget class="QCheckBox" name="checkBoxRaDecOfDate">
476 <property name="toolTip">
477 <string>Geocentric equatorial coordinates, equinox of date</string>
478 </property>
479 <property name="text">
480 <string>Right ascension/Declination (of date)</string>
481 </property>
482 <attribute name="buttonGroup">
483 <string notr="true">buttonGroupDisplayedFields</string>
484 </attribute>
485 </widget>
486 </item>
487 <item row="5" column="0">
488 <widget class="QCheckBox" name="checkBoxDistance">
489 <property name="text">
490 <string>Distance</string>
491 </property>
492 <attribute name="buttonGroup">
493 <string notr="true">buttonGroupDisplayedFields</string>
494 </attribute>
495 </widget>
496 </item>
497 <item row="2" column="0" colspan="2">
498 <widget class="QCheckBox" name="checkBoxRaDecJ2000">
499 <property name="toolTip">
500 <string>Geocentric equatorial coordinates, equinox of J2000.0</string>
501 </property>
502 <property name="text">
503 <string>Right ascension/Declination (J2000)</string>
504 </property>
505 <attribute name="buttonGroup">
506 <string notr="true">buttonGroupDisplayedFields</string>
507 </attribute>
508 </widget>
509 </item>
510 <item row="4" column="0">
511 <widget class="QCheckBox" name="checkBoxHourAngle">
512 <property name="toolTip">
513 <string>Topocentric equatorial coordinates</string>
514 </property>
515 <property name="text">
516 <string>Hour angle/Declination</string>
517 </property>
518 <attribute name="buttonGroup">
519 <string notr="true">buttonGroupDisplayedFields</string>
520 </attribute>
521 </widget>
522 </item>
523 </layout>
524 </widget>
525 </item>
526 </layout>
527 </widget>
408 <widget class="QWidget" name="page_2">528 <widget class="QWidget" name="page_2">
409 <layout class="QVBoxLayout" name="verticalLayout_11">529 <layout class="QVBoxLayout" name="verticalLayout_11">
410 <property name="spacing">530 <property name="spacing">
@@ -1131,6 +1251,18 @@
1131 </item>1251 </item>
1132 <item>1252 <item>
1133 <property name="text">1253 <property name="text">
1254 <string>Information</string>
1255 </property>
1256 <property name="toolTip">
1257 <string>Selected object information</string>
1258 </property>
1259 <property name="icon">
1260 <iconset resource="../../data/gui/guiRes.qrc">
1261 <normaloff>:/graphicGui/tabicon-info.png</normaloff>:/graphicGui/tabicon-info.png</iconset>
1262 </property>
1263 </item>
1264 <item>
1265 <property name="text">
1134 <string>Navigation</string>1266 <string>Navigation</string>
1135 </property>1267 </property>
1136 <property name="icon">1268 <property name="icon">
@@ -1183,8 +1315,84 @@
1183 <container>1</container>1315 <container>1</container>
1184 </customwidget>1316 </customwidget>
1185 </customwidgets>1317 </customwidgets>
1318 <tabstops>
1319 <tabstop>programLanguageComboBox</tabstop>
1320 <tabstop>setViewingOptionAsDefaultPushButton</tabstop>
1321 <tabstop>restoreDefaultsButton</tabstop>
1322 <tabstop>allSelectedInfoRadio</tabstop>
1323 <tabstop>briefSelectedInfoRadio</tabstop>
1324 <tabstop>noSelectedInfoRadio</tabstop>
1325 <tabstop>customSelectedInfoRadio</tabstop>
1326 <tabstop>checkBoxName</tabstop>
1327 <tabstop>checkBoxCatalogNumbers</tabstop>
1328 <tabstop>checkBoxVisualMag</tabstop>
1329 <tabstop>checkBoxAbsoluteMag</tabstop>
1330 <tabstop>checkBoxRaDecJ2000</tabstop>
1331 <tabstop>checkBoxRaDecOfDate</tabstop>
1332 <tabstop>checkBoxHourAngle</tabstop>
1333 <tabstop>checkBoxAltAz</tabstop>
1334 <tabstop>checkBoxDistance</tabstop>
1335 <tabstop>checkBoxSize</tabstop>
1336 <tabstop>checkBoxExtra1</tabstop>
1337 <tabstop>checkBoxExtra2</tabstop>
1338 <tabstop>checkBoxExtra3</tabstop>
1339 <tabstop>enableKeysNavigationCheckBox</tabstop>
1340 <tabstop>enableMouseNavigationCheckBox</tabstop>
1341 <tabstop>systemTimeRadio</tabstop>
1342 <tabstop>todayRadio</tabstop>
1343 <tabstop>todayTimeSpinBox</tabstop>
1344 <tabstop>fixedTimeRadio</tabstop>
1345 <tabstop>fixedDateTimeEdit</tabstop>
1346 <tabstop>fixedDateTimeCurrentButton</tabstop>
1347 <tabstop>mouseTimeoutCheckbox</tabstop>
1348 <tabstop>mouseTimeoutSpinBox</tabstop>
1349 <tabstop>showFlipButtonsCheckbox</tabstop>
1350 <tabstop>showNebulaBgButtonCheckbox</tabstop>
1351 <tabstop>sphericMirrorCheckbox</tabstop>
1352 <tabstop>diskViewportCheckbox</tabstop>
1353 <tabstop>gravityLabelCheckbox</tabstop>
1354 <tabstop>selectSingleConstellationButton</tabstop>
1355 <tabstop>autoZoomResetsDirectionCheckbox</tabstop>
1356 <tabstop>screenshotBrowseButton</tabstop>
1357 <tabstop>screenshotDirEdit</tabstop>
1358 <tabstop>invertScreenShotColorsCheckBox</tabstop>
1359 <tabstop>getStarsButton</tabstop>
1360 <tabstop>downloadRetryButton</tabstop>
1361 <tabstop>downloadCancelButton</tabstop>
1362 <tabstop>scriptInfoBrowser</tabstop>
1363 <tabstop>runScriptButton</tabstop>
1364 <tabstop>stopScriptButton</tabstop>
1365 <tabstop>closeWindowAtScriptRunCheckbox</tabstop>
1366 <tabstop>pluginsInfoBrowser</tabstop>
1367 <tabstop>pluginLoadAtStartupCheckBox</tabstop>
1368 <tabstop>pluginConfigureButton</tabstop>
1369 </tabstops>
1186 <resources>1370 <resources>
1187 <include location="../../data/gui/guiRes.qrc"/>1371 <include location="../../data/gui/guiRes.qrc"/>
1188 </resources>1372 </resources>
1189 <connections/>1373 <connections>
1374 <connection>
1375 <sender>stackListWidget</sender>
1376 <signal>currentRowChanged(int)</signal>
1377 <receiver>configurationStackedWidget</receiver>
1378 <slot>setCurrentIndex(int)</slot>
1379 <hints>
1380 <hint type="sourcelabel">
1381 <x>237</x>
1382 <y>62</y>
1383 </hint>
1384 <hint type="destinationlabel">
1385 <x>237</x>
1386 <y>281</y>
1387 </hint>
1388 </hints>
1389 </connection>
1390 </connections>
1391 <buttongroups>
1392 <buttongroup name="buttonGroupDisplayedFields">
1393 <property name="exclusive">
1394 <bool>false</bool>
1395 </property>
1396 </buttongroup>
1397 </buttongroups>
1190</ui>1398</ui>