-
-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Observing lists fix #2553
Observing lists fix #2553
Conversation
when name of the list is empty, now, save/close button is disabled
- modification for pull request - deletion of empty item in lists combobox - new way for signal/slot connection
- adding error message in case of list name duplication, - loading default list whenn opening obsListDialog, - sort list name in combo box.
Correction of the sort list in combo
adding legacy bookmarks into observing list
Sorting objects when the list is loaded.
- The key defaultlist doesn’t appear in the observingList file, - The list is not loaded in the tree view, when there is no default list, - Lost of existing sort when we modify a list.
- The key defaultlist doesn’t appear in the observingList file, - The list is not loaded in the tree view, when there is no default list, - Lost of existing sort when we modify a list.
When we delete a list, now we have a confirmation popup.
clear highlight after delete a list, default uuid, etc...
Multiple corrections and modifications
Correction of wrong jd (lost of accuracy)
Adding JD and Location checkbox in obsListDialog.
Use new method getObjectType().
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files |
Magnitude and name correction
This pull request fixes 3 alerts when merging 21ecb8e into 0697699 - view on LGTM.com fixed alerts:
|
I think the changes in the code is ready to public testing |
I have a few entries for the Moon, stored with date/location. In the bookmark list, all show the coordinates of the "current" moon. Would it not be better to store&retrieve also coordinates, or at least recreate the coordinates from the stored time&locations? When a bookmark was stored, it apparently stored the location name, but no other data. Sometimes this location comes from a "landscape". On bookmark loading, users are thrown to long/lat 0/0. If location was not found, it is better to not move to the ocean around the equator. On the plus side, I have so far not triggered a crash :-) |
Hi, @gzotti is it possible to have your observinglist.json ? Many thanks. Jocelyn |
OK, here. (Renamed for Github) I see when location is empty, the user is moved to 0/0. It would be better to not move location in this case. Probably also locations only retrieved from the landscapes are lost on storing when there is no coordinates for the Landscape placename stored in the location database. It may be useful to explore storing the whole location (name, coordinates, timezone, LP info, ...) into a string which could be retrieved by Location::createFromLine(). For this, developing a fitting Location::toString() would be required. In any case, if no numerical data can be found for a location, the position should not change to just 0/0. (Note somebody may store 0/0 explicitly! Then it is required to go there...) |
Of course StelLocation::serializeToLine() is the inverse of createFromLine() which you can use to encode all location data into a single entry for the JSON. |
@gzotti |
@alex-w @gzotti Jocelyn |
Yes, this is good. Imagine you want to show the eclipsed Moon from various locations at the same time. This should allow demonstrating that it appears equally dark, but in different places (az/alt) in the sky, and esp. in slightly differing places depending on topographic parallax. As said, please also consider optionally storing the landscape ID for an automated context change. |
@gzotti
|
@Jocelyn1109 is it possible pushing the fixes in next 2 days to adding them into RC1? |
@gzotti is the currently state of the pull request enough to merge and extract the translatable lines to prepare RC1 tomorrow? |
If this is a problem only for the old bookmark lists, don't bother. For new entries it should be enough to store Ra/Dec when the entry is created with timestamp. But it is important to not change location if the location cannot be decoded correctly. Hmm, location should as discussed be stored as StelLocation::serializeToLine() and decoded with StelLocation::createFromLine(const QString& line); to fully store data in case location comes from a landscape or was manually configured. The GUI should be edited a bit: move all optionally stored items above or below. Currently checkboxes in the list edit panel to store coordinates and fov are below, landscape is above, and there is no JD entry. In the data retrieval panel, there are only checkboxes for JD and location, no landscapes and no fov. Please also rebase this branch from current master. |
Hello @Jocelyn1109! Please check the fresh version (development snapshot) of Stellarium: |
Hello @Jocelyn1109! Please check the latest stable version of Stellarium: |
Fixes #2525
Fixes #2411
Fixes #1944
Fixes #1941
Fixes #1933
Fixes #1932
Fixes #1884
Fixes #976