-
-
Notifications
You must be signed in to change notification settings - Fork 849
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
Added GUI to manually entering FOV #3093
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. |
"Use decimal degrees" option should be honored. |
Also, I think the UX would be best if the FOV field in the bottom panel became a button that would open this dialog (and have a tooltip to hint at the F9 shortcut). The auto-sliding of the panel can be a bit of a nuisance though when you target this button and it jumps away from the cursor. |
OK, this is good point. |
Sorry, I disagree. |
Why show both D°M'S" and D.D° when it's not done this way in any other angle entry field (e.g. in Location dialog)? |
Why not? :) Of course I can add code to change the UI to follow "Use decimal degrees” option on-the-fly, but… 1) the FOV value on the bottom bar are configurable and I don’t want to add the all possible combinations; 2) Date/Time window has in addition to the date and time JD/MJD - here is similar feature; 3) someone can use this tool as convertor between DMS and DD values. Or you expect to see one field of input for FOV value (like as in Location dialog)? |
Yes, this is definitely what I expected. Otherwise why do we even have this checkbox in the Tools dialog? I don't quite like the current two-formats form, but OK, let's see what others think. |
Do we really need a full new dialog class, css addition and precious hotkey for such rarely used fine-tweak functionality? A simple AngleSpinBox in ViewSettings/Sky/Projection should be enough IMHO. Please avoid code bloat! Most users (all-1?) will continue to use regular zoom and maybe the ten configurable FOV shortcuts. If you think this additional dialog is necessary, I have a few remarks:
|
I think this is a useful feature, so I vote for showing both in the same window. |
Purporting a completely unrelated dialog for such a converter is really bad design. Not only because the purposes are mixed so that using the converter has a side effect of changing the scene, but also:
Besides, when done in a single-format way, if you enter an angle in the current format and then toggle the setting in Tools dialog, the conversion would happen automatically, just as it is now in Location dialog.
+1 about the hotkey, and then my suggestion to use a panel button for this would help avoid spending a key. As for the separate class, I think it's completely OK to use a new class since it improves modularity while letting one connect spinboxes with each other, leaving this invisible to other code. But the CSS additions, albeit hacky (as most CSS-based styles in Qt), is basically the same design as in
All users will continue using the regular zoom, but some of them will also be happy to be able to set the exact desired zoom level on the fly. |
Yes, but a simple AngleSpinBox could do the same with far less added code. |
looking good.
|
Right-clicking in the bottom toolbar triggers a side function ("configure"), while left-clicking toggles the plugin. Doing it the same way with FOV doesn't make sense, since the primary purpose of this button would be to configure FOV (we can't "toggle the field of view"). And if the button highlights as a button and left-clicking doesn't do anything, it's poor UX, and it won't make the user expect that right-clicking might work.
It's the panel that slides, not a window. If you have the bottom panel always expanded (this is toggled by a button in the corner), then you'll not have this problem. |
It would be an added primary dialog of the same rank as the time dialog, so a high-valued F9 keystroke (so far unused) and even button in the left bar would be called for. However, I really see no need for the whole dialog with all required plumbing and boilerplating when the same rarely used action can be added easily in an obvious location of an existing dialog. I would rather allow plugins with large GUIs take left-bar buttons (E.g. Scenery3D, Oculars), but this demand has been remedied by plugin display buttons with right-click config action in the bottom bar. (We should probably add right-click actions to the leftmost bottom bar buttons to show the respective tab in the view dialog!) |
Well, one option is to just add a spinbox near the "Custom FoV limit" in View dialog, naming it something like "Current FoV". It just must not interfere with possible very small values of |
Hmm… I don’t understand why it happens |
This may be the age-old issue with UI elements having focus for the Enter key. (See also #1971.) I almost always only operate the GUI with the mouse, so I almost never press enter or tab... |
No, this is unrelated issue. P.S. I found and fixed the issue. |
Your fix will break the intention of #1971. This is more a workaround for some other problem than a fix. |
|
Not really, this part came in long before me, in 916d26b. |
This is true black magic 🤬 |
OK, recalled: this was my solution. |
Well, this solution in the code already, but when I reset focus settings for atmosphere dialog button, then I see “standard” behavior - opening atmosphere dialog when some spinbox is filled by ‘Enter’ |
Stop! You are proposed add eventFilter to ViewDialog? |
Yes, I proposed to add a filter to ViewDialog and reject Enter and Return keys. They are never used for accepting this dialog anyway (unlike Esc, which rejects it). |
No success. Probably I doing something wrong. Could you check it on your side? |
You might have forgotten to install the event filter: simply overriding the method is not enough. Anyway, I've pushed the version that works for me. |
Yes, this was correct point :-/
You have forgotten remove the focus property from "atmosphere" button. @gzotti @10110111 This feature may be added into 23.1 release if it OK for you. |
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.
Works for me, thanks!
Hello @alex-w! Please check the fresh version (development snapshot) of Stellarium: |
Hello @alex-w! Please check the latest stable version of Stellarium: |
Description
In this pull request I've proposes the optional GUI (available through hotkey F9) to manually entering the field of view (simlar to Date/Time window). Of course this tool changes FOV only - no rotation!
Parially fix #3013 (issue)
Screenshot
Type of change
Checklist: