-
-
Notifications
You must be signed in to change notification settings - Fork 356
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
Refactor MenuItemMorph, PluggableMenuItemSpec and PragmaMenuAndShortcutRegistrationItem to support use of a FormSet and apply that to CmdCommand #16201
Refactor MenuItemMorph, PluggableMenuItemSpec and PragmaMenuAndShortcutRegistrationItem to support use of a FormSet and apply that to CmdCommand #16201
Conversation
…ch answers a FormSet).
…ch held a Form, by an instance variable ‘iconFormSet’, which holds a FormSet.
…verride #defaultMenuIconName instead.
I converted this to a draft. Commit 02f48dc introduces a bug in |
02f48dc
to
57ac5ef
Compare
…on’, which held a Form, by an instance variable ‘iconFormSet’, which holds a FormSet.
…nce variable ‘icon’, which held a Form, by an instance variable ‘iconFormSet’, which holds a FormSet.
…se the FormSet for the icon.
…mand to ‘menuItem’ (#doRegisterContextMenuItemsFor:withBuilder: on CmdCommand sends #setUpIconForMenuItem: with a PragmaMenuAndShortcutRegistration, rather than a MenuItemMorph, as the argument).
I fixed the bug referred to in my previous message by first refactoring PluggableMenuItemSpec and PragmaMenuAndShortcutRegistrationItem as well. |
@@ -13,6 +13,7 @@ Class { | |||
'label', | |||
'help', | |||
'icon', |
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.
'icon', |
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.
This instance variable is not used anymore and should be removed
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.
Forgot to actually remove it indeed, fixed in commit 49a7a88.
…utRegistrationItem to replace the instance variable ‘icon’ […] by […] ‘iconFormSet’ […]”): ‘icon’ was not actually removed.
@jecisc can you check it? Tx |
@jecisc Could I ask for an update on the (re)review? If you’re not available, it might be better to let someone else take over? |
This pull request refactors MenuItemMorph to support use of a FormSet for the icon and applies that to the CmdCommand hierarchy. In the CmdCommand hierarchy, the overrides of
#defaultMenuIcon
are refactored to override#defaultMenuIconName
instead.