Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo
Status: New
Owner: ----

New issue 3728 by [hidden email]: Changed MenuMorph references to go  
through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

the attached changeset replaces all the refs to the class MenuMorph by the  
usage of UIManager default menuClass.
9 uses remain, mostly due to #isKindOf: senders.

Attachments:
        menuMorphReferences.1.cs  51.7 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #1 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

Fixed


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #2 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

Thanks indeed I was wondering what to do for the use of MenuMorph. I should  
do the same for Sound.


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo
Updates:
        Status: Fixed

Comment #3 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo
Updates:
        Labels: Milestone-1.3

Comment #4 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo
Updates:
        Status: Accepted

Comment #5 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

fernando I started to do something a bit better :) but we cannot attach  
anything anymore.... :(



Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo
Updates:
        Cc: fernando22480

Comment #6 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

fernando can you have a look at that?

Attachments:
        MenuMorph.1.cs  9.6 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo
Updates:
        Status: FixProposed

Comment #7 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #8 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

ok, will do!


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #9 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

I 100% agree with your fix!

I also added the TEasilyThemed trait to the MorphicUIManager, it had a lot  
of duplicated methods.
Had to modify a bit the trait, with a couple of methods that were in the  
MorphicUIManager, enhacing the services methods. For example:  
chooseColor:title:.


Attachments:
        MenuMorph.2.cs  25.4 KB


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #10 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

Apparently I cannot load your cs. Can you check if you can load it?


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #11 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

Apparently

UIManager subclass: #MorphicUIManager
        uses: TEasilyThemed
        instanceVariableNames: 'interactiveParser '
        classVariableNames: 'Default '
        poolDictionaries: ''
        category: 'ToolBuilder-Morphic'!

is not correct since Default is already defined in superclass

UIManager subclass: #MorphicUIManager
        uses: TEasilyThemed
        instanceVariableNames: 'interactiveParser '
        classVariableNames: ''
        poolDictionaries: ''
        category: 'ToolBuilder-Morphic'!


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #12 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

in 13073


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo
Updates:
        Status: Closed

Comment #13 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

(No comment was entered for this change.)


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #14 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

Stef, integrate this method please. Seems that when i incorporate the trait  
TEasilyThemed to the MorphicUIManager i didn't detect that  
evaluating "UIManager default alert: 'hello'" raises an error.

Attachments:
        MorphicUIManager-openModal.st  957 bytes


Reply | Threaded
Open this post in threaded view
|

Re: Issue 3728 in pharo: Changed MenuMorph references to go through UIManager default menuClass

pharo

Comment #15 on issue 3728 by [hidden email]: Changed MenuMorph  
references to go through UIManager default menuClass
http://code.google.com/p/pharo/issues/detail?id=3728

In 13078