-
Notifications
You must be signed in to change notification settings - Fork 38.6k
qt: Add Window menu #14573
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
qt: Add Window menu #14573
Conversation
ken2812221
left a comment
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.
Concept ACK
|
Concept ACK. From Apple's Human Interface Guidelines:
|
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
039c146 to
3f779b3
Compare
|
Removed the changes to the "Settings" menu. |
|
I don't know what the conventions around this are, nowadays, but Concept ACK.
|
|
Concept ACK, I would slightly prefer the name "View" but this is fine with me too |
|
Tested a bit. |
|
Thanks @jonasschnelli, I'll see if others also toggle. I have to test in windows. |
|
@jonasschnelli on macos, if the active window is minimized then "Minimize" action is disabled. And "Zoom" action toggles between maximized and normal. Also, some software add the main window to this menu, and I think we could too. |
|
@hebasto wrote:
Why? Loading, saving and backing up the wallet seem like document / File operations. Moving message signing and verification from File to Window would make more sense to me. Even more clear IMO, but haven't thought very deeply about it yet, is to have a Wallet top level menu. In that case I'd be more in favour of adding Backup into that, as well as sign/verify, Sending/Receiving address. The Window menu would be used for Minimize, Debug Window. I would also be fine with dropping the "Address Book" level and just having direct menu items for Sending and Receiving addresses. Definitely out of scope, but I would still like to see each wallet represented as a window (rather than the little dropdown we have now). However I wouldn't want closing a window to cause unloading a wallet, so it's not obvious how this would work. |
|
Agree.
On macOS, if the active window is minimized the both "Minimize" and "Zoom" actions should be disabled. That is not the case for 3f779b3b99b674b7beecc9a30fa37bda1d722387. |
|
Updated after feedback, thank you! Also updated screenshot. Windows/linux feedback would be awesome. |
3f779b3 to
46cbcb0
Compare
I think in the future we could have multiple windows, each could have multiple wallets. |
|
Pushed a commit to remove ellipsis from the sending/receiving addresses menu actions. Please see rationale in https://stackoverflow.com/a/637708 (also updated screenshot) |
|
tACK 6c72f91 A few nits, but don't let that stop anyone from merging:
|
I'll leave that for later after we decide about top level menu "Wallet".
Minimize and Zoom operate on the focus window, which can be the main window, address book dialogs, debug window..
I'll update with this suggestion, thanks @Sjors. |
6c72f91 to
4768926
Compare
Considering https://stackoverflow.com/a/637708 the ellipsis in these menu actions should be removed.
4768926 to
95a5a9f
Compare
|
tACK 9ea38d0 |
95a5a9f qt: Remove ellipsis from sending/receiving addresses (João Barbosa) a96c0df qt: Add Window menu (João Barbosa) 9ea38d0 qt: Allow to inspect RPCConsole tabs (João Barbosa) Pull request description: Overall this PR does the following: - add top level menu Window - add Minimize and Zoom actions to Window menu - move Sending/Receiving address to Window - remove Help->Debug window - add one menu entry for each debug window tab This removes the access to address book from the File menu. With wallet support: <img width="522" alt="screenshot 2018-12-11 at 00 33 05" src="https://user-images.githubusercontent.com/3534524/49770451-5bec0800-fcdc-11e8-91d6-f8f850ead92d.png"> Without wallet support: <img width="593" alt="screenshot 2018-12-11 at 12 55 21" src="https://user-images.githubusercontent.com/3534524/49802183-19f6ac80-fd44-11e8-9973-36fcfb4f129e.png"> Tree-SHA512: 4fb03702efe18df7bae33950e462940162abe634c55d0214b8920812127b763234cc9b73f27b3702502a37b6d49bdd6c50b7c8d9a3daea75cecb0136556dd1ea
The Dash UI changes were introduced in 83420a1 ("qt: Replace usage of QTabBar with custom replacement (dashpay#3560)", 2020-07-14)
3e21b69 [Qt] Restore < Qt5.6 compatibility for addAction (Jonas Schnelli) Pull request description: bitcoin#14573 broke < Qt5.6 compatibility due to calling the lambda version of `addAction` that was added in Qt5.6. This PR re-enables < Qt5.6 compatibility. Tree-SHA512: b3cf055d88a76713d100be05b2298d4091967e1a43de176af2647f59e76b98b216493dd12a6d68a942ae7946f2026e33dd8e8d20fc44a9a9614a3690ad9a2417
95a5a9f qt: Remove ellipsis from sending/receiving addresses (João Barbosa) a96c0df qt: Add Window menu (João Barbosa) 9ea38d0 qt: Allow to inspect RPCConsole tabs (João Barbosa) Pull request description: Overall this PR does the following: - add top level menu Window - add Minimize and Zoom actions to Window menu - move Sending/Receiving address to Window - remove Help->Debug window - add one menu entry for each debug window tab This removes the access to address book from the File menu. With wallet support: <img width="522" alt="screenshot 2018-12-11 at 00 33 05" src="https://user-images.githubusercontent.com/3534524/49770451-5bec0800-fcdc-11e8-91d6-f8f850ead92d.png"> Without wallet support: <img width="593" alt="screenshot 2018-12-11 at 12 55 21" src="https://user-images.githubusercontent.com/3534524/49802183-19f6ac80-fd44-11e8-9973-36fcfb4f129e.png"> Tree-SHA512: 4fb03702efe18df7bae33950e462940162abe634c55d0214b8920812127b763234cc9b73f27b3702502a37b6d49bdd6c50b7c8d9a3daea75cecb0136556dd1ea
The Dash UI changes were introduced in 83420a1 ("qt: Replace usage of QTabBar with custom replacement (dashpay#3560)", 2020-07-14)
3e21b69 [Qt] Restore < Qt5.6 compatibility for addAction (Jonas Schnelli) Pull request description: bitcoin#14573 broke < Qt5.6 compatibility due to calling the lambda version of `addAction` that was added in Qt5.6. This PR re-enables < Qt5.6 compatibility. Tree-SHA512: b3cf055d88a76713d100be05b2298d4091967e1a43de176af2647f59e76b98b216493dd12a6d68a942ae7946f2026e33dd8e8d20fc44a9a9614a3690ad9a2417
b078067 gui: Remove unused RPCConsole::tabFocus (João Barbosa) Pull request description: Added in bitcoin#14573 but not used, so begone. ACKs for top commit: practicalswift: utACK b078067 hebasto: ACK b078067 laanwj: ACK b078067, there's nothing really to test here Tree-SHA512: 237276dea4d174b5fca34855447146f79c3faaae7179f4245c70e2070b49282d95f886b1be6d2a33713c81a254f4483a4e4bf850053a8dcb18a3a897bd3da08e
The Dash UI changes were introduced in 83420a1 ("qt: Replace usage of QTabBar with custom replacement (dashpay#3560)", 2020-07-14)

Overall this PR does the following:
This removes the access to address book from the File menu.
With wallet support:

Without wallet support:
