-
-
Notifications
You must be signed in to change notification settings - Fork 850
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
AstroCalc: Add a filter by eclipse type #4054
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
Upper part of GUI in this tab is one for all subtabs and of course this filter is not applicable to lunar eclipses and to transits. Please move UI part of filter to bottom part of GUI. |
b1d117f
to
17d2280
Compare
I'm retaining them at the same place, but now this block is used both for general and local solar eclipses (hiding "hybrid" checkbox for locals), and hidden for other pages. |
17d2280
to
b51cbe8
Compare
What about “jumping” of time range block when subtabs are changing? |
Do you think it's critical? The tabs are mostly independent, aren't they? |
b51cbe8
to
7dbbc7b
Compare
I've now extended it to lunar eclipses. So I think this placement in a common location is a good thing, and the jumpiness is not critical. Maybe just the aesthetics of the GUI are a bit suboptimal. |
What about placement of new block between name of table and time range block? |
IMO the filter by type is secondary to the time range, so the former shouldn't appear logically before the latter. Besides, I didn't like the two-checkbox-rows layout anyway, since it extends everything vertically in this HBox, leaving ugly space around. And putting the horizontal row in between will result in the name string being split into two lines (e.g. local eclipses title in Russian locale is quite long). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
I agree the new boxes should not go between table title and date range. But what about after? Then the first line reads "Table of xxx eclipses from year YYYY to the next NN years" (could also go in one continuous label, just keep bold as now) with selector boxes behind (after a stretch, right adjusted). Saves one vertical line. Or is the Russian name of local eclipses really too long for that? |
The current 2-line UI is good for translation to languages with "wide words" |
And to add to this, note that "Annular" is "Кольцеобразное", one more long word. |
@10110111 please add ability to save/restore filter options in/from |
Hello @10110111! Thank you for the suggested improvement. |
If this is gonna be preserved, should it be per-page then? Or would a global state be sufficient? |
Separate entries for partial/total lunar and solar please. And (as used elsewhere in AstroCalc) these settings should be stored immediately. On next call, the settings should appear as the last time user called the panel. |
@10110111 did you have tested the saving/restoring feature? The config options look’s overcomplicated. |
Sure I have tested it. What exactly looks overcomplicated to you? We have 3 tabs, with 4,3,3 checkboxes. All have been requested to be kept independent, thus we get 10 independent options in the config file: [astrocalc]
eclipse_filter/global_solar/annular_enabled = true
eclipse_filter/global_solar/hybrid_enabled = true
eclipse_filter/global_solar/partial_enabled = true
eclipse_filter/global_solar/total_enabled = true
eclipse_filter/local_solar/annular_enabled = true
eclipse_filter/local_solar/partial_enabled = true
eclipse_filter/local_solar/total_enabled = true
eclipse_filter/lunar/partial_enabled = true
eclipse_filter/lunar/penumbral_enabled = true
eclipse_filter/lunar/total_enabled = true |
OK, thanks! |
Description
This adds a way to select only particular types of eclipses to compute, e.g. only total, or only hybrid+annular. The UI might have been done better, but I'm not a UI designer :P
Screenshots
Type of change
Checklist: