Merge lp:~alexwolf/stellarium/info into lp:stellarium
- info
- Merge into trunk
Status: | Superseded |
---|---|
Proposed branch: | lp:~alexwolf/stellarium/info |
Merge into: | lp:stellarium |
Diff against target: |
1838 lines (+1136/-125) 15 files modified
data/default_config.ini (+15/-0) po/stellarium/POTFILES.in (+1/-0) po/stellarium/stellarium.pot (+194/-85) src/CMakeLists.txt (+4/-0) src/core/StelObject.cpp (+2/-1) src/core/StelObjectMgr.cpp (+154/-0) src/core/StelObjectMgr.hpp (+2/-0) src/core/StelUtils.hpp (+4/-4) src/gui/ConfigurationDialog.cpp (+49/-5) src/gui/ConfigurationDialog.hpp (+6/-0) src/gui/CustomInfoDialog.cpp (+249/-0) src/gui/CustomInfoDialog.hpp (+96/-0) src/gui/CustomInfoDialog.ui (+286/-0) src/gui/SkyGui.cpp (+12/-0) src/gui/configurationDialog.ui (+62/-30) |
To merge this branch: | bzr merge lp:~alexwolf/stellarium/info |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexander Wolf | Needs Resubmitting | ||
gzotti | Pending | ||
treaves | code | Pending | |
Bogdan Marinov | Pending | ||
Matthew Gates | Pending | ||
Review via email: mp+101937@code.launchpad.net |
This proposal supersedes a proposal from 2012-04-04.
This proposal has been superseded by a proposal from 2012-04-13.
Commit message
Description of the change
I'm implemented of opportunity to freely choose the object's information to display. This code maybe improved but right now I don't have a nice ideas for this.
Comments?
gzotti (georg-zotti) wrote : Posted in a previous version of this proposal | # |
Bogdan Marinov (daggerstab) wrote : Posted in a previous version of this proposal | # |
> I did not build the branch, but from the code it seems to be a good addition.
> Some users may want to avoid "all those numbers", others will want even more,
> this is a good step.
Not building the branch is a really bad idea for a number of reasons. At the very least, this Launchpad feature is intended mainly for code review, not voting on the appropriateness of the feature.
Bogdan Marinov (daggerstab) wrote : Posted in a previous version of this proposal | # |
Segmentation fault on pressing the "..." button.
There is also a number of other issues, but I am too tired now to bother listing them.
treaves (treaves) wrote : Posted in a previous version of this proposal | # |
Why can't getCustomInfoSt
Please use braces on all conditionals.
treaves (treaves) wrote : Posted in a previous version of this proposal | # |
> Why can't getCustomInfoSt
>
> Please use braces on all conditionals.
I too get the segfault.
Alexander Wolf (alexwolf) wrote : | # |
I'm made a refactoring of code
Alexander Wolf (alexwolf) wrote : | # |
Oops... sometimes code get segfaults :(
- 5261. By Alexander Wolf
-
fixed segfaults
Alexander Wolf (alexwolf) wrote : | # |
O.K. segfault has been fixed
- 5262. By Alexander Wolf
-
drop unused include QSettings
Unmerged revisions
Preview Diff
1 | === modified file 'data/default_config.ini' | |||
2 | --- data/default_config.ini 2012-03-14 14:18:10 +0000 | |||
3 | +++ data/default_config.ini 2012-04-13 18:05:24 +0000 | |||
4 | @@ -85,6 +85,21 @@ | |||
5 | 85 | labels_amount = 3.0 | 85 | labels_amount = 3.0 |
6 | 86 | init_bortle_scale = 3 | 86 | init_bortle_scale = 3 |
7 | 87 | 87 | ||
8 | 88 | [custom_selected_info] | ||
9 | 89 | flag_show_absolutemagnitude = false | ||
10 | 90 | flag_show_altaz = false | ||
11 | 91 | flag_show_catalognumber = false | ||
12 | 92 | flag_show_distance = false | ||
13 | 93 | flag_show_extra1 = false | ||
14 | 94 | flag_show_extra2 = false | ||
15 | 95 | flag_show_extra3 = false | ||
16 | 96 | flag_show_hourangle = false | ||
17 | 97 | flag_show_magnitude = false | ||
18 | 98 | flag_show_name = false | ||
19 | 99 | flag_show_radecj2000 = false | ||
20 | 100 | flag_show_radecofdate = false | ||
21 | 101 | flag_show_size = false | ||
22 | 102 | |||
23 | 88 | [gui] | 103 | [gui] |
24 | 89 | flag_show_flip_buttons = false | 104 | flag_show_flip_buttons = false |
25 | 90 | flag_show_nebulae_background_button = false | 105 | flag_show_nebulae_background_button = false |
26 | 91 | 106 | ||
27 | === modified file 'po/stellarium/POTFILES.in' | |||
28 | --- po/stellarium/POTFILES.in 2012-03-10 10:35:22 +0000 | |||
29 | +++ po/stellarium/POTFILES.in 2012-04-13 18:05:24 +0000 | |||
30 | @@ -37,6 +37,7 @@ | |||
31 | 37 | src/ui_configurationDialog.h | 37 | src/ui_configurationDialog.h |
32 | 38 | src/ui_addRemoveLandscapesDialog.h | 38 | src/ui_addRemoveLandscapesDialog.h |
33 | 39 | src/ui_AtmosphereDialog.h | 39 | src/ui_AtmosphereDialog.h |
34 | 40 | src/ui_CustomInfoDialog.h | ||
35 | 40 | src/ui_scriptConsole.h | 41 | src/ui_scriptConsole.h |
36 | 41 | 42 | ||
37 | 42 | # Plug-in translations | 43 | # Plug-in translations |
38 | 43 | 44 | ||
39 | === modified file 'po/stellarium/stellarium.pot' | |||
40 | --- po/stellarium/stellarium.pot 2012-04-11 09:32:09 +0000 | |||
41 | +++ po/stellarium/stellarium.pot 2012-04-13 18:05:24 +0000 | |||
42 | @@ -8,7 +8,7 @@ | |||
43 | 8 | msgstr "" | 8 | msgstr "" |
44 | 9 | "Project-Id-Version: PACKAGE VERSION\n" | 9 | "Project-Id-Version: PACKAGE VERSION\n" |
45 | 10 | "Report-Msgid-Bugs-To: \n" | 10 | "Report-Msgid-Bugs-To: \n" |
47 | 11 | "POT-Creation-Date: 2012-04-11 16:29+0700\n" | 11 | "POT-Creation-Date: 2012-04-13 23:56+0700\n" |
48 | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
49 | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | 13 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
50 | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" | 14 | "Language-Team: LANGUAGE <LL@li.org>\n" |
51 | @@ -323,68 +323,68 @@ | |||
52 | 323 | msgid "Az/Alt: %1/%2" | 323 | msgid "Az/Alt: %1/%2" |
53 | 324 | msgstr "" | 324 | msgstr "" |
54 | 325 | 325 | ||
56 | 326 | #: src/gui/ConfigurationDialog.cpp:312 | 326 | #: src/gui/ConfigurationDialog.cpp:342 |
57 | 327 | msgid "Select screenshot directory" | 327 | msgid "Select screenshot directory" |
58 | 328 | msgstr "" | 328 | msgstr "" |
59 | 329 | 329 | ||
61 | 330 | #: src/gui/ConfigurationDialog.cpp:487 | 330 | #: src/gui/ConfigurationDialog.cpp:519 |
62 | 331 | #, qt-format | 331 | #, qt-format |
63 | 332 | msgid "Startup FOV: %1%2" | 332 | msgid "Startup FOV: %1%2" |
64 | 333 | msgstr "" | 333 | msgstr "" |
65 | 334 | 334 | ||
67 | 335 | #: src/gui/ConfigurationDialog.cpp:495 | 335 | #: src/gui/ConfigurationDialog.cpp:527 |
68 | 336 | #, qt-format | 336 | #, qt-format |
69 | 337 | msgid "Startup direction of view Az/Alt: %1/%2" | 337 | msgid "Startup direction of view Az/Alt: %1/%2" |
70 | 338 | msgstr "" | 338 | msgstr "" |
71 | 339 | 339 | ||
73 | 340 | #: src/gui/ConfigurationDialog.cpp:534 | 340 | #: src/gui/ConfigurationDialog.cpp:566 |
74 | 341 | #: plugins/Satellites/src/gui/SatellitesDialog.cpp:260 | 341 | #: plugins/Satellites/src/gui/SatellitesDialog.cpp:260 |
75 | 342 | msgid "Authors" | 342 | msgid "Authors" |
76 | 343 | msgstr "" | 343 | msgstr "" |
77 | 344 | 344 | ||
79 | 345 | #: src/gui/ConfigurationDialog.cpp:538 src/gui/ViewDialog.cpp:393 | 345 | #: src/gui/ConfigurationDialog.cpp:570 src/gui/ViewDialog.cpp:393 |
80 | 346 | msgid "Contact" | 346 | msgid "Contact" |
81 | 347 | msgstr "" | 347 | msgstr "" |
82 | 348 | 348 | ||
84 | 349 | #: src/gui/ConfigurationDialog.cpp:616 | 349 | #: src/gui/ConfigurationDialog.cpp:648 |
85 | 350 | msgid "Author" | 350 | msgid "Author" |
86 | 351 | msgstr "" | 351 | msgstr "" |
87 | 352 | 352 | ||
89 | 353 | #: src/gui/ConfigurationDialog.cpp:620 | 353 | #: src/gui/ConfigurationDialog.cpp:652 |
90 | 354 | msgid "License" | 354 | msgid "License" |
91 | 355 | msgstr "" | 355 | msgstr "" |
92 | 356 | 356 | ||
94 | 357 | #: src/gui/ConfigurationDialog.cpp:650 | 357 | #: src/gui/ConfigurationDialog.cpp:682 |
95 | 358 | msgid "Running script: " | 358 | msgid "Running script: " |
96 | 359 | msgstr "" | 359 | msgstr "" |
97 | 360 | 360 | ||
99 | 361 | #: src/gui/ConfigurationDialog.cpp:657 | 361 | #: src/gui/ConfigurationDialog.cpp:689 |
100 | 362 | msgid "Running script: [none]" | 362 | msgid "Running script: [none]" |
101 | 363 | msgstr "" | 363 | msgstr "" |
102 | 364 | 364 | ||
104 | 365 | #: src/gui/ConfigurationDialog.cpp:727 | 365 | #: src/gui/ConfigurationDialog.cpp:759 |
105 | 366 | msgid "" | 366 | msgid "" |
106 | 367 | "Finished downloading new star catalogs!\n" | 367 | "Finished downloading new star catalogs!\n" |
107 | 368 | "Restart Stellarium to display them." | 368 | "Restart Stellarium to display them." |
108 | 369 | msgstr "" | 369 | msgstr "" |
109 | 370 | 370 | ||
111 | 371 | #: src/gui/ConfigurationDialog.cpp:731 | 371 | #: src/gui/ConfigurationDialog.cpp:763 |
112 | 372 | msgid "All available star catalogs have been installed." | 372 | msgid "All available star catalogs have been installed." |
113 | 373 | msgstr "" | 373 | msgstr "" |
114 | 374 | 374 | ||
116 | 375 | #: src/gui/ConfigurationDialog.cpp:736 | 375 | #: src/gui/ConfigurationDialog.cpp:768 |
117 | 376 | #, qt-format | 376 | #, qt-format |
118 | 377 | msgid "Get catalog %1 of %2" | 377 | msgid "Get catalog %1 of %2" |
119 | 378 | msgstr "" | 378 | msgstr "" |
120 | 379 | 379 | ||
122 | 380 | #: src/gui/ConfigurationDialog.cpp:743 | 380 | #: src/gui/ConfigurationDialog.cpp:775 |
123 | 381 | #, qt-format | 381 | #, qt-format |
124 | 382 | msgid "" | 382 | msgid "" |
125 | 383 | "Downloading %1...\n" | 383 | "Downloading %1...\n" |
126 | 384 | "(You can close this window.)" | 384 | "(You can close this window.)" |
127 | 385 | msgstr "" | 385 | msgstr "" |
128 | 386 | 386 | ||
130 | 387 | #: src/gui/ConfigurationDialog.cpp:750 | 387 | #: src/gui/ConfigurationDialog.cpp:782 |
131 | 388 | #, qt-format | 388 | #, qt-format |
132 | 389 | msgid "" | 389 | msgid "" |
133 | 390 | "Download size: %1MB\n" | 390 | "Download size: %1MB\n" |
134 | @@ -392,18 +392,18 @@ | |||
135 | 392 | "Magnitude range: %3 - %4" | 392 | "Magnitude range: %3 - %4" |
136 | 393 | msgstr "" | 393 | msgstr "" |
137 | 394 | 394 | ||
139 | 395 | #: src/gui/ConfigurationDialog.cpp:793 src/gui/ConfigurationDialog.cpp:829 | 395 | #: src/gui/ConfigurationDialog.cpp:825 src/gui/ConfigurationDialog.cpp:861 |
140 | 396 | #, qt-format | 396 | #, qt-format |
141 | 397 | msgid "" | 397 | msgid "" |
142 | 398 | "Error downloading %1:\n" | 398 | "Error downloading %1:\n" |
143 | 399 | "%2" | 399 | "%2" |
144 | 400 | msgstr "" | 400 | msgstr "" |
145 | 401 | 401 | ||
147 | 402 | #: src/gui/ConfigurationDialog.cpp:881 | 402 | #: src/gui/ConfigurationDialog.cpp:913 |
148 | 403 | msgid "Verifying file integrity..." | 403 | msgid "Verifying file integrity..." |
149 | 404 | msgstr "" | 404 | msgstr "" |
150 | 405 | 405 | ||
152 | 406 | #: src/gui/ConfigurationDialog.cpp:885 | 406 | #: src/gui/ConfigurationDialog.cpp:917 |
153 | 407 | #, qt-format | 407 | #, qt-format |
154 | 408 | msgid "" | 408 | msgid "" |
155 | 409 | "Error downloading %1:\n" | 409 | "Error downloading %1:\n" |
156 | @@ -2723,7 +2723,7 @@ | |||
157 | 2723 | 2723 | ||
158 | 2724 | #: src/ui_searchDialogGui.h:589 src/ui_viewDialog.h:1137 | 2724 | #: src/ui_searchDialogGui.h:589 src/ui_viewDialog.h:1137 |
159 | 2725 | #: src/ui_viewDialog.h:1142 src/ui_viewDialog.h:1144 | 2725 | #: src/ui_viewDialog.h:1142 src/ui_viewDialog.h:1144 |
161 | 2726 | #: src/ui_configurationDialog.h:855 src/ui_configurationDialog.h:866 | 2726 | #: src/ui_configurationDialog.h:891 src/ui_configurationDialog.h:902 |
162 | 2727 | #: plugins/TelescopeControl/src/ui_telescopeDialog.h:421 | 2727 | #: plugins/TelescopeControl/src/ui_telescopeDialog.h:421 |
163 | 2728 | msgid "Options" | 2728 | msgid "Options" |
164 | 2729 | msgstr "" | 2729 | msgstr "" |
165 | @@ -2917,282 +2917,290 @@ | |||
166 | 2917 | msgid "Visible" | 2917 | msgid "Visible" |
167 | 2918 | msgstr "" | 2918 | msgstr "" |
168 | 2919 | 2919 | ||
170 | 2920 | #: src/ui_configurationDialog.h:753 | 2920 | #: src/ui_configurationDialog.h:785 |
171 | 2921 | msgid "Configuration" | 2921 | msgid "Configuration" |
172 | 2922 | msgstr "" | 2922 | msgstr "" |
173 | 2923 | 2923 | ||
175 | 2924 | #: src/ui_configurationDialog.h:755 | 2924 | #: src/ui_configurationDialog.h:787 |
176 | 2925 | msgid "Program language" | 2925 | msgid "Program language" |
177 | 2926 | msgstr "" | 2926 | msgstr "" |
178 | 2927 | 2927 | ||
180 | 2928 | #: src/ui_configurationDialog.h:756 | 2928 | #: src/ui_configurationDialog.h:788 src/ui_CustomInfoDialog.h:192 |
181 | 2929 | msgid "Selected object information" | 2929 | msgid "Selected object information" |
182 | 2930 | msgstr "" | 2930 | msgstr "" |
183 | 2931 | 2931 | ||
185 | 2932 | #: src/ui_configurationDialog.h:758 | 2932 | #: src/ui_configurationDialog.h:790 |
186 | 2933 | msgid "Display all information available" | 2933 | msgid "Display all information available" |
187 | 2934 | msgstr "" | 2934 | msgstr "" |
188 | 2935 | 2935 | ||
190 | 2936 | #: src/ui_configurationDialog.h:760 | 2936 | #: src/ui_configurationDialog.h:792 |
191 | 2937 | msgid "All available" | 2937 | msgid "All available" |
192 | 2938 | msgstr "" | 2938 | msgstr "" |
193 | 2939 | 2939 | ||
195 | 2940 | #: src/ui_configurationDialog.h:762 | 2940 | #: src/ui_configurationDialog.h:794 |
196 | 2941 | msgid "Display less information" | 2941 | msgid "Display less information" |
197 | 2942 | msgstr "" | 2942 | msgstr "" |
198 | 2943 | 2943 | ||
200 | 2944 | #: src/ui_configurationDialog.h:764 | 2944 | #: src/ui_configurationDialog.h:796 |
201 | 2945 | msgid "Short" | 2945 | msgid "Short" |
202 | 2946 | msgstr "" | 2946 | msgstr "" |
203 | 2947 | 2947 | ||
205 | 2948 | #: src/ui_configurationDialog.h:766 | 2948 | #: src/ui_configurationDialog.h:798 |
206 | 2949 | msgid "Display user settings information" | ||
207 | 2950 | msgstr "" | ||
208 | 2951 | |||
209 | 2952 | #: src/ui_configurationDialog.h:800 | ||
210 | 2953 | msgid "Customized" | ||
211 | 2954 | msgstr "" | ||
212 | 2955 | |||
213 | 2956 | #: src/ui_configurationDialog.h:802 | ||
214 | 2949 | msgid "Display no information" | 2957 | msgid "Display no information" |
215 | 2950 | msgstr "" | 2958 | msgstr "" |
216 | 2951 | 2959 | ||
218 | 2952 | #: src/ui_configurationDialog.h:768 | 2960 | #: src/ui_configurationDialog.h:804 |
219 | 2953 | msgid "None" | 2961 | msgid "None" |
220 | 2954 | msgstr "" | 2962 | msgstr "" |
221 | 2955 | 2963 | ||
223 | 2956 | #: src/ui_configurationDialog.h:769 | 2964 | #: src/ui_configurationDialog.h:805 |
224 | 2957 | msgid "Default options" | 2965 | msgid "Default options" |
225 | 2958 | msgstr "" | 2966 | msgstr "" |
226 | 2959 | 2967 | ||
228 | 2960 | #: src/ui_configurationDialog.h:771 | 2968 | #: src/ui_configurationDialog.h:807 |
229 | 2961 | msgid "" | 2969 | msgid "" |
230 | 2962 | "Save the settings you've changed this session to be the same the next time " | 2970 | "Save the settings you've changed this session to be the same the next time " |
231 | 2963 | "you start Stellarium" | 2971 | "you start Stellarium" |
232 | 2964 | msgstr "" | 2972 | msgstr "" |
233 | 2965 | 2973 | ||
235 | 2966 | #: src/ui_configurationDialog.h:773 | 2974 | #: src/ui_configurationDialog.h:809 |
236 | 2967 | #: plugins/TimeZoneConfiguration/src/ui_timeZoneConfigurationWindow.h:393 | 2975 | #: plugins/TimeZoneConfiguration/src/ui_timeZoneConfigurationWindow.h:393 |
237 | 2968 | msgid "Save settings" | 2976 | msgid "Save settings" |
238 | 2969 | msgstr "" | 2977 | msgstr "" |
239 | 2970 | 2978 | ||
241 | 2971 | #: src/ui_configurationDialog.h:775 | 2979 | #: src/ui_configurationDialog.h:811 |
242 | 2972 | msgid "Restore the default settings that came with Stellarium" | 2980 | msgid "Restore the default settings that came with Stellarium" |
243 | 2973 | msgstr "" | 2981 | msgstr "" |
244 | 2974 | 2982 | ||
246 | 2975 | #: src/ui_configurationDialog.h:777 | 2983 | #: src/ui_configurationDialog.h:813 |
247 | 2976 | msgid "Restore defaults" | 2984 | msgid "Restore defaults" |
248 | 2977 | msgstr "" | 2985 | msgstr "" |
249 | 2978 | 2986 | ||
251 | 2979 | #: src/ui_configurationDialog.h:778 | 2987 | #: src/ui_configurationDialog.h:814 |
252 | 2980 | msgid "" | 2988 | msgid "" |
253 | 2981 | "Restoring default settings requires a restart of Stellarium. Saving all the " | 2989 | "Restoring default settings requires a restart of Stellarium. Saving all the " |
254 | 2982 | "current options includes the current FOV and direction of view for use at " | 2990 | "current options includes the current FOV and direction of view for use at " |
255 | 2983 | "next startup." | 2991 | "next startup." |
256 | 2984 | msgstr "" | 2992 | msgstr "" |
257 | 2985 | 2993 | ||
259 | 2986 | #: src/ui_configurationDialog.h:780 | 2994 | #: src/ui_configurationDialog.h:816 |
260 | 2987 | msgid "The width of your view when Stellarium starts" | 2995 | msgid "The width of your view when Stellarium starts" |
261 | 2988 | msgstr "" | 2996 | msgstr "" |
262 | 2989 | 2997 | ||
264 | 2990 | #: src/ui_configurationDialog.h:783 | 2998 | #: src/ui_configurationDialog.h:819 |
265 | 2991 | msgid "The direction you're looking when Stellarium starts" | 2999 | msgid "The direction you're looking when Stellarium starts" |
266 | 2992 | msgstr "" | 3000 | msgstr "" |
267 | 2993 | 3001 | ||
269 | 2994 | #: src/ui_configurationDialog.h:785 | 3002 | #: src/ui_configurationDialog.h:821 |
270 | 2995 | msgid "Control" | 3003 | msgid "Control" |
271 | 2996 | msgstr "" | 3004 | msgstr "" |
272 | 2997 | 3005 | ||
274 | 2998 | #: src/ui_configurationDialog.h:787 | 3006 | #: src/ui_configurationDialog.h:823 |
275 | 2999 | msgid "Allow keyboard to pan and zoom" | 3007 | msgid "Allow keyboard to pan and zoom" |
276 | 3000 | msgstr "" | 3008 | msgstr "" |
277 | 3001 | 3009 | ||
279 | 3002 | #: src/ui_configurationDialog.h:789 | 3010 | #: src/ui_configurationDialog.h:825 |
280 | 3003 | msgid "Enable keyboard navigation" | 3011 | msgid "Enable keyboard navigation" |
281 | 3004 | msgstr "" | 3012 | msgstr "" |
282 | 3005 | 3013 | ||
284 | 3006 | #: src/ui_configurationDialog.h:791 | 3014 | #: src/ui_configurationDialog.h:827 |
285 | 3007 | msgid "Allow mouse to pan (drag) and zoom (mousewheel)" | 3015 | msgid "Allow mouse to pan (drag) and zoom (mousewheel)" |
286 | 3008 | msgstr "" | 3016 | msgstr "" |
287 | 3009 | 3017 | ||
289 | 3010 | #: src/ui_configurationDialog.h:793 | 3018 | #: src/ui_configurationDialog.h:829 |
290 | 3011 | msgid "Enable mouse navigation" | 3019 | msgid "Enable mouse navigation" |
291 | 3012 | msgstr "" | 3020 | msgstr "" |
292 | 3013 | 3021 | ||
294 | 3014 | #: src/ui_configurationDialog.h:794 | 3022 | #: src/ui_configurationDialog.h:830 |
295 | 3015 | #: plugins/TextUserInterface/src/TextUserInterface.cpp:180 | 3023 | #: plugins/TextUserInterface/src/TextUserInterface.cpp:180 |
296 | 3016 | msgid "Startup date and time" | 3024 | msgid "Startup date and time" |
297 | 3017 | msgstr "" | 3025 | msgstr "" |
298 | 3018 | 3026 | ||
300 | 3019 | #: src/ui_configurationDialog.h:796 | 3027 | #: src/ui_configurationDialog.h:832 |
301 | 3020 | msgid "Starts Stellarium at system clock date and time" | 3028 | msgid "Starts Stellarium at system clock date and time" |
302 | 3021 | msgstr "" | 3029 | msgstr "" |
303 | 3022 | 3030 | ||
305 | 3023 | #: src/ui_configurationDialog.h:798 | 3031 | #: src/ui_configurationDialog.h:834 |
306 | 3024 | msgid "System date and time" | 3032 | msgid "System date and time" |
307 | 3025 | msgstr "" | 3033 | msgstr "" |
308 | 3026 | 3034 | ||
310 | 3027 | #: src/ui_configurationDialog.h:800 | 3035 | #: src/ui_configurationDialog.h:836 |
311 | 3028 | msgid "" | 3036 | msgid "" |
312 | 3029 | "Sets the simulation time to the next instance of this time of day when " | 3037 | "Sets the simulation time to the next instance of this time of day when " |
313 | 3030 | "Stellarium starts" | 3038 | "Stellarium starts" |
314 | 3031 | msgstr "" | 3039 | msgstr "" |
315 | 3032 | 3040 | ||
317 | 3033 | #: src/ui_configurationDialog.h:802 | 3041 | #: src/ui_configurationDialog.h:838 |
318 | 3034 | msgid "System date at:" | 3042 | msgid "System date at:" |
319 | 3035 | msgstr "" | 3043 | msgstr "" |
320 | 3036 | 3044 | ||
322 | 3037 | #: src/ui_configurationDialog.h:804 | 3045 | #: src/ui_configurationDialog.h:840 |
323 | 3038 | msgid "Use a specific date and time when Stellarium starts up" | 3046 | msgid "Use a specific date and time when Stellarium starts up" |
324 | 3039 | msgstr "" | 3047 | msgstr "" |
325 | 3040 | 3048 | ||
327 | 3041 | #: src/ui_configurationDialog.h:806 | 3049 | #: src/ui_configurationDialog.h:842 |
328 | 3042 | msgid "Other:" | 3050 | msgid "Other:" |
329 | 3043 | msgstr "" | 3051 | msgstr "" |
330 | 3044 | 3052 | ||
332 | 3045 | #: src/ui_configurationDialog.h:807 | 3053 | #: src/ui_configurationDialog.h:843 |
333 | 3046 | msgid "use current" | 3054 | msgid "use current" |
334 | 3047 | msgstr "" | 3055 | msgstr "" |
335 | 3048 | 3056 | ||
337 | 3049 | #: src/ui_configurationDialog.h:808 | 3057 | #: src/ui_configurationDialog.h:844 |
338 | 3050 | msgid "Other" | 3058 | msgid "Other" |
339 | 3051 | msgstr "" | 3059 | msgstr "" |
340 | 3052 | 3060 | ||
342 | 3053 | #: src/ui_configurationDialog.h:810 | 3061 | #: src/ui_configurationDialog.h:846 |
343 | 3054 | msgid "Hides the mouse cursor when inactive" | 3062 | msgid "Hides the mouse cursor when inactive" |
344 | 3055 | msgstr "" | 3063 | msgstr "" |
345 | 3056 | 3064 | ||
347 | 3057 | #: src/ui_configurationDialog.h:812 | 3065 | #: src/ui_configurationDialog.h:848 |
348 | 3058 | msgid "Mouse cursor timeout (seconds):" | 3066 | msgid "Mouse cursor timeout (seconds):" |
349 | 3059 | msgstr "" | 3067 | msgstr "" |
350 | 3060 | 3068 | ||
352 | 3061 | #: src/ui_configurationDialog.h:814 | 3069 | #: src/ui_configurationDialog.h:850 |
353 | 3062 | msgid "Toggle vertical and horizontal image flip buttons." | 3070 | msgid "Toggle vertical and horizontal image flip buttons." |
354 | 3063 | msgstr "" | 3071 | msgstr "" |
355 | 3064 | 3072 | ||
357 | 3065 | #: src/ui_configurationDialog.h:816 | 3073 | #: src/ui_configurationDialog.h:852 |
358 | 3066 | msgid "Show flip buttons" | 3074 | msgid "Show flip buttons" |
359 | 3067 | msgstr "" | 3075 | msgstr "" |
360 | 3068 | 3076 | ||
362 | 3069 | #: src/ui_configurationDialog.h:817 | 3077 | #: src/ui_configurationDialog.h:853 |
363 | 3070 | msgid "Planetarium options" | 3078 | msgid "Planetarium options" |
364 | 3071 | msgstr "" | 3079 | msgstr "" |
365 | 3072 | 3080 | ||
367 | 3073 | #: src/ui_configurationDialog.h:819 | 3081 | #: src/ui_configurationDialog.h:855 |
368 | 3074 | msgid "" | 3082 | msgid "" |
369 | 3075 | "Spheric mirror distortion is used when projecting Stellarium onto a spheric " | 3083 | "Spheric mirror distortion is used when projecting Stellarium onto a spheric " |
370 | 3076 | "mirror for low-cost planetarium systems." | 3084 | "mirror for low-cost planetarium systems." |
371 | 3077 | msgstr "" | 3085 | msgstr "" |
372 | 3078 | 3086 | ||
374 | 3079 | #: src/ui_configurationDialog.h:821 | 3087 | #: src/ui_configurationDialog.h:857 |
375 | 3080 | msgid "Spheric mirror distortion" | 3088 | msgid "Spheric mirror distortion" |
376 | 3081 | msgstr "" | 3089 | msgstr "" |
377 | 3082 | 3090 | ||
379 | 3083 | #: src/ui_configurationDialog.h:823 | 3091 | #: src/ui_configurationDialog.h:859 |
380 | 3084 | msgid "Align labels with the horizon" | 3092 | msgid "Align labels with the horizon" |
381 | 3085 | msgstr "" | 3093 | msgstr "" |
382 | 3086 | 3094 | ||
384 | 3087 | #: src/ui_configurationDialog.h:825 | 3095 | #: src/ui_configurationDialog.h:861 |
385 | 3088 | msgid "Gravity labels" | 3096 | msgid "Gravity labels" |
386 | 3089 | msgstr "" | 3097 | msgstr "" |
387 | 3090 | 3098 | ||
389 | 3091 | #: src/ui_configurationDialog.h:827 | 3099 | #: src/ui_configurationDialog.h:863 |
390 | 3092 | msgid "" | 3100 | msgid "" |
391 | 3093 | "When enabled, the \"auto zoom out\" key will also set the initial viewing " | 3101 | "When enabled, the \"auto zoom out\" key will also set the initial viewing " |
392 | 3094 | "direction" | 3102 | "direction" |
393 | 3095 | msgstr "" | 3103 | msgstr "" |
394 | 3096 | 3104 | ||
396 | 3097 | #: src/ui_configurationDialog.h:829 | 3105 | #: src/ui_configurationDialog.h:865 |
397 | 3098 | msgid "Auto zoom out returns to initial direction of view" | 3106 | msgid "Auto zoom out returns to initial direction of view" |
398 | 3099 | msgstr "" | 3107 | msgstr "" |
399 | 3100 | 3108 | ||
401 | 3101 | #: src/ui_configurationDialog.h:831 | 3109 | #: src/ui_configurationDialog.h:867 |
402 | 3102 | msgid "Mask out everything outside a central circle in the main view" | 3110 | msgid "Mask out everything outside a central circle in the main view" |
403 | 3103 | msgstr "" | 3111 | msgstr "" |
404 | 3104 | 3112 | ||
406 | 3105 | #: src/ui_configurationDialog.h:833 | 3113 | #: src/ui_configurationDialog.h:869 |
407 | 3106 | msgid "Disc viewport" | 3114 | msgid "Disc viewport" |
408 | 3107 | msgstr "" | 3115 | msgstr "" |
409 | 3108 | 3116 | ||
411 | 3109 | #: src/ui_configurationDialog.h:835 | 3117 | #: src/ui_configurationDialog.h:871 |
412 | 3110 | msgid "Hide other constellations when you click one" | 3118 | msgid "Hide other constellations when you click one" |
413 | 3111 | msgstr "" | 3119 | msgstr "" |
414 | 3112 | 3120 | ||
416 | 3113 | #: src/ui_configurationDialog.h:837 | 3121 | #: src/ui_configurationDialog.h:873 |
417 | 3114 | msgid "Select single constellation" | 3122 | msgid "Select single constellation" |
418 | 3115 | msgstr "" | 3123 | msgstr "" |
419 | 3116 | 3124 | ||
421 | 3117 | #: src/ui_configurationDialog.h:838 | 3125 | #: src/ui_configurationDialog.h:874 |
422 | 3118 | msgid "Screenshots" | 3126 | msgid "Screenshots" |
423 | 3119 | msgstr "" | 3127 | msgstr "" |
424 | 3120 | 3128 | ||
426 | 3121 | #: src/ui_configurationDialog.h:839 | 3129 | #: src/ui_configurationDialog.h:875 |
427 | 3122 | msgid "Screenshot Directory" | 3130 | msgid "Screenshot Directory" |
428 | 3123 | msgstr "" | 3131 | msgstr "" |
429 | 3124 | 3132 | ||
431 | 3125 | #: src/ui_configurationDialog.h:841 | 3133 | #: src/ui_configurationDialog.h:877 |
432 | 3126 | msgid "Invert colors" | 3134 | msgid "Invert colors" |
433 | 3127 | msgstr "" | 3135 | msgstr "" |
434 | 3128 | 3136 | ||
436 | 3129 | #: src/ui_configurationDialog.h:842 | 3137 | #: src/ui_configurationDialog.h:878 |
437 | 3130 | msgid "Star catalog updates" | 3138 | msgid "Star catalog updates" |
438 | 3131 | msgstr "" | 3139 | msgstr "" |
439 | 3132 | 3140 | ||
441 | 3133 | #: src/ui_configurationDialog.h:844 | 3141 | #: src/ui_configurationDialog.h:880 |
442 | 3134 | msgid "Click here to start downloading" | 3142 | msgid "Click here to start downloading" |
443 | 3135 | msgstr "" | 3143 | msgstr "" |
444 | 3136 | 3144 | ||
446 | 3137 | #: src/ui_configurationDialog.h:846 | 3145 | #: src/ui_configurationDialog.h:882 |
447 | 3138 | msgid "Download this file to view even more stars" | 3146 | msgid "Download this file to view even more stars" |
448 | 3139 | msgstr "" | 3147 | msgstr "" |
449 | 3140 | 3148 | ||
451 | 3141 | #: src/ui_configurationDialog.h:848 | 3149 | #: src/ui_configurationDialog.h:884 |
452 | 3142 | msgid "Restart the download" | 3150 | msgid "Restart the download" |
453 | 3143 | msgstr "" | 3151 | msgstr "" |
454 | 3144 | 3152 | ||
456 | 3145 | #: src/ui_configurationDialog.h:850 | 3153 | #: src/ui_configurationDialog.h:886 |
457 | 3146 | msgid "Retry" | 3154 | msgid "Retry" |
458 | 3147 | msgstr "" | 3155 | msgstr "" |
459 | 3148 | 3156 | ||
461 | 3149 | #: src/ui_configurationDialog.h:852 | 3157 | #: src/ui_configurationDialog.h:888 |
462 | 3150 | msgid "Stop the download. You can always restart it later" | 3158 | msgid "Stop the download. You can always restart it later" |
463 | 3151 | msgstr "" | 3159 | msgstr "" |
464 | 3152 | 3160 | ||
466 | 3153 | #: src/ui_configurationDialog.h:854 | 3161 | #: src/ui_configurationDialog.h:890 |
467 | 3154 | #: plugins/TelescopeControl/src/ui_telescopeConfigurationDialog.h:518 | 3162 | #: plugins/TelescopeControl/src/ui_telescopeConfigurationDialog.h:518 |
468 | 3155 | msgid "Cancel" | 3163 | msgid "Cancel" |
469 | 3156 | msgstr "" | 3164 | msgstr "" |
470 | 3157 | 3165 | ||
472 | 3158 | #: src/ui_configurationDialog.h:857 | 3166 | #: src/ui_configurationDialog.h:893 |
473 | 3159 | msgid "Close window when script runs" | 3167 | msgid "Close window when script runs" |
474 | 3160 | msgstr "" | 3168 | msgstr "" |
475 | 3161 | 3169 | ||
477 | 3162 | #: src/ui_configurationDialog.h:859 | 3170 | #: src/ui_configurationDialog.h:895 |
478 | 3163 | msgid "Run the selected script" | 3171 | msgid "Run the selected script" |
479 | 3164 | msgstr "" | 3172 | msgstr "" |
480 | 3165 | 3173 | ||
482 | 3166 | #: src/ui_configurationDialog.h:863 | 3174 | #: src/ui_configurationDialog.h:899 |
483 | 3167 | msgid "Stop a running script" | 3175 | msgid "Stop a running script" |
484 | 3168 | msgstr "" | 3176 | msgstr "" |
485 | 3169 | 3177 | ||
487 | 3170 | #: src/ui_configurationDialog.h:867 | 3178 | #: src/ui_configurationDialog.h:903 |
488 | 3171 | msgid "Load at startup" | 3179 | msgid "Load at startup" |
489 | 3172 | msgstr "" | 3180 | msgstr "" |
490 | 3173 | 3181 | ||
492 | 3174 | #: src/ui_configurationDialog.h:868 | 3182 | #: src/ui_configurationDialog.h:904 |
493 | 3175 | msgid "configure" | 3183 | msgid "configure" |
494 | 3176 | msgstr "" | 3184 | msgstr "" |
495 | 3177 | 3185 | ||
497 | 3178 | #: src/ui_configurationDialog.h:873 | 3186 | #: src/ui_configurationDialog.h:909 |
498 | 3179 | msgid "Main" | 3187 | msgid "Main" |
499 | 3180 | msgstr "" | 3188 | msgstr "" |
500 | 3181 | 3189 | ||
502 | 3182 | #: src/ui_configurationDialog.h:875 | 3190 | #: src/ui_configurationDialog.h:911 |
503 | 3183 | msgid "Navigation" | 3191 | msgid "Navigation" |
504 | 3184 | msgstr "" | 3192 | msgstr "" |
505 | 3185 | 3193 | ||
507 | 3186 | #: src/ui_configurationDialog.h:877 | 3194 | #: src/ui_configurationDialog.h:913 |
508 | 3187 | msgid "Tools" | 3195 | msgid "Tools" |
509 | 3188 | msgstr "" | 3196 | msgstr "" |
510 | 3189 | 3197 | ||
512 | 3190 | #: src/ui_configurationDialog.h:879 | 3198 | #: src/ui_configurationDialog.h:915 |
513 | 3191 | #: plugins/TextUserInterface/src/TextUserInterface.cpp:441 | 3199 | #: plugins/TextUserInterface/src/TextUserInterface.cpp:441 |
514 | 3192 | msgid "Scripts" | 3200 | msgid "Scripts" |
515 | 3193 | msgstr "" | 3201 | msgstr "" |
516 | 3194 | 3202 | ||
518 | 3195 | #: src/ui_configurationDialog.h:881 | 3203 | #: src/ui_configurationDialog.h:917 |
519 | 3196 | msgid "Plugins" | 3204 | msgid "Plugins" |
520 | 3197 | msgstr "" | 3205 | msgstr "" |
521 | 3198 | 3206 | ||
522 | @@ -3261,6 +3269,107 @@ | |||
523 | 3261 | "for murky conditions." | 3269 | "for murky conditions." |
524 | 3262 | msgstr "" | 3270 | msgstr "" |
525 | 3263 | 3271 | ||
526 | 3272 | #: src/ui_CustomInfoDialog.h:194 | ||
527 | 3273 | msgid "Custom Info Settings" | ||
528 | 3274 | msgstr "" | ||
529 | 3275 | |||
530 | 3276 | #: src/ui_CustomInfoDialog.h:196 | ||
531 | 3277 | msgid "Display info about an object's name" | ||
532 | 3278 | msgstr "" | ||
533 | 3279 | |||
534 | 3280 | #: src/ui_CustomInfoDialog.h:198 | ||
535 | 3281 | msgid "An object's name" | ||
536 | 3282 | msgstr "" | ||
537 | 3283 | |||
538 | 3284 | #: src/ui_CustomInfoDialog.h:200 | ||
539 | 3285 | msgid "Display info about a catalog numbers" | ||
540 | 3286 | msgstr "" | ||
541 | 3287 | |||
542 | 3288 | #: src/ui_CustomInfoDialog.h:202 | ||
543 | 3289 | msgid "Catalog numbers" | ||
544 | 3290 | msgstr "" | ||
545 | 3291 | |||
546 | 3292 | #: src/ui_CustomInfoDialog.h:204 | ||
547 | 3293 | msgid "Display info about a visual magnitude" | ||
548 | 3294 | msgstr "" | ||
549 | 3295 | |||
550 | 3296 | #: src/ui_CustomInfoDialog.h:206 | ||
551 | 3297 | msgid "Visual magnitude" | ||
552 | 3298 | msgstr "" | ||
553 | 3299 | |||
554 | 3300 | #: src/ui_CustomInfoDialog.h:208 | ||
555 | 3301 | msgid "Display info about an absolute magnitude" | ||
556 | 3302 | msgstr "" | ||
557 | 3303 | |||
558 | 3304 | #: src/ui_CustomInfoDialog.h:210 | ||
559 | 3305 | msgid "Absolute magnitude" | ||
560 | 3306 | msgstr "" | ||
561 | 3307 | |||
562 | 3308 | #: src/ui_CustomInfoDialog.h:212 | ||
563 | 3309 | msgid "Display the equatorial position (J2000 ref)" | ||
564 | 3310 | msgstr "" | ||
565 | 3311 | |||
566 | 3312 | #: src/ui_CustomInfoDialog.h:214 | ||
567 | 3313 | msgid "The equatorial coordinates (J2000 ref)" | ||
568 | 3314 | msgstr "" | ||
569 | 3315 | |||
570 | 3316 | #: src/ui_CustomInfoDialog.h:216 | ||
571 | 3317 | msgid "Display the equatorial position (of date)" | ||
572 | 3318 | msgstr "" | ||
573 | 3319 | |||
574 | 3320 | #: src/ui_CustomInfoDialog.h:218 | ||
575 | 3321 | msgid "The equatorial coordinates (of date)" | ||
576 | 3322 | msgstr "" | ||
577 | 3323 | |||
578 | 3324 | #: src/ui_CustomInfoDialog.h:220 | ||
579 | 3325 | msgid "Display the altitude and azimuth position" | ||
580 | 3326 | msgstr "" | ||
581 | 3327 | |||
582 | 3328 | #: src/ui_CustomInfoDialog.h:222 | ||
583 | 3329 | msgid "The alt-azimuthal coordinates" | ||
584 | 3330 | msgstr "" | ||
585 | 3331 | |||
586 | 3332 | #: src/ui_CustomInfoDialog.h:224 | ||
587 | 3333 | msgid "Display the hour angle + DE (of date)" | ||
588 | 3334 | msgstr "" | ||
589 | 3335 | |||
590 | 3336 | #: src/ui_CustomInfoDialog.h:226 | ||
591 | 3337 | msgid "The hour angle" | ||
592 | 3338 | msgstr "" | ||
593 | 3339 | |||
594 | 3340 | #: src/ui_CustomInfoDialog.h:228 | ||
595 | 3341 | msgid "Display info about an object's distance" | ||
596 | 3342 | msgstr "" | ||
597 | 3343 | |||
598 | 3344 | #: src/ui_CustomInfoDialog.h:230 | ||
599 | 3345 | msgid "Object's distance" | ||
600 | 3346 | msgstr "" | ||
601 | 3347 | |||
602 | 3348 | #: src/ui_CustomInfoDialog.h:232 | ||
603 | 3349 | msgid "Display info about an object's size" | ||
604 | 3350 | msgstr "" | ||
605 | 3351 | |||
606 | 3352 | #: src/ui_CustomInfoDialog.h:234 | ||
607 | 3353 | msgid "Object's size" | ||
608 | 3354 | msgstr "" | ||
609 | 3355 | |||
610 | 3356 | #: src/ui_CustomInfoDialog.h:236 src/ui_CustomInfoDialog.h:240 | ||
611 | 3357 | #: src/ui_CustomInfoDialog.h:244 | ||
612 | 3358 | msgid "Display a derived class-specific extra fields" | ||
613 | 3359 | msgstr "" | ||
614 | 3360 | |||
615 | 3361 | #: src/ui_CustomInfoDialog.h:238 | ||
616 | 3362 | msgid "Additional info (Extra 1)" | ||
617 | 3363 | msgstr "" | ||
618 | 3364 | |||
619 | 3365 | #: src/ui_CustomInfoDialog.h:242 | ||
620 | 3366 | msgid "Additional info (Extra 2)" | ||
621 | 3367 | msgstr "" | ||
622 | 3368 | |||
623 | 3369 | #: src/ui_CustomInfoDialog.h:246 | ||
624 | 3370 | msgid "Additional info (Extra 3)" | ||
625 | 3371 | msgstr "" | ||
626 | 3372 | |||
627 | 3264 | #: src/ui_scriptConsole.h:341 | 3373 | #: src/ui_scriptConsole.h:341 |
628 | 3265 | msgid "Script console" | 3374 | msgid "Script console" |
629 | 3266 | msgstr "" | 3375 | msgstr "" |
630 | 3267 | 3376 | ||
631 | === modified file 'src/CMakeLists.txt' | |||
632 | --- src/CMakeLists.txt 2012-04-12 17:45:18 +0000 | |||
633 | +++ src/CMakeLists.txt 2012-04-13 18:05:24 +0000 | |||
634 | @@ -414,6 +414,8 @@ | |||
635 | 414 | gui/AddRemoveLandscapesDialog.cpp | 414 | gui/AddRemoveLandscapesDialog.cpp |
636 | 415 | gui/AtmosphereDialog.hpp | 415 | gui/AtmosphereDialog.hpp |
637 | 416 | gui/AtmosphereDialog.cpp | 416 | gui/AtmosphereDialog.cpp |
638 | 417 | gui/CustomInfoDialog.hpp | ||
639 | 418 | gui/CustomInfoDialog.cpp | ||
640 | 417 | gui/StelDialog.hpp | 419 | gui/StelDialog.hpp |
641 | 418 | gui/StelDialog.cpp) | 420 | gui/StelDialog.cpp) |
642 | 419 | 421 | ||
643 | @@ -433,6 +435,7 @@ | |||
644 | 433 | gui/ConfigurationDialog.hpp | 435 | gui/ConfigurationDialog.hpp |
645 | 434 | gui/AddRemoveLandscapesDialog.hpp | 436 | gui/AddRemoveLandscapesDialog.hpp |
646 | 435 | gui/AtmosphereDialog.hpp | 437 | gui/AtmosphereDialog.hpp |
647 | 438 | gui/CustomInfoDialog.hpp | ||
648 | 436 | gui/StelDialog.hpp) | 439 | gui/StelDialog.hpp) |
649 | 437 | 440 | ||
650 | 438 | ################# compiles .ui files ############ | 441 | ################# compiles .ui files ############ |
651 | @@ -444,6 +447,7 @@ | |||
652 | 444 | gui/searchDialogGui.ui | 447 | gui/searchDialogGui.ui |
653 | 445 | gui/configurationDialog.ui | 448 | gui/configurationDialog.ui |
654 | 446 | gui/AtmosphereDialog.ui | 449 | gui/AtmosphereDialog.ui |
655 | 450 | gui/CustomInfoDialog.ui | ||
656 | 447 | gui/addRemoveLandscapesDialog.ui) | 451 | gui/addRemoveLandscapesDialog.ui) |
657 | 448 | 452 | ||
658 | 449 | IF(ENABLE_SCRIPT_CONSOLE) | 453 | IF(ENABLE_SCRIPT_CONSOLE) |
659 | 450 | 454 | ||
660 | === modified file 'src/core/StelObject.cpp' | |||
661 | --- src/core/StelObject.cpp 2012-01-11 10:50:37 +0000 | |||
662 | +++ src/core/StelObject.cpp 2012-04-13 18:05:24 +0000 | |||
663 | @@ -27,11 +27,11 @@ | |||
664 | 27 | #include "StelSkyDrawer.hpp" | 27 | #include "StelSkyDrawer.hpp" |
665 | 28 | #include "RefractionExtinction.hpp" | 28 | #include "RefractionExtinction.hpp" |
666 | 29 | #include "StelLocation.hpp" | 29 | #include "StelLocation.hpp" |
667 | 30 | #include "QSettings" | ||
668 | 30 | 31 | ||
669 | 31 | #include <QRegExp> | 32 | #include <QRegExp> |
670 | 32 | #include <QDebug> | 33 | #include <QDebug> |
671 | 33 | 34 | ||
672 | 34 | |||
673 | 35 | Vec3d StelObject::getEquinoxEquatorialPos(const StelCore* core) const | 35 | Vec3d StelObject::getEquinoxEquatorialPos(const StelCore* core) const |
674 | 36 | { | 36 | { |
675 | 37 | return core->j2000ToEquinoxEqu(getJ2000EquatorialPos(core)); | 37 | return core->j2000ToEquinoxEqu(getJ2000EquatorialPos(core)); |
676 | @@ -154,3 +154,4 @@ | |||
677 | 154 | str.append(QString("</font>")); | 154 | str.append(QString("</font>")); |
678 | 155 | } | 155 | } |
679 | 156 | } | 156 | } |
680 | 157 | |||
681 | 157 | 158 | ||
682 | === modified file 'src/core/StelObjectMgr.cpp' | |||
683 | --- src/core/StelObjectMgr.cpp 2012-01-11 10:50:37 +0000 | |||
684 | +++ src/core/StelObjectMgr.cpp 2012-04-13 18:05:24 +0000 | |||
685 | @@ -32,6 +32,7 @@ | |||
686 | 32 | #include <QString> | 32 | #include <QString> |
687 | 33 | #include <QDebug> | 33 | #include <QDebug> |
688 | 34 | #include <QStringList> | 34 | #include <QStringList> |
689 | 35 | #include <QSettings> | ||
690 | 35 | 36 | ||
691 | 36 | StelObjectMgr::StelObjectMgr() : searchRadiusPixel(30.f), distanceWeight(1.f) | 37 | StelObjectMgr::StelObjectMgr() : searchRadiusPixel(30.f), distanceWeight(1.f) |
692 | 37 | { | 38 | { |
693 | @@ -244,3 +245,156 @@ | |||
694 | 244 | result.sort(); | 245 | result.sort(); |
695 | 245 | return result; | 246 | return result; |
696 | 246 | } | 247 | } |
697 | 248 | |||
698 | 249 | int StelObjectMgr::getCustomInfoString(void) | ||
699 | 250 | { | ||
700 | 251 | QSettings* conf = StelApp::getInstance().getSettings(); | ||
701 | 252 | |||
702 | 253 | bool Name = conf->value("custom_selected_info/flag_show_name", false).toBool(); | ||
703 | 254 | bool CatalogNumber = conf->value("custom_selected_info/flag_show_catalognumber", false).toBool(); | ||
704 | 255 | bool Magnitude = conf->value("custom_selected_info/flag_show_magnitude", false).toBool(); | ||
705 | 256 | bool RaDecJ2000 = conf->value("custom_selected_info/flag_show_radecj2000", false).toBool(); | ||
706 | 257 | bool RaDecOfDate = conf->value("custom_selected_info/flag_show_radecofdate", false).toBool(); | ||
707 | 258 | bool AltAz = conf->value("custom_selected_info/flag_show_altaz", false).toBool(); | ||
708 | 259 | bool Distance = conf->value("custom_selected_info/flag_show_distance", false).toBool(); | ||
709 | 260 | bool Size = conf->value("custom_selected_info/flag_show_size", false).toBool(); | ||
710 | 261 | bool Extra1 = conf->value("custom_selected_info/flag_show_extra1", false).toBool(); | ||
711 | 262 | bool Extra2 = conf->value("custom_selected_info/flag_show_extra2", false).toBool(); | ||
712 | 263 | bool Extra3 = conf->value("custom_selected_info/flag_show_extra3", false).toBool(); | ||
713 | 264 | bool HourAngle = conf->value("custom_selected_info/flag_show_hourangle", false).toBool(); | ||
714 | 265 | bool AbsoluteMagnitude = conf->value("custom_selected_info/flag_show_absolutemagnitude", false).toBool(); | ||
715 | 266 | |||
716 | 267 | int OctZero = 0x00000000; | ||
717 | 268 | |||
718 | 269 | int NameOct; | ||
719 | 270 | if (Name) | ||
720 | 271 | { | ||
721 | 272 | NameOct = StelObject::Name; | ||
722 | 273 | } | ||
723 | 274 | else | ||
724 | 275 | { | ||
725 | 276 | NameOct = OctZero; | ||
726 | 277 | } | ||
727 | 278 | |||
728 | 279 | int CatalogNumberOct; | ||
729 | 280 | if (CatalogNumber) | ||
730 | 281 | { | ||
731 | 282 | CatalogNumberOct = StelObject::CatalogNumber; | ||
732 | 283 | } | ||
733 | 284 | else | ||
734 | 285 | { | ||
735 | 286 | CatalogNumberOct = OctZero; | ||
736 | 287 | } | ||
737 | 288 | |||
738 | 289 | int MagnitudeOct; | ||
739 | 290 | if (Magnitude) | ||
740 | 291 | { | ||
741 | 292 | MagnitudeOct = StelObject::Magnitude; | ||
742 | 293 | } | ||
743 | 294 | else | ||
744 | 295 | { | ||
745 | 296 | MagnitudeOct = OctZero; | ||
746 | 297 | } | ||
747 | 298 | |||
748 | 299 | int RaDecJ2000Oct; | ||
749 | 300 | if (RaDecJ2000) | ||
750 | 301 | { | ||
751 | 302 | RaDecJ2000Oct = StelObject::RaDecJ2000; | ||
752 | 303 | } | ||
753 | 304 | else | ||
754 | 305 | { | ||
755 | 306 | RaDecJ2000Oct = OctZero; | ||
756 | 307 | } | ||
757 | 308 | |||
758 | 309 | int RaDecOfDateOct; | ||
759 | 310 | if (RaDecOfDate) | ||
760 | 311 | { | ||
761 | 312 | RaDecOfDateOct = StelObject::RaDecOfDate; | ||
762 | 313 | } | ||
763 | 314 | else | ||
764 | 315 | { | ||
765 | 316 | RaDecOfDateOct = OctZero; | ||
766 | 317 | } | ||
767 | 318 | |||
768 | 319 | int AltAzOct; | ||
769 | 320 | if (AltAz) | ||
770 | 321 | { | ||
771 | 322 | AltAzOct = StelObject::AltAzi; | ||
772 | 323 | } | ||
773 | 324 | else | ||
774 | 325 | { | ||
775 | 326 | AltAzOct = OctZero; | ||
776 | 327 | } | ||
777 | 328 | |||
778 | 329 | int DistanceOct; | ||
779 | 330 | if (Distance) | ||
780 | 331 | { | ||
781 | 332 | DistanceOct = StelObject::Distance; | ||
782 | 333 | } | ||
783 | 334 | else | ||
784 | 335 | { | ||
785 | 336 | DistanceOct = OctZero; | ||
786 | 337 | } | ||
787 | 338 | |||
788 | 339 | int SizeOct; | ||
789 | 340 | if (Size) | ||
790 | 341 | { | ||
791 | 342 | SizeOct = StelObject::Size; | ||
792 | 343 | } | ||
793 | 344 | else | ||
794 | 345 | { | ||
795 | 346 | SizeOct = OctZero; | ||
796 | 347 | } | ||
797 | 348 | |||
798 | 349 | int Extra1Oct; | ||
799 | 350 | if (Extra1) | ||
800 | 351 | { | ||
801 | 352 | Extra1Oct = StelObject::Extra1; | ||
802 | 353 | } | ||
803 | 354 | else | ||
804 | 355 | { | ||
805 | 356 | Extra1Oct = OctZero; | ||
806 | 357 | } | ||
807 | 358 | |||
808 | 359 | int Extra2Oct; | ||
809 | 360 | if (Extra2) | ||
810 | 361 | { | ||
811 | 362 | Extra2Oct = StelObject::Extra2; | ||
812 | 363 | } | ||
813 | 364 | else | ||
814 | 365 | { | ||
815 | 366 | Extra2Oct = OctZero; | ||
816 | 367 | } | ||
817 | 368 | |||
818 | 369 | int Extra3Oct; | ||
819 | 370 | if (Extra3) | ||
820 | 371 | { | ||
821 | 372 | Extra3Oct = StelObject::Extra3; | ||
822 | 373 | } | ||
823 | 374 | else | ||
824 | 375 | { | ||
825 | 376 | Extra3Oct = OctZero; | ||
826 | 377 | } | ||
827 | 378 | |||
828 | 379 | int HourAngleOct; | ||
829 | 380 | if (HourAngle) | ||
830 | 381 | { | ||
831 | 382 | HourAngleOct = StelObject::HourAngle; | ||
832 | 383 | } | ||
833 | 384 | else | ||
834 | 385 | { | ||
835 | 386 | HourAngleOct = OctZero; | ||
836 | 387 | } | ||
837 | 388 | |||
838 | 389 | int AbsoluteMagnitudeOct; | ||
839 | 390 | if (AbsoluteMagnitude) | ||
840 | 391 | { | ||
841 | 392 | AbsoluteMagnitudeOct = StelObject::AbsoluteMagnitude; | ||
842 | 393 | } | ||
843 | 394 | else | ||
844 | 395 | { | ||
845 | 396 | AbsoluteMagnitudeOct = OctZero; | ||
846 | 397 | } | ||
847 | 398 | |||
848 | 399 | return (NameOct|CatalogNumberOct|MagnitudeOct|RaDecJ2000Oct|RaDecOfDateOct|AltAzOct|DistanceOct|SizeOct|Extra1Oct|Extra2Oct|Extra3Oct|HourAngleOct|AbsoluteMagnitudeOct); | ||
849 | 400 | } | ||
850 | 247 | 401 | ||
851 | === modified file 'src/core/StelObjectMgr.hpp' | |||
852 | --- src/core/StelObjectMgr.hpp 2012-01-11 10:50:37 +0000 | |||
853 | +++ src/core/StelObjectMgr.hpp 2012-04-13 18:05:24 +0000 | |||
854 | @@ -126,6 +126,8 @@ | |||
855 | 126 | //! Default to 1. | 126 | //! Default to 1. |
856 | 127 | void setDistanceWeight(float newDistanceWeight) {distanceWeight=newDistanceWeight;} | 127 | void setDistanceWeight(float newDistanceWeight) {distanceWeight=newDistanceWeight;} |
857 | 128 | 128 | ||
858 | 129 | int getCustomInfoString(void); | ||
859 | 130 | |||
860 | 129 | signals: | 131 | signals: |
861 | 130 | //! Indicate that the selected StelObjects has changed. | 132 | //! Indicate that the selected StelObjects has changed. |
862 | 131 | //! @param action define if the user requested that the objects are added to the selection or just replace it | 133 | //! @param action define if the user requested that the objects are added to the selection or just replace it |
863 | 132 | 134 | ||
864 | === modified file 'src/core/StelUtils.hpp' | |||
865 | --- src/core/StelUtils.hpp 2012-01-11 10:50:37 +0000 | |||
866 | +++ src/core/StelUtils.hpp 2012-04-13 18:05:24 +0000 | |||
867 | @@ -143,10 +143,10 @@ | |||
868 | 143 | //! @param v the input 3D vector | 143 | //! @param v the input 3D vector |
869 | 144 | void rectToSphe(float *lng, float *lat, const Vec3f& v); | 144 | void rectToSphe(float *lng, float *lat, const Vec3f& v); |
870 | 145 | 145 | ||
875 | 146 | // GZ: some additions. I need those just for quick conversions for text display. | 146 | // GZ: some additions. I need those just for quick conversions for text display. |
876 | 147 | //! Coordinate Transformation from equatorial to ecliptical | 147 | //! Coordinate Transformation from equatorial to ecliptical |
877 | 148 | void ctRadec2Ecl(const double raRad, const double decRad, const double eclRad, double *lambdaRad, double *betaRad); | 148 | void ctRadec2Ecl(const double raRad, const double decRad, const double eclRad, double *lambdaRad, double *betaRad); |
878 | 149 | // GZ: done | 149 | // GZ: done |
879 | 150 | 150 | ||
880 | 151 | //! Convert a string longitude, latitude, RA or Declination angle | 151 | //! Convert a string longitude, latitude, RA or Declination angle |
881 | 152 | //! to radians. | 152 | //! to radians. |
882 | 153 | 153 | ||
883 | === modified file 'src/gui/ConfigurationDialog.cpp' | |||
884 | --- src/gui/ConfigurationDialog.cpp 2012-04-06 09:11:50 +0000 | |||
885 | +++ src/gui/ConfigurationDialog.cpp 2012-04-13 18:05:24 +0000 | |||
886 | @@ -20,6 +20,7 @@ | |||
887 | 20 | 20 | ||
888 | 21 | #include "Dialog.hpp" | 21 | #include "Dialog.hpp" |
889 | 22 | #include "ConfigurationDialog.hpp" | 22 | #include "ConfigurationDialog.hpp" |
890 | 23 | #include "CustomInfoDialog.hpp" | ||
891 | 23 | #include "StelMainGraphicsView.hpp" | 24 | #include "StelMainGraphicsView.hpp" |
892 | 24 | #include "StelMainWindow.hpp" | 25 | #include "StelMainWindow.hpp" |
893 | 25 | #include "ui_configurationDialog.h" | 26 | #include "ui_configurationDialog.h" |
894 | @@ -29,6 +30,7 @@ | |||
895 | 29 | #include "StelCore.hpp" | 30 | #include "StelCore.hpp" |
896 | 30 | #include "StelLocaleMgr.hpp" | 31 | #include "StelLocaleMgr.hpp" |
897 | 31 | #include "StelProjector.hpp" | 32 | #include "StelProjector.hpp" |
898 | 33 | #include "StelObjectMgr.hpp" | ||
899 | 32 | 34 | ||
900 | 33 | #include "StelCore.hpp" | 35 | #include "StelCore.hpp" |
901 | 34 | #include "StelMovementMgr.hpp" | 36 | #include "StelMovementMgr.hpp" |
902 | @@ -62,14 +64,18 @@ | |||
903 | 62 | ConfigurationDialog::ConfigurationDialog(StelGui* agui) : StelDialog(agui), starCatalogDownloadReply(NULL), currentDownloadFile(NULL), progressBar(NULL), gui(agui) | 64 | ConfigurationDialog::ConfigurationDialog(StelGui* agui) : StelDialog(agui), starCatalogDownloadReply(NULL), currentDownloadFile(NULL), progressBar(NULL), gui(agui) |
904 | 63 | { | 65 | { |
905 | 64 | ui = new Ui_configurationDialogForm; | 66 | ui = new Ui_configurationDialogForm; |
906 | 67 | customInfoDialog = NULL; | ||
907 | 65 | hasDownloadedStarCatalog = false; | 68 | hasDownloadedStarCatalog = false; |
908 | 66 | isDownloadingStarCatalog = false; | 69 | isDownloadingStarCatalog = false; |
910 | 67 | savedProjectionType = StelApp::getInstance().getCore()->getCurrentProjectionType(); | 70 | savedProjectionType = StelApp::getInstance().getCore()->getCurrentProjectionType(); |
911 | 68 | } | 71 | } |
912 | 69 | 72 | ||
913 | 70 | ConfigurationDialog::~ConfigurationDialog() | 73 | ConfigurationDialog::~ConfigurationDialog() |
914 | 71 | { | 74 | { |
915 | 72 | delete ui; | 75 | delete ui; |
916 | 76 | ui=NULL; | ||
917 | 77 | delete customInfoDialog; | ||
918 | 78 | customInfoDialog = NULL; | ||
919 | 73 | } | 79 | } |
920 | 74 | 80 | ||
921 | 75 | void ConfigurationDialog::retranslate() | 81 | void ConfigurationDialog::retranslate() |
922 | @@ -145,14 +151,32 @@ | |||
923 | 145 | 151 | ||
924 | 146 | // Selected object info | 152 | // Selected object info |
925 | 147 | if (gui->getInfoTextFilters() == (StelObject::InfoStringGroup)0) | 153 | if (gui->getInfoTextFilters() == (StelObject::InfoStringGroup)0) |
926 | 154 | { | ||
927 | 148 | ui->noSelectedInfoRadio->setChecked(true); | 155 | ui->noSelectedInfoRadio->setChecked(true); |
928 | 156 | ui->pushButtonCustomInfoDialog->setEnabled(false); | ||
929 | 157 | } | ||
930 | 149 | else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::ShortInfo)) | 158 | else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::ShortInfo)) |
933 | 150 | ui->briefSelectedInfoRadio->setChecked(true); | 159 | { |
934 | 151 | else | 160 | ui->briefSelectedInfoRadio->setChecked(true); |
935 | 161 | ui->pushButtonCustomInfoDialog->setEnabled(false); | ||
936 | 162 | } | ||
937 | 163 | else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::AllInfo)) | ||
938 | 164 | { | ||
939 | 152 | ui->allSelectedInfoRadio->setChecked(true); | 165 | ui->allSelectedInfoRadio->setChecked(true); |
940 | 166 | ui->pushButtonCustomInfoDialog->setEnabled(false); | ||
941 | 167 | } | ||
942 | 168 | else | ||
943 | 169 | { | ||
944 | 170 | ui->customSelectedInfoRadio->setChecked(true); | ||
945 | 171 | ui->pushButtonCustomInfoDialog->setEnabled(true); | ||
946 | 172 | } | ||
947 | 173 | |||
948 | 153 | connect(ui->noSelectedInfoRadio, SIGNAL(released()), this, SLOT(setNoSelectedInfo())); | 174 | connect(ui->noSelectedInfoRadio, SIGNAL(released()), this, SLOT(setNoSelectedInfo())); |
949 | 154 | connect(ui->allSelectedInfoRadio, SIGNAL(released()), this, SLOT(setAllSelectedInfo())); | 175 | connect(ui->allSelectedInfoRadio, SIGNAL(released()), this, SLOT(setAllSelectedInfo())); |
950 | 155 | connect(ui->briefSelectedInfoRadio, SIGNAL(released()), this, SLOT(setBriefSelectedInfo())); | 176 | connect(ui->briefSelectedInfoRadio, SIGNAL(released()), this, SLOT(setBriefSelectedInfo())); |
951 | 177 | connect(ui->customSelectedInfoRadio, SIGNAL(released()), this, SLOT(setCustomSelectedInfo())); | ||
952 | 178 | |||
953 | 179 | connect(ui->pushButtonCustomInfoDialog, SIGNAL(clicked()), this, SLOT(showCustomInfoDialog())); | ||
954 | 156 | 180 | ||
955 | 157 | // Navigation tab | 181 | // Navigation tab |
956 | 158 | // Startup time | 182 | // Startup time |
957 | @@ -288,17 +312,27 @@ | |||
958 | 288 | void ConfigurationDialog::setNoSelectedInfo(void) | 312 | void ConfigurationDialog::setNoSelectedInfo(void) |
959 | 289 | { | 313 | { |
960 | 290 | gui->setInfoTextFilters(StelObject::InfoStringGroup(0)); | 314 | gui->setInfoTextFilters(StelObject::InfoStringGroup(0)); |
961 | 315 | ui->pushButtonCustomInfoDialog->setEnabled(false); | ||
962 | 291 | } | 316 | } |
963 | 292 | 317 | ||
964 | 293 | void ConfigurationDialog::setAllSelectedInfo(void) | 318 | void ConfigurationDialog::setAllSelectedInfo(void) |
965 | 294 | { | 319 | { |
966 | 295 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelObject::AllInfo)); | 320 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelObject::AllInfo)); |
967 | 321 | ui->pushButtonCustomInfoDialog->setEnabled(false); | ||
968 | 296 | } | 322 | } |
969 | 297 | 323 | ||
970 | 298 | void ConfigurationDialog::setBriefSelectedInfo(void) | 324 | void ConfigurationDialog::setBriefSelectedInfo(void) |
971 | 299 | { | 325 | { |
972 | 300 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelObject::ShortInfo)); | 326 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelObject::ShortInfo)); |
974 | 301 | } | 327 | ui->pushButtonCustomInfoDialog->setEnabled(false); |
975 | 328 | } | ||
976 | 329 | |||
977 | 330 | void ConfigurationDialog::setCustomSelectedInfo(void) | ||
978 | 331 | { | ||
979 | 332 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
980 | 333 | ui->pushButtonCustomInfoDialog->setEnabled(true); | ||
981 | 334 | } | ||
982 | 335 | |||
983 | 302 | 336 | ||
984 | 303 | void ConfigurationDialog::cursorTimeOutChanged() | 337 | void ConfigurationDialog::cursorTimeOutChanged() |
985 | 304 | { | 338 | { |
986 | @@ -429,8 +463,10 @@ | |||
987 | 429 | conf->setValue("gui/selected_object_info", "none"); | 463 | conf->setValue("gui/selected_object_info", "none"); |
988 | 430 | else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::ShortInfo)) | 464 | else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::ShortInfo)) |
989 | 431 | conf->setValue("gui/selected_object_info", "short"); | 465 | conf->setValue("gui/selected_object_info", "short"); |
991 | 432 | else | 466 | else if (gui->getInfoTextFilters() == StelObject::InfoStringGroup(StelObject::AllInfo)) |
992 | 433 | conf->setValue("gui/selected_object_info", "all"); | 467 | conf->setValue("gui/selected_object_info", "all"); |
993 | 468 | else | ||
994 | 469 | conf->setValue("gui/selected_object_info", "custom"); | ||
995 | 434 | 470 | ||
996 | 435 | // toolbar auto-hide status | 471 | // toolbar auto-hide status |
997 | 436 | conf->setValue("gui/auto_hide_horizontal_toolbar", gui->getAutoHideHorizontalButtonBar()); | 472 | conf->setValue("gui/auto_hide_horizontal_toolbar", gui->getAutoHideHorizontalButtonBar()); |
998 | @@ -893,3 +929,11 @@ | |||
999 | 893 | 929 | ||
1000 | 894 | resetStarCatalogControls(); | 930 | resetStarCatalogControls(); |
1001 | 895 | } | 931 | } |
1002 | 932 | |||
1003 | 933 | void ConfigurationDialog::showCustomInfoDialog() | ||
1004 | 934 | { | ||
1005 | 935 | if(customInfoDialog == NULL) | ||
1006 | 936 | customInfoDialog = new CustomInfoDialog(); | ||
1007 | 937 | |||
1008 | 938 | customInfoDialog->setVisible(true); | ||
1009 | 939 | } | ||
1010 | 896 | 940 | ||
1011 | === modified file 'src/gui/ConfigurationDialog.hpp' | |||
1012 | --- src/gui/ConfigurationDialog.hpp 2012-02-13 18:59:16 +0000 | |||
1013 | +++ src/gui/ConfigurationDialog.hpp 2012-04-13 18:05:24 +0000 | |||
1014 | @@ -32,6 +32,7 @@ | |||
1015 | 32 | class QNetworkAccessManager; | 32 | class QNetworkAccessManager; |
1016 | 33 | class QListWidgetItem; | 33 | class QListWidgetItem; |
1017 | 34 | class StelGui; | 34 | class StelGui; |
1018 | 35 | class CustomInfoDialog; | ||
1019 | 35 | 36 | ||
1020 | 36 | class ConfigurationDialog : public StelDialog | 37 | class ConfigurationDialog : public StelDialog |
1021 | 37 | { | 38 | { |
1022 | @@ -76,6 +77,7 @@ | |||
1023 | 76 | void setNoSelectedInfo(void); | 77 | void setNoSelectedInfo(void); |
1024 | 77 | void setAllSelectedInfo(void); | 78 | void setAllSelectedInfo(void); |
1025 | 78 | void setBriefSelectedInfo(void); | 79 | void setBriefSelectedInfo(void); |
1026 | 80 | void setCustomSelectedInfo(void); | ||
1027 | 79 | void selectLanguage(const QString& languageCode); | 81 | void selectLanguage(const QString& languageCode); |
1028 | 80 | void setStartupTimeMode(); | 82 | void setStartupTimeMode(); |
1029 | 81 | void setDiskViewport(bool); | 83 | void setDiskViewport(bool); |
1030 | @@ -131,10 +133,14 @@ | |||
1031 | 131 | 133 | ||
1032 | 132 | void changePage(QListWidgetItem *current, QListWidgetItem *previous); | 134 | void changePage(QListWidgetItem *current, QListWidgetItem *previous); |
1033 | 133 | 135 | ||
1034 | 136 | void showCustomInfoDialog(); | ||
1035 | 137 | |||
1036 | 134 | private: | 138 | private: |
1037 | 135 | StelGui* gui; | 139 | StelGui* gui; |
1038 | 136 | 140 | ||
1039 | 137 | int savedProjectionType; | 141 | int savedProjectionType; |
1040 | 142 | |||
1041 | 143 | CustomInfoDialog* customInfoDialog; | ||
1042 | 138 | }; | 144 | }; |
1043 | 139 | 145 | ||
1044 | 140 | #endif // _CONFIGURATIONDIALOG_HPP_ | 146 | #endif // _CONFIGURATIONDIALOG_HPP_ |
1045 | 141 | 147 | ||
1046 | === added file 'src/gui/CustomInfoDialog.cpp' | |||
1047 | --- src/gui/CustomInfoDialog.cpp 1970-01-01 00:00:00 +0000 | |||
1048 | +++ src/gui/CustomInfoDialog.cpp 2012-04-13 18:05:24 +0000 | |||
1049 | @@ -0,0 +1,249 @@ | |||
1050 | 1 | /* | ||
1051 | 2 | * This program is distributed in the hope that it will be useful, | ||
1052 | 3 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1053 | 4 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1054 | 5 | * GNU General Public License for more details. | ||
1055 | 6 | * You should have received a copy of the GNU General Public License | ||
1056 | 7 | * along with this program; if not, write to the Free Software | ||
1057 | 8 | * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. | ||
1058 | 9 | */ | ||
1059 | 10 | |||
1060 | 11 | #include "CustomInfoDialog.hpp" | ||
1061 | 12 | #include "ui_CustomInfoDialog.h" | ||
1062 | 13 | |||
1063 | 14 | #include "Dialog.hpp" | ||
1064 | 15 | #include "StelApp.hpp" | ||
1065 | 16 | #include "StelObjectMgr.hpp" | ||
1066 | 17 | |||
1067 | 18 | #include <QDebug> | ||
1068 | 19 | |||
1069 | 20 | CustomInfoDialog::CustomInfoDialog() | ||
1070 | 21 | { | ||
1071 | 22 | ui = new Ui_CustomInfoDialogForm; | ||
1072 | 23 | conf = StelApp::getInstance().getSettings(); | ||
1073 | 24 | gui = StelApp::getInstance().getGui(); | ||
1074 | 25 | } | ||
1075 | 26 | |||
1076 | 27 | CustomInfoDialog::~CustomInfoDialog() | ||
1077 | 28 | { | ||
1078 | 29 | delete ui; | ||
1079 | 30 | ui=NULL; | ||
1080 | 31 | } | ||
1081 | 32 | |||
1082 | 33 | void CustomInfoDialog::retranslate() | ||
1083 | 34 | { | ||
1084 | 35 | if (dialog) | ||
1085 | 36 | ui->retranslateUi(dialog); | ||
1086 | 37 | } | ||
1087 | 38 | |||
1088 | 39 | |||
1089 | 40 | void CustomInfoDialog::createDialogContent() | ||
1090 | 41 | { | ||
1091 | 42 | ui->setupUi(dialog); | ||
1092 | 43 | |||
1093 | 44 | //Signals and slots | ||
1094 | 45 | connect(&StelApp::getInstance(), SIGNAL(languageChanged()), this, SLOT(retranslate())); | ||
1095 | 46 | connect(ui->closeStelWindow, SIGNAL(clicked()), this, SLOT(close())); | ||
1096 | 47 | |||
1097 | 48 | //An object's name | ||
1098 | 49 | ui->nameCheckBox->setChecked(getNameCustomInfoFlag()); | ||
1099 | 50 | connect(ui->nameCheckBox, SIGNAL(toggled(bool)), this, SLOT(setNameCustomInfoFlag(bool))); | ||
1100 | 51 | |||
1101 | 52 | //Catalog numbers | ||
1102 | 53 | ui->catalogNumberCheckBox->setChecked(getCatalogNumberCustomInfoFlag()); | ||
1103 | 54 | connect(ui->catalogNumberCheckBox, SIGNAL(toggled(bool)), this, SLOT(setCatalogNumberCustomInfoFlag(bool))); | ||
1104 | 55 | |||
1105 | 56 | //Magnitude related data | ||
1106 | 57 | ui->magnitudeCheckBox->setChecked(getMagnitudeCustomInfoFlag()); | ||
1107 | 58 | connect(ui->magnitudeCheckBox, SIGNAL(toggled(bool)), this, SLOT(setMagnitudeCustomInfoFlag(bool))); | ||
1108 | 59 | |||
1109 | 60 | //The equatorial position (J2000 ref) | ||
1110 | 61 | ui->raDecJ2000CheckBox->setChecked(getRaDecJ2000CustomInfoFlag()); | ||
1111 | 62 | connect(ui->raDecJ2000CheckBox, SIGNAL(toggled(bool)), this, SLOT(setRaDecJ2000CustomInfoFlag(bool))); | ||
1112 | 63 | |||
1113 | 64 | //The equatorial position (of date) | ||
1114 | 65 | ui->raDecOfDateCheckBox->setChecked(getRaDecOfDateCustomInfoFlag()); | ||
1115 | 66 | connect(ui->raDecOfDateCheckBox, SIGNAL(toggled(bool)), this, SLOT(setRaDecOfDateCustomInfoFlag(bool))); | ||
1116 | 67 | |||
1117 | 68 | //The position (Altitude/Azimuth) | ||
1118 | 69 | ui->altAzCheckBox->setChecked(getAltAzCustomInfoFlag()); | ||
1119 | 70 | connect(ui->altAzCheckBox, SIGNAL(toggled(bool)), this, SLOT(setAltAzCustomInfoFlag(bool))); | ||
1120 | 71 | |||
1121 | 72 | //Info about an object's distance | ||
1122 | 73 | ui->distanceCheckBox->setChecked(getDistanceCustomInfoFlag()); | ||
1123 | 74 | connect(ui->distanceCheckBox, SIGNAL(toggled(bool)), this, SLOT(setDistanceCustomInfoFlag(bool))); | ||
1124 | 75 | |||
1125 | 76 | //Info about an object's size | ||
1126 | 77 | ui->sizeCheckBox->setChecked(getSizeCustomInfoFlag()); | ||
1127 | 78 | connect(ui->sizeCheckBox, SIGNAL(toggled(bool)), this, SLOT(setSizeCustomInfoFlag(bool))); | ||
1128 | 79 | |||
1129 | 80 | //Derived class-specific extra fields | ||
1130 | 81 | ui->extra1CheckBox->setChecked(getExtra1CustomInfoFlag()); | ||
1131 | 82 | connect(ui->extra1CheckBox, SIGNAL(toggled(bool)), this, SLOT(setExtra1CustomInfoFlag(bool))); | ||
1132 | 83 | |||
1133 | 84 | //Derived class-specific extra fields | ||
1134 | 85 | ui->extra2CheckBox->setChecked(getExtra2CustomInfoFlag()); | ||
1135 | 86 | connect(ui->extra2CheckBox, SIGNAL(toggled(bool)), this, SLOT(setExtra2CustomInfoFlag(bool))); | ||
1136 | 87 | |||
1137 | 88 | //Derived class-specific extra fields | ||
1138 | 89 | ui->extra3CheckBox->setChecked(getExtra3CustomInfoFlag()); | ||
1139 | 90 | connect(ui->extra3CheckBox, SIGNAL(toggled(bool)), this, SLOT(setExtra3CustomInfoFlag(bool))); | ||
1140 | 91 | |||
1141 | 92 | //The hour angle + DE (of date) | ||
1142 | 93 | ui->hourAngleCheckBox->setChecked(getHourAngleCustomInfoFlag()); | ||
1143 | 94 | connect(ui->hourAngleCheckBox, SIGNAL(toggled(bool)), this, SLOT(setHourAngleCustomInfoFlag(bool))); | ||
1144 | 95 | |||
1145 | 96 | //The absolute magnitude | ||
1146 | 97 | ui->absoluteMagnitudeCheckBox->setChecked(getAbsoluteMagnitudeCustomInfoFlag()); | ||
1147 | 98 | connect(ui->absoluteMagnitudeCheckBox, SIGNAL(toggled(bool)), this, SLOT(setAbsoluteMagnitudeCustomInfoFlag(bool))); | ||
1148 | 99 | |||
1149 | 100 | } | ||
1150 | 101 | |||
1151 | 102 | void CustomInfoDialog::setVisible(bool v) | ||
1152 | 103 | { | ||
1153 | 104 | StelDialog::setVisible(v); | ||
1154 | 105 | } | ||
1155 | 106 | |||
1156 | 107 | bool CustomInfoDialog::getNameCustomInfoFlag() | ||
1157 | 108 | { | ||
1158 | 109 | return conf->value("custom_selected_info/flag_show_name", false).toBool(); | ||
1159 | 110 | } | ||
1160 | 111 | |||
1161 | 112 | void CustomInfoDialog::setNameCustomInfoFlag(bool flag) | ||
1162 | 113 | { | ||
1163 | 114 | conf->setValue("custom_selected_info/flag_show_name", flag); | ||
1164 | 115 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1165 | 116 | } | ||
1166 | 117 | |||
1167 | 118 | bool CustomInfoDialog::getCatalogNumberCustomInfoFlag() | ||
1168 | 119 | { | ||
1169 | 120 | return conf->value("custom_selected_info/flag_show_catalognumber", false).toBool(); | ||
1170 | 121 | } | ||
1171 | 122 | |||
1172 | 123 | void CustomInfoDialog::setCatalogNumberCustomInfoFlag(bool flag) | ||
1173 | 124 | { | ||
1174 | 125 | conf->setValue("custom_selected_info/flag_show_catalognumber", flag); | ||
1175 | 126 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1176 | 127 | } | ||
1177 | 128 | |||
1178 | 129 | bool CustomInfoDialog::getMagnitudeCustomInfoFlag() | ||
1179 | 130 | { | ||
1180 | 131 | return conf->value("custom_selected_info/flag_show_magnitude", false).toBool(); | ||
1181 | 132 | } | ||
1182 | 133 | |||
1183 | 134 | void CustomInfoDialog::setMagnitudeCustomInfoFlag(bool flag) | ||
1184 | 135 | { | ||
1185 | 136 | conf->setValue("custom_selected_info/flag_show_magnitude", flag); | ||
1186 | 137 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1187 | 138 | } | ||
1188 | 139 | |||
1189 | 140 | bool CustomInfoDialog::getRaDecJ2000CustomInfoFlag() | ||
1190 | 141 | { | ||
1191 | 142 | return conf->value("custom_selected_info/flag_show_radecj2000", false).toBool(); | ||
1192 | 143 | } | ||
1193 | 144 | |||
1194 | 145 | void CustomInfoDialog::setRaDecJ2000CustomInfoFlag(bool flag) | ||
1195 | 146 | { | ||
1196 | 147 | conf->setValue("custom_selected_info/flag_show_radecj2000", flag); | ||
1197 | 148 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1198 | 149 | } | ||
1199 | 150 | |||
1200 | 151 | bool CustomInfoDialog::getRaDecOfDateCustomInfoFlag() | ||
1201 | 152 | { | ||
1202 | 153 | return conf->value("custom_selected_info/flag_show_radecofdate", false).toBool(); | ||
1203 | 154 | } | ||
1204 | 155 | |||
1205 | 156 | void CustomInfoDialog::setRaDecOfDateCustomInfoFlag(bool flag) | ||
1206 | 157 | { | ||
1207 | 158 | conf->setValue("custom_selected_info/flag_show_radecofdate", flag); | ||
1208 | 159 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1209 | 160 | } | ||
1210 | 161 | |||
1211 | 162 | bool CustomInfoDialog::getAltAzCustomInfoFlag() | ||
1212 | 163 | { | ||
1213 | 164 | return conf->value("custom_selected_info/flag_show_altaz", false).toBool(); | ||
1214 | 165 | } | ||
1215 | 166 | |||
1216 | 167 | void CustomInfoDialog::setAltAzCustomInfoFlag(bool flag) | ||
1217 | 168 | { | ||
1218 | 169 | conf->setValue("custom_selected_info/flag_show_altaz", flag); | ||
1219 | 170 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1220 | 171 | } | ||
1221 | 172 | |||
1222 | 173 | bool CustomInfoDialog::getDistanceCustomInfoFlag() | ||
1223 | 174 | { | ||
1224 | 175 | return conf->value("custom_selected_info/flag_show_distance", false).toBool(); | ||
1225 | 176 | } | ||
1226 | 177 | |||
1227 | 178 | void CustomInfoDialog::setDistanceCustomInfoFlag(bool flag) | ||
1228 | 179 | { | ||
1229 | 180 | conf->setValue("custom_selected_info/flag_show_distance", flag); | ||
1230 | 181 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1231 | 182 | } | ||
1232 | 183 | |||
1233 | 184 | bool CustomInfoDialog::getSizeCustomInfoFlag() | ||
1234 | 185 | { | ||
1235 | 186 | return conf->value("custom_selected_info/flag_show_size", false).toBool(); | ||
1236 | 187 | } | ||
1237 | 188 | |||
1238 | 189 | void CustomInfoDialog::setSizeCustomInfoFlag(bool flag) | ||
1239 | 190 | { | ||
1240 | 191 | conf->setValue("custom_selected_info/flag_show_size", flag); | ||
1241 | 192 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1242 | 193 | } | ||
1243 | 194 | |||
1244 | 195 | bool CustomInfoDialog::getExtra1CustomInfoFlag() | ||
1245 | 196 | { | ||
1246 | 197 | return conf->value("custom_selected_info/flag_show_extra1", false).toBool(); | ||
1247 | 198 | } | ||
1248 | 199 | |||
1249 | 200 | void CustomInfoDialog::setExtra1CustomInfoFlag(bool flag) | ||
1250 | 201 | { | ||
1251 | 202 | conf->setValue("custom_selected_info/flag_show_extra1", flag); | ||
1252 | 203 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1253 | 204 | } | ||
1254 | 205 | |||
1255 | 206 | bool CustomInfoDialog::getExtra2CustomInfoFlag() | ||
1256 | 207 | { | ||
1257 | 208 | return conf->value("custom_selected_info/flag_show_extra2", false).toBool(); | ||
1258 | 209 | } | ||
1259 | 210 | |||
1260 | 211 | void CustomInfoDialog::setExtra2CustomInfoFlag(bool flag) | ||
1261 | 212 | { | ||
1262 | 213 | conf->setValue("custom_selected_info/flag_show_extra2", flag); | ||
1263 | 214 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1264 | 215 | } | ||
1265 | 216 | |||
1266 | 217 | bool CustomInfoDialog::getExtra3CustomInfoFlag() | ||
1267 | 218 | { | ||
1268 | 219 | return conf->value("custom_selected_info/flag_show_extra3", false).toBool(); | ||
1269 | 220 | } | ||
1270 | 221 | |||
1271 | 222 | void CustomInfoDialog::setExtra3CustomInfoFlag(bool flag) | ||
1272 | 223 | { | ||
1273 | 224 | conf->setValue("custom_selected_info/flag_show_extra3", flag); | ||
1274 | 225 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1275 | 226 | } | ||
1276 | 227 | |||
1277 | 228 | bool CustomInfoDialog::getHourAngleCustomInfoFlag() | ||
1278 | 229 | { | ||
1279 | 230 | return conf->value("custom_selected_info/flag_show_hourangle", false).toBool(); | ||
1280 | 231 | } | ||
1281 | 232 | |||
1282 | 233 | void CustomInfoDialog::setHourAngleCustomInfoFlag(bool flag) | ||
1283 | 234 | { | ||
1284 | 235 | conf->setValue("custom_selected_info/flag_show_hourangle", flag); | ||
1285 | 236 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1286 | 237 | } | ||
1287 | 238 | |||
1288 | 239 | bool CustomInfoDialog::getAbsoluteMagnitudeCustomInfoFlag() | ||
1289 | 240 | { | ||
1290 | 241 | return conf->value("custom_selected_info/flag_show_absolutemagnitude", false).toBool(); | ||
1291 | 242 | } | ||
1292 | 243 | |||
1293 | 244 | void CustomInfoDialog::setAbsoluteMagnitudeCustomInfoFlag(bool flag) | ||
1294 | 245 | { | ||
1295 | 246 | conf->setValue("custom_selected_info/flag_show_absolutemagnitude", flag); | ||
1296 | 247 | gui->setInfoTextFilters(StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString())); | ||
1297 | 248 | } | ||
1298 | 249 | |||
1299 | 0 | 250 | ||
1300 | === added file 'src/gui/CustomInfoDialog.hpp' | |||
1301 | --- src/gui/CustomInfoDialog.hpp 1970-01-01 00:00:00 +0000 | |||
1302 | +++ src/gui/CustomInfoDialog.hpp 2012-04-13 18:05:24 +0000 | |||
1303 | @@ -0,0 +1,96 @@ | |||
1304 | 1 | /* | ||
1305 | 2 | * Stellarium | ||
1306 | 3 | * | ||
1307 | 4 | * Copyright (C) 2012 Alexander Wolf | ||
1308 | 5 | * | ||
1309 | 6 | * This program is free software; you can redistribute it and/or | ||
1310 | 7 | * modify it under the terms of the GNU General Public License | ||
1311 | 8 | * as published by the Free Software Foundation; either version 2 | ||
1312 | 9 | * of the License, or (at your option) any later version. | ||
1313 | 10 | * | ||
1314 | 11 | * This program is distributed in the hope that it will be useful, | ||
1315 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
1316 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
1317 | 14 | * GNU General Public License for more details. | ||
1318 | 15 | * You should have received a copy of the GNU General Public License | ||
1319 | 16 | * along with this program; if not, write to the Free Software | ||
1320 | 17 | * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. | ||
1321 | 18 | */ | ||
1322 | 19 | |||
1323 | 20 | // AW: Methods copied largely from AddRemoveLandscapesDialog | ||
1324 | 21 | |||
1325 | 22 | #ifndef _CUSTOMINFODIALOG_HPP_ | ||
1326 | 23 | #define _CUSTOMINFODIALOG_HPP_ | ||
1327 | 24 | |||
1328 | 25 | #include <QObject> | ||
1329 | 26 | #include <QSettings> | ||
1330 | 27 | #include "StelDialog.hpp" | ||
1331 | 28 | #include "StelGui.hpp" | ||
1332 | 29 | |||
1333 | 30 | class Ui_CustomInfoDialogForm; | ||
1334 | 31 | |||
1335 | 32 | //! @class CustomInfoDialog | ||
1336 | 33 | class CustomInfoDialog : public StelDialog | ||
1337 | 34 | { | ||
1338 | 35 | Q_OBJECT | ||
1339 | 36 | |||
1340 | 37 | public: | ||
1341 | 38 | CustomInfoDialog(); | ||
1342 | 39 | virtual ~CustomInfoDialog(); | ||
1343 | 40 | |||
1344 | 41 | public slots: | ||
1345 | 42 | void retranslate(); | ||
1346 | 43 | void setVisible(bool); | ||
1347 | 44 | |||
1348 | 45 | protected: | ||
1349 | 46 | //! Initialize the dialog widgets and connect the signals/slots. | ||
1350 | 47 | virtual void createDialogContent(); | ||
1351 | 48 | Ui_CustomInfoDialogForm *ui; | ||
1352 | 49 | |||
1353 | 50 | private slots: | ||
1354 | 51 | bool getNameCustomInfoFlag(); | ||
1355 | 52 | void setNameCustomInfoFlag(bool flag); | ||
1356 | 53 | |||
1357 | 54 | bool getCatalogNumberCustomInfoFlag(); | ||
1358 | 55 | void setCatalogNumberCustomInfoFlag(bool flag); | ||
1359 | 56 | |||
1360 | 57 | bool getMagnitudeCustomInfoFlag(); | ||
1361 | 58 | void setMagnitudeCustomInfoFlag(bool flag); | ||
1362 | 59 | |||
1363 | 60 | bool getRaDecJ2000CustomInfoFlag(); | ||
1364 | 61 | void setRaDecJ2000CustomInfoFlag(bool flag); | ||
1365 | 62 | |||
1366 | 63 | bool getRaDecOfDateCustomInfoFlag(); | ||
1367 | 64 | void setRaDecOfDateCustomInfoFlag(bool flag); | ||
1368 | 65 | |||
1369 | 66 | bool getAltAzCustomInfoFlag(); | ||
1370 | 67 | void setAltAzCustomInfoFlag(bool flag); | ||
1371 | 68 | |||
1372 | 69 | bool getDistanceCustomInfoFlag(); | ||
1373 | 70 | void setDistanceCustomInfoFlag(bool flag); | ||
1374 | 71 | |||
1375 | 72 | bool getSizeCustomInfoFlag(); | ||
1376 | 73 | void setSizeCustomInfoFlag(bool flag); | ||
1377 | 74 | |||
1378 | 75 | bool getExtra1CustomInfoFlag(); | ||
1379 | 76 | void setExtra1CustomInfoFlag(bool flag); | ||
1380 | 77 | |||
1381 | 78 | bool getExtra2CustomInfoFlag(); | ||
1382 | 79 | void setExtra2CustomInfoFlag(bool flag); | ||
1383 | 80 | |||
1384 | 81 | bool getExtra3CustomInfoFlag(); | ||
1385 | 82 | void setExtra3CustomInfoFlag(bool flag); | ||
1386 | 83 | |||
1387 | 84 | bool getHourAngleCustomInfoFlag(); | ||
1388 | 85 | void setHourAngleCustomInfoFlag(bool flag); | ||
1389 | 86 | |||
1390 | 87 | bool getAbsoluteMagnitudeCustomInfoFlag(); | ||
1391 | 88 | void setAbsoluteMagnitudeCustomInfoFlag(bool flag); | ||
1392 | 89 | |||
1393 | 90 | private: | ||
1394 | 91 | StelGuiBase* gui; | ||
1395 | 92 | QSettings* conf; | ||
1396 | 93 | |||
1397 | 94 | }; | ||
1398 | 95 | |||
1399 | 96 | #endif // _CUSTOMINFODIALOG_HPP_ | ||
1400 | 0 | 97 | ||
1401 | === added file 'src/gui/CustomInfoDialog.ui' | |||
1402 | --- src/gui/CustomInfoDialog.ui 1970-01-01 00:00:00 +0000 | |||
1403 | +++ src/gui/CustomInfoDialog.ui 2012-04-13 18:05:24 +0000 | |||
1404 | @@ -0,0 +1,286 @@ | |||
1405 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
1406 | 2 | <ui version="4.0"> | ||
1407 | 3 | <class>CustomInfoDialogForm</class> | ||
1408 | 4 | <widget class="QWidget" name="CustomInfoDialogForm"> | ||
1409 | 5 | <property name="sizePolicy"> | ||
1410 | 6 | <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> | ||
1411 | 7 | <horstretch>0</horstretch> | ||
1412 | 8 | <verstretch>0</verstretch> | ||
1413 | 9 | </sizepolicy> | ||
1414 | 10 | </property> | ||
1415 | 11 | <layout class="QVBoxLayout" name="verticalLayout"> | ||
1416 | 12 | <property name="spacing"> | ||
1417 | 13 | <number>0</number> | ||
1418 | 14 | </property> | ||
1419 | 15 | <property name="margin"> | ||
1420 | 16 | <number>0</number> | ||
1421 | 17 | </property> | ||
1422 | 18 | <item> | ||
1423 | 19 | <widget class="BarFrame" name="TitleBar"> | ||
1424 | 20 | <property name="minimumSize"> | ||
1425 | 21 | <size> | ||
1426 | 22 | <width>16</width> | ||
1427 | 23 | <height>25</height> | ||
1428 | 24 | </size> | ||
1429 | 25 | </property> | ||
1430 | 26 | <property name="maximumSize"> | ||
1431 | 27 | <size> | ||
1432 | 28 | <width>16777215</width> | ||
1433 | 29 | <height>25</height> | ||
1434 | 30 | </size> | ||
1435 | 31 | </property> | ||
1436 | 32 | <property name="frameShape"> | ||
1437 | 33 | <enum>QFrame::StyledPanel</enum> | ||
1438 | 34 | </property> | ||
1439 | 35 | <layout class="QHBoxLayout"> | ||
1440 | 36 | <property name="leftMargin"> | ||
1441 | 37 | <number>0</number> | ||
1442 | 38 | </property> | ||
1443 | 39 | <property name="topMargin"> | ||
1444 | 40 | <number>0</number> | ||
1445 | 41 | </property> | ||
1446 | 42 | <property name="rightMargin"> | ||
1447 | 43 | <number>4</number> | ||
1448 | 44 | </property> | ||
1449 | 45 | <property name="bottomMargin"> | ||
1450 | 46 | <number>0</number> | ||
1451 | 47 | </property> | ||
1452 | 48 | <item> | ||
1453 | 49 | <spacer> | ||
1454 | 50 | <property name="orientation"> | ||
1455 | 51 | <enum>Qt::Horizontal</enum> | ||
1456 | 52 | </property> | ||
1457 | 53 | <property name="sizeHint" stdset="0"> | ||
1458 | 54 | <size> | ||
1459 | 55 | <width>40</width> | ||
1460 | 56 | <height>20</height> | ||
1461 | 57 | </size> | ||
1462 | 58 | </property> | ||
1463 | 59 | </spacer> | ||
1464 | 60 | </item> | ||
1465 | 61 | <item> | ||
1466 | 62 | <widget class="QLabel" name="stelWindowTitle"> | ||
1467 | 63 | <property name="palette"> | ||
1468 | 64 | <palette> | ||
1469 | 65 | <active/> | ||
1470 | 66 | <inactive/> | ||
1471 | 67 | <disabled/> | ||
1472 | 68 | </palette> | ||
1473 | 69 | </property> | ||
1474 | 70 | <property name="font"> | ||
1475 | 71 | <font/> | ||
1476 | 72 | </property> | ||
1477 | 73 | <property name="text"> | ||
1478 | 74 | <string>Selected object information</string> | ||
1479 | 75 | </property> | ||
1480 | 76 | </widget> | ||
1481 | 77 | </item> | ||
1482 | 78 | <item> | ||
1483 | 79 | <spacer> | ||
1484 | 80 | <property name="orientation"> | ||
1485 | 81 | <enum>Qt::Horizontal</enum> | ||
1486 | 82 | </property> | ||
1487 | 83 | <property name="sizeHint" stdset="0"> | ||
1488 | 84 | <size> | ||
1489 | 85 | <width>40</width> | ||
1490 | 86 | <height>20</height> | ||
1491 | 87 | </size> | ||
1492 | 88 | </property> | ||
1493 | 89 | </spacer> | ||
1494 | 90 | </item> | ||
1495 | 91 | <item> | ||
1496 | 92 | <widget class="QPushButton" name="closeStelWindow"> | ||
1497 | 93 | <property name="minimumSize"> | ||
1498 | 94 | <size> | ||
1499 | 95 | <width>16</width> | ||
1500 | 96 | <height>16</height> | ||
1501 | 97 | </size> | ||
1502 | 98 | </property> | ||
1503 | 99 | <property name="maximumSize"> | ||
1504 | 100 | <size> | ||
1505 | 101 | <width>16</width> | ||
1506 | 102 | <height>16</height> | ||
1507 | 103 | </size> | ||
1508 | 104 | </property> | ||
1509 | 105 | <property name="focusPolicy"> | ||
1510 | 106 | <enum>Qt::NoFocus</enum> | ||
1511 | 107 | </property> | ||
1512 | 108 | <property name="text"> | ||
1513 | 109 | <string/> | ||
1514 | 110 | </property> | ||
1515 | 111 | </widget> | ||
1516 | 112 | </item> | ||
1517 | 113 | </layout> | ||
1518 | 114 | </widget> | ||
1519 | 115 | </item> | ||
1520 | 116 | <item> | ||
1521 | 117 | <widget class="QGroupBox" name="customInfoGroupBox"> | ||
1522 | 118 | <property name="title"> | ||
1523 | 119 | <string>Custom Info Settings</string> | ||
1524 | 120 | </property> | ||
1525 | 121 | <property name="alignment"> | ||
1526 | 122 | <set>Qt::AlignCenter</set> | ||
1527 | 123 | </property> | ||
1528 | 124 | <layout class="QVBoxLayout" name="verticalLayout_3"> | ||
1529 | 125 | <property name="margin"> | ||
1530 | 126 | <number>0</number> | ||
1531 | 127 | </property> | ||
1532 | 128 | <item> | ||
1533 | 129 | <widget class="QCheckBox" name="nameCheckBox"> | ||
1534 | 130 | <property name="toolTip"> | ||
1535 | 131 | <string>Display info about an object's name</string> | ||
1536 | 132 | </property> | ||
1537 | 133 | <property name="text"> | ||
1538 | 134 | <string>An object's name</string> | ||
1539 | 135 | </property> | ||
1540 | 136 | </widget> | ||
1541 | 137 | </item> | ||
1542 | 138 | <item> | ||
1543 | 139 | <widget class="QCheckBox" name="catalogNumberCheckBox"> | ||
1544 | 140 | <property name="toolTip"> | ||
1545 | 141 | <string>Display info about a catalog numbers</string> | ||
1546 | 142 | </property> | ||
1547 | 143 | <property name="text"> | ||
1548 | 144 | <string>Catalog numbers</string> | ||
1549 | 145 | </property> | ||
1550 | 146 | </widget> | ||
1551 | 147 | </item> | ||
1552 | 148 | <item> | ||
1553 | 149 | <widget class="QCheckBox" name="magnitudeCheckBox"> | ||
1554 | 150 | <property name="toolTip"> | ||
1555 | 151 | <string>Display info about a visual magnitude</string> | ||
1556 | 152 | </property> | ||
1557 | 153 | <property name="text"> | ||
1558 | 154 | <string>Visual magnitude</string> | ||
1559 | 155 | </property> | ||
1560 | 156 | </widget> | ||
1561 | 157 | </item> | ||
1562 | 158 | <item> | ||
1563 | 159 | <widget class="QCheckBox" name="absoluteMagnitudeCheckBox"> | ||
1564 | 160 | <property name="toolTip"> | ||
1565 | 161 | <string>Display info about an absolute magnitude</string> | ||
1566 | 162 | </property> | ||
1567 | 163 | <property name="text"> | ||
1568 | 164 | <string>Absolute magnitude</string> | ||
1569 | 165 | </property> | ||
1570 | 166 | </widget> | ||
1571 | 167 | </item> | ||
1572 | 168 | <item> | ||
1573 | 169 | <widget class="QCheckBox" name="raDecJ2000CheckBox"> | ||
1574 | 170 | <property name="toolTip"> | ||
1575 | 171 | <string>Display the equatorial position (J2000 ref)</string> | ||
1576 | 172 | </property> | ||
1577 | 173 | <property name="text"> | ||
1578 | 174 | <string>The equatorial coordinates (J2000 ref)</string> | ||
1579 | 175 | </property> | ||
1580 | 176 | </widget> | ||
1581 | 177 | </item> | ||
1582 | 178 | <item> | ||
1583 | 179 | <widget class="QCheckBox" name="raDecOfDateCheckBox"> | ||
1584 | 180 | <property name="toolTip"> | ||
1585 | 181 | <string>Display the equatorial position (of date)</string> | ||
1586 | 182 | </property> | ||
1587 | 183 | <property name="text"> | ||
1588 | 184 | <string>The equatorial coordinates (of date)</string> | ||
1589 | 185 | </property> | ||
1590 | 186 | </widget> | ||
1591 | 187 | </item> | ||
1592 | 188 | <item> | ||
1593 | 189 | <widget class="QCheckBox" name="altAzCheckBox"> | ||
1594 | 190 | <property name="toolTip"> | ||
1595 | 191 | <string>Display the altitude and azimuth position</string> | ||
1596 | 192 | </property> | ||
1597 | 193 | <property name="text"> | ||
1598 | 194 | <string>The alt-azimuthal coordinates</string> | ||
1599 | 195 | </property> | ||
1600 | 196 | </widget> | ||
1601 | 197 | </item> | ||
1602 | 198 | <item> | ||
1603 | 199 | <widget class="QCheckBox" name="hourAngleCheckBox"> | ||
1604 | 200 | <property name="toolTip"> | ||
1605 | 201 | <string>Display the hour angle + DE (of date)</string> | ||
1606 | 202 | </property> | ||
1607 | 203 | <property name="text"> | ||
1608 | 204 | <string>The hour angle</string> | ||
1609 | 205 | </property> | ||
1610 | 206 | </widget> | ||
1611 | 207 | </item> | ||
1612 | 208 | <item> | ||
1613 | 209 | <widget class="QCheckBox" name="distanceCheckBox"> | ||
1614 | 210 | <property name="toolTip"> | ||
1615 | 211 | <string>Display info about an object's distance</string> | ||
1616 | 212 | </property> | ||
1617 | 213 | <property name="text"> | ||
1618 | 214 | <string>Object's distance</string> | ||
1619 | 215 | </property> | ||
1620 | 216 | </widget> | ||
1621 | 217 | </item> | ||
1622 | 218 | <item> | ||
1623 | 219 | <widget class="QCheckBox" name="sizeCheckBox"> | ||
1624 | 220 | <property name="toolTip"> | ||
1625 | 221 | <string>Display info about an object's size</string> | ||
1626 | 222 | </property> | ||
1627 | 223 | <property name="text"> | ||
1628 | 224 | <string>Object's size</string> | ||
1629 | 225 | </property> | ||
1630 | 226 | </widget> | ||
1631 | 227 | </item> | ||
1632 | 228 | <item> | ||
1633 | 229 | <widget class="QCheckBox" name="extra1CheckBox"> | ||
1634 | 230 | <property name="toolTip"> | ||
1635 | 231 | <string>Display a derived class-specific extra fields</string> | ||
1636 | 232 | </property> | ||
1637 | 233 | <property name="text"> | ||
1638 | 234 | <string>Additional info (Extra 1)</string> | ||
1639 | 235 | </property> | ||
1640 | 236 | </widget> | ||
1641 | 237 | </item> | ||
1642 | 238 | <item> | ||
1643 | 239 | <widget class="QCheckBox" name="extra2CheckBox"> | ||
1644 | 240 | <property name="toolTip"> | ||
1645 | 241 | <string>Display a derived class-specific extra fields</string> | ||
1646 | 242 | </property> | ||
1647 | 243 | <property name="text"> | ||
1648 | 244 | <string>Additional info (Extra 2)</string> | ||
1649 | 245 | </property> | ||
1650 | 246 | </widget> | ||
1651 | 247 | </item> | ||
1652 | 248 | <item> | ||
1653 | 249 | <widget class="QCheckBox" name="extra3CheckBox"> | ||
1654 | 250 | <property name="toolTip"> | ||
1655 | 251 | <string>Display a derived class-specific extra fields</string> | ||
1656 | 252 | </property> | ||
1657 | 253 | <property name="text"> | ||
1658 | 254 | <string>Additional info (Extra 3)</string> | ||
1659 | 255 | </property> | ||
1660 | 256 | </widget> | ||
1661 | 257 | </item> | ||
1662 | 258 | <item> | ||
1663 | 259 | <spacer name="verticalSpacer"> | ||
1664 | 260 | <property name="orientation"> | ||
1665 | 261 | <enum>Qt::Vertical</enum> | ||
1666 | 262 | </property> | ||
1667 | 263 | <property name="sizeHint" stdset="0"> | ||
1668 | 264 | <size> | ||
1669 | 265 | <width>20</width> | ||
1670 | 266 | <height>40</height> | ||
1671 | 267 | </size> | ||
1672 | 268 | </property> | ||
1673 | 269 | </spacer> | ||
1674 | 270 | </item> | ||
1675 | 271 | </layout> | ||
1676 | 272 | </widget> | ||
1677 | 273 | </item> | ||
1678 | 274 | </layout> | ||
1679 | 275 | </widget> | ||
1680 | 276 | <customwidgets> | ||
1681 | 277 | <customwidget> | ||
1682 | 278 | <class>BarFrame</class> | ||
1683 | 279 | <extends>QFrame</extends> | ||
1684 | 280 | <header>Dialog.hpp</header> | ||
1685 | 281 | <container>1</container> | ||
1686 | 282 | </customwidget> | ||
1687 | 283 | </customwidgets> | ||
1688 | 284 | <resources/> | ||
1689 | 285 | <connections/> | ||
1690 | 286 | </ui> | ||
1691 | 0 | 287 | ||
1692 | === modified file 'src/gui/SkyGui.cpp' | |||
1693 | --- src/gui/SkyGui.cpp 2012-02-19 00:21:59 +0000 | |||
1694 | +++ src/gui/SkyGui.cpp 2012-04-13 18:05:24 +0000 | |||
1695 | @@ -18,9 +18,11 @@ | |||
1696 | 18 | */ | 18 | */ |
1697 | 19 | 19 | ||
1698 | 20 | #include "SkyGui.hpp" | 20 | #include "SkyGui.hpp" |
1699 | 21 | #include "StelObjectMgr.hpp" | ||
1700 | 21 | #include "StelGuiItems.hpp" | 22 | #include "StelGuiItems.hpp" |
1701 | 22 | #include "StelApp.hpp" | 23 | #include "StelApp.hpp" |
1702 | 23 | #include "StelGui.hpp" | 24 | #include "StelGui.hpp" |
1703 | 25 | #include "StelCore.hpp" | ||
1704 | 24 | #include <QGraphicsView> | 26 | #include <QGraphicsView> |
1705 | 25 | #include <QDebug> | 27 | #include <QDebug> |
1706 | 26 | #include <QTimeLine> | 28 | #include <QTimeLine> |
1707 | @@ -34,11 +36,21 @@ | |||
1708 | 34 | Q_ASSERT(conf); | 36 | Q_ASSERT(conf); |
1709 | 35 | QString objectInfo = conf->value("gui/selected_object_info", "all").toString(); | 37 | QString objectInfo = conf->value("gui/selected_object_info", "all").toString(); |
1710 | 36 | if (objectInfo == "all") | 38 | if (objectInfo == "all") |
1711 | 39 | { | ||
1712 | 37 | infoTextFilters = StelObject::InfoStringGroup(StelObject::AllInfo); | 40 | infoTextFilters = StelObject::InfoStringGroup(StelObject::AllInfo); |
1713 | 41 | } | ||
1714 | 38 | else if (objectInfo == "short") | 42 | else if (objectInfo == "short") |
1715 | 43 | { | ||
1716 | 39 | infoTextFilters = StelObject::InfoStringGroup(StelObject::ShortInfo); | 44 | infoTextFilters = StelObject::InfoStringGroup(StelObject::ShortInfo); |
1717 | 45 | } | ||
1718 | 40 | else if (objectInfo == "none") | 46 | else if (objectInfo == "none") |
1719 | 47 | { | ||
1720 | 41 | infoTextFilters = StelObject::InfoStringGroup(0); | 48 | infoTextFilters = StelObject::InfoStringGroup(0); |
1721 | 49 | } | ||
1722 | 50 | else if (objectInfo == "custom") | ||
1723 | 51 | { | ||
1724 | 52 | infoTextFilters = StelObject::InfoStringGroup(StelApp::getInstance().getStelObjectMgr().getCustomInfoString()); | ||
1725 | 53 | } | ||
1726 | 42 | else | 54 | else |
1727 | 43 | { | 55 | { |
1728 | 44 | qWarning() << "config.ini option gui/selected_object_info is invalid, using \"all\""; | 56 | qWarning() << "config.ini option gui/selected_object_info is invalid, using \"all\""; |
1729 | 45 | 57 | ||
1730 | === modified file 'src/gui/configurationDialog.ui' | |||
1731 | --- src/gui/configurationDialog.ui 2012-02-11 18:53:11 +0000 | |||
1732 | +++ src/gui/configurationDialog.ui 2012-04-13 18:05:24 +0000 | |||
1733 | @@ -6,8 +6,8 @@ | |||
1734 | 6 | <rect> | 6 | <rect> |
1735 | 7 | <x>0</x> | 7 | <x>0</x> |
1736 | 8 | <y>0</y> | 8 | <y>0</y> |
1739 | 9 | <width>440</width> | 9 | <width>428</width> |
1740 | 10 | <height>460</height> | 10 | <height>467</height> |
1741 | 11 | </rect> | 11 | </rect> |
1742 | 12 | </property> | 12 | </property> |
1743 | 13 | <property name="styleSheet"> | 13 | <property name="styleSheet"> |
1744 | @@ -212,34 +212,66 @@ | |||
1745 | 212 | <number>0</number> | 212 | <number>0</number> |
1746 | 213 | </property> | 213 | </property> |
1747 | 214 | <item> | 214 | <item> |
1776 | 215 | <widget class="QRadioButton" name="allSelectedInfoRadio"> | 215 | <layout class="QHBoxLayout" name="horizontalLayout_13"> |
1777 | 216 | <property name="toolTip"> | 216 | <item> |
1778 | 217 | <string>Display all information available</string> | 217 | <widget class="QRadioButton" name="allSelectedInfoRadio"> |
1779 | 218 | </property> | 218 | <property name="toolTip"> |
1780 | 219 | <property name="text"> | 219 | <string>Display all information available</string> |
1781 | 220 | <string>All available</string> | 220 | </property> |
1782 | 221 | </property> | 221 | <property name="text"> |
1783 | 222 | </widget> | 222 | <string>All available</string> |
1784 | 223 | </item> | 223 | </property> |
1785 | 224 | <item> | 224 | </widget> |
1786 | 225 | <widget class="QRadioButton" name="briefSelectedInfoRadio"> | 225 | </item> |
1787 | 226 | <property name="toolTip"> | 226 | <item> |
1788 | 227 | <string>Display less information</string> | 227 | <widget class="QRadioButton" name="briefSelectedInfoRadio"> |
1789 | 228 | </property> | 228 | <property name="toolTip"> |
1790 | 229 | <property name="text"> | 229 | <string>Display less information</string> |
1791 | 230 | <string>Short</string> | 230 | </property> |
1792 | 231 | </property> | 231 | <property name="text"> |
1793 | 232 | </widget> | 232 | <string>Short</string> |
1794 | 233 | </item> | 233 | </property> |
1795 | 234 | <item> | 234 | </widget> |
1796 | 235 | <widget class="QRadioButton" name="noSelectedInfoRadio"> | 235 | </item> |
1797 | 236 | <property name="toolTip"> | 236 | </layout> |
1798 | 237 | <string>Display no information</string> | 237 | </item> |
1799 | 238 | </property> | 238 | <item> |
1800 | 239 | <property name="text"> | 239 | <layout class="QHBoxLayout" name="horizontalLayout_14"> |
1801 | 240 | <string>None</string> | 240 | <item> |
1802 | 241 | </property> | 241 | <layout class="QHBoxLayout" name="horizontalLayout_16"> |
1803 | 242 | </widget> | 242 | <item> |
1804 | 243 | <widget class="QRadioButton" name="customSelectedInfoRadio"> | ||
1805 | 244 | <property name="toolTip"> | ||
1806 | 245 | <string>Display user settings information</string> | ||
1807 | 246 | </property> | ||
1808 | 247 | <property name="text"> | ||
1809 | 248 | <string>Customized</string> | ||
1810 | 249 | </property> | ||
1811 | 250 | </widget> | ||
1812 | 251 | </item> | ||
1813 | 252 | <item> | ||
1814 | 253 | <widget class="QPushButton" name="pushButtonCustomInfoDialog"> | ||
1815 | 254 | <property name="enabled"> | ||
1816 | 255 | <bool>true</bool> | ||
1817 | 256 | </property> | ||
1818 | 257 | <property name="text"> | ||
1819 | 258 | <string notr="true">...</string> | ||
1820 | 259 | </property> | ||
1821 | 260 | </widget> | ||
1822 | 261 | </item> | ||
1823 | 262 | </layout> | ||
1824 | 263 | </item> | ||
1825 | 264 | <item> | ||
1826 | 265 | <widget class="QRadioButton" name="noSelectedInfoRadio"> | ||
1827 | 266 | <property name="toolTip"> | ||
1828 | 267 | <string>Display no information</string> | ||
1829 | 268 | </property> | ||
1830 | 269 | <property name="text"> | ||
1831 | 270 | <string>None</string> | ||
1832 | 271 | </property> | ||
1833 | 272 | </widget> | ||
1834 | 273 | </item> | ||
1835 | 274 | </layout> | ||
1836 | 243 | </item> | 275 | </item> |
1837 | 244 | </layout> | 276 | </layout> |
1838 | 245 | </widget> | 277 | </widget> |
I did not build the branch, but from the code it seems to be a good addition. Some users may want to avoid "all those numbers", others will want even more, this is a good step.