TWM and 3.0: icons/themes, UpdatingMenuMorph
I am trying to get TWM to work in 3.0 I use the Metacello config flag "trick" to make it load 2.x things. Now, things do load but there is the deprecation warnings about the way icons are handled. e.g. deleteSnapshotIcon ^ dock theme smallDeleteIcon. gives a warning. I looked into the code and now, we are supposed to do: Smalltalk ui smallDeleteIcon. Well, I changed the things that needed to be changed and then hit: newMenu: aSelector icon: aForm help: aString ^ MenuItemMorph new contents: ''; subMenu: (UpdatingMenuMorph new updater: self updateSelector: aSelector); icon: aForm; setBalloonText: aString. Where Updating MenuMorph appears to be gone in 3.0 What am I supposed to use as a replacement? TIA Phil
And of course, the TWMUI Theme doesn't work at all anymore... Is there some info about how the new theming works in 3.0? TIA Phil On Thu, Mar 6, 2014 at 12:00 PM, phil@highoctane.be <phil@highoctane.be>wrote:
I am trying to get TWM to work in 3.0
I use the Metacello config flag "trick" to make it load 2.x things.
Now, things do load but there is the deprecation warnings about the way icons are handled.
e.g.
deleteSnapshotIcon ^ dock theme smallDeleteIcon.
gives a warning.
I looked into the code and now, we are supposed to do:
Smalltalk ui smallDeleteIcon.
Well, I changed the things that needed to be changed and then hit:
newMenu: aSelector icon: aForm help: aString ^ MenuItemMorph new contents: ''; subMenu: (UpdatingMenuMorph new updater: self updateSelector: aSelector); icon: aForm; setBalloonText: aString.
Where Updating MenuMorph appears to be gone in 3.0
What am I supposed to use as a replacement?
TIA
Phil
On 06 Mar 2014, at 12:05, phil@highoctane.be wrote:
And of course, the TWMUI Theme doesn't work at all anymore...
Is there some info about how the new theming works in 3.0?
What have been removed are UIManager creation methods (I would have prefer to have them deprecated we could still do it). newColumns and others, if I remember correctly Now for the theming I do not think it changed.
TIA Phil
On Thu, Mar 6, 2014 at 12:00 PM, phil@highoctane.be <phil@highoctane.be> wrote: I am trying to get TWM to work in 3.0
I use the Metacello config flag "trick" to make it load 2.x things.
Now, things do load but there is the deprecation warnings about the way icons are handled.
e.g.
deleteSnapshotIcon ^ dock theme smallDeleteIcon.
gives a warning.
I looked into the code and now, we are supposed to do:
Smalltalk ui smallDeleteIcon.
Well, I changed the things that needed to be changed and then hit:
newMenu: aSelector icon: aForm help: aString ^ MenuItemMorph new contents: ''; subMenu: (UpdatingMenuMorph new updater: self updateSelector: aSelector); icon: aForm; setBalloonText: aString.
Where Updating MenuMorph appears to be gone in 3.0
What am I supposed to use as a replacement?
TIA
Phil
On Fri, Mar 7, 2014 at 8:17 AM, Pharo4Stef <pharo4Stef@free.fr> wrote:
On 06 Mar 2014, at 12:05, phil@highoctane.be wrote:
And of course, the TWMUI Theme doesn't work at all anymore...
Is there some info about how the new theming works in 3.0?
What have been removed are UIManager creation methods (I would have prefer to have them deprecated we could still do it). newColumns and others, if I remember correctly Now for the theming I do not think it changed.
I have had a look and Morphic-Menus appear to have been removed and we now have Morphic-Base-Menus. All classes in Morphic-Menus appear to be in there, except UpdatingMenuMorph. As I was getting the class back in my 3.0 image, I noticed that drag and drop of classes to other packages led to a #MNU: *https://pharo.fogbugz.com/default.asp?13049 <https://pharo.fogbugz.com/default.asp?13049>* ... and deprecation warnings are nice but not with little windows all over... :-p Putting the UpdatingMenuMorph makes TWM works again. As TWM is the only user of this one, I suggest to put the class in TWM with a TWM prefix. Okay? Phil
TIA Phil
On Thu, Mar 6, 2014 at 12:00 PM, phil@highoctane.be <phil@highoctane.be>wrote:
I am trying to get TWM to work in 3.0
I use the Metacello config flag "trick" to make it load 2.x things.
Now, things do load but there is the deprecation warnings about the way icons are handled.
e.g.
deleteSnapshotIcon ^ dock theme smallDeleteIcon.
gives a warning.
I looked into the code and now, we are supposed to do:
Smalltalk ui smallDeleteIcon.
Well, I changed the things that needed to be changed and then hit:
newMenu: aSelector icon: aForm help: aString ^ MenuItemMorph new contents: ''; subMenu: (UpdatingMenuMorph new updater: self updateSelector: aSelector); icon: aForm; setBalloonText: aString.
Where Updating MenuMorph appears to be gone in 3.0
What am I supposed to use as a replacement?
TIA
Phil
As I was getting the class back in my 3.0 image, I noticed that drag and drop of classes to other packages led to a #MNU: https://pharo.fogbugz.com/default.asp?13049
... and deprecation warnings are nice but not with little windows all over... :-p
Putting the UpdatingMenuMorph makes TWM works again. As TWM is the only user of this one, I suggest to put the class in TWM with a TWM prefix. Okay?
yes!
Phil
TIA Phil
On Thu, Mar 6, 2014 at 12:00 PM, phil@highoctane.be <phil@highoctane.be> wrote: I am trying to get TWM to work in 3.0
I use the Metacello config flag "trick" to make it load 2.x things.
Now, things do load but there is the deprecation warnings about the way icons are handled.
e.g.
deleteSnapshotIcon ^ dock theme smallDeleteIcon.
gives a warning.
I looked into the code and now, we are supposed to do:
Smalltalk ui smallDeleteIcon.
Well, I changed the things that needed to be changed and then hit:
newMenu: aSelector icon: aForm help: aString ^ MenuItemMorph new contents: ''; subMenu: (UpdatingMenuMorph new updater: self updateSelector: aSelector); icon: aForm; setBalloonText: aString.
Where Updating MenuMorph appears to be gone in 3.0
What am I supposed to use as a replacement?
TIA
Phil
<07-03-14 10-17-33.png>
philippeback wrote
I am trying to get TWM to work in 3.0 ... Where Updating MenuMorph appears to be gone in 3.0
What am I supposed to use as a replacement?
Glad you're working on it. I got stuck in the same place. The icon problem IIRC occurs in two TWM classes. Might I suggest (which you may already have done) for the class with the many such references (the bar I think), you abstract via "#icons ^ Smalltalk ui" instead of sprinkling "Smalltalk ui xyzIcon" everywhere and having to repeat the work for Pharo #.0. ----- Cheers, Sean -- View this message in context: http://forum.world.st/TWM-and-3-0-icons-themes-UpdatingMenuMorph-tp4747979p4... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
Yes, I started sprinkling but was unhappy as some icons are internal to TWM and others are Smalltalk ui icons... I'll look into how I can make it nice. Phil On Fri, Mar 7, 2014 at 8:03 PM, Sean P. DeNigris <sean@clipperadams.com>wrote:
philippeback wrote
I am trying to get TWM to work in 3.0 ... Where Updating MenuMorph appears to be gone in 3.0
What am I supposed to use as a replacement?
Glad you're working on it. I got stuck in the same place. The icon problem IIRC occurs in two TWM classes. Might I suggest (which you may already have done) for the class with the many such references (the bar I think), you abstract via "#icons ^ Smalltalk ui" instead of sprinkling "Smalltalk ui xyzIcon" everywhere and having to repeat the work for Pharo #.0.
----- Cheers, Sean -- View this message in context: http://forum.world.st/TWM-and-3-0-icons-themes-UpdatingMenuMorph-tp4747979p4... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
philippeback wrote
I am trying to get TWM to work in 3.0 ... Now, things do load but there is the deprecation warnings about the way icons are handled.
FYI, checking the repo, I notice I had already fixed the icon stuff in TWM-GUI-SeanDeNigris.12, but you seem to have based your work on TWM-GUI-SeanDeNigris.9, and TWM-GUI-PhilippeBack.14 depends on TWM-GUI-PhilippeBack.(10 to: 13) which are not in the stub repo. ----- Cheers, Sean -- View this message in context: http://forum.world.st/TWM-and-3-0-icons-themes-UpdatingMenuMorph-tp4747979p4... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
I guess I loaded the configuration and moved from there. I'll put the missing bits in. Phil On Mon, Mar 10, 2014 at 2:53 AM, Sean P. DeNigris <sean@clipperadams.com>wrote:
philippeback wrote
I am trying to get TWM to work in 3.0 ... Now, things do load but there is the deprecation warnings about the way icons are handled.
FYI, checking the repo, I notice I had already fixed the icon stuff in TWM-GUI-SeanDeNigris.12, but you seem to have based your work on TWM-GUI-SeanDeNigris.9, and TWM-GUI-PhilippeBack.14 depends on TWM-GUI-PhilippeBack.(10 to: 13) which are not in the stub repo.
----- Cheers, Sean -- View this message in context: http://forum.world.st/TWM-and-3-0-icons-themes-UpdatingMenuMorph-tp4747979p4... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (3)
-
Pharo4Stef -
phil@highoctane.be -
Sean P. DeNigris