Issue 7202 in pharo: Nautilus icon mechanism

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

Issue 7202 in pharo: Nautilus icon mechanism

pharo
Status: Accepted
Owner: [hidden email]
Labels: Type-Enh Milestone-2.0 Target-Nautilus

New issue 7202 by [hidden email]: Nautilus icon mechanism
http://code.google.com/p/pharo/issues/detail?id=7202

"How can one add a new custom icon for his own
class (hierarchy) into Nautilus.

I can add one with tricks in "ClassesIconsCache"
in class AbstractNautilusUI.

But is there a default extension mechanism similar
to OB where one just implemented a method #browserIcon?

Thx
T."

Slice is incoming


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7202 in pharo: Nautilus icon mechanism

pharo
Updates:
        Status: FixReviewNeeded

Comment #1 on issue 7202 by [hidden email]: Nautilus icon mechanism
http://code.google.com/p/pharo/issues/detail?id=7202

(No comment was entered for this change.)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7202 in pharo: Nautilus icon mechanism

pharo
Updates:
        Status: Integrated

Comment #2 on issue 7202 by [hidden email]: Nautilus icon mechanism
http://code.google.com/p/pharo/issues/detail?id=7202

in 2.0 466


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7202 in pharo: Nautilus icon mechanism

pharo

Comment #3 on issue 7202 by [hidden email]: Nautilus icon mechanism
http://code.google.com/p/pharo/issues/detail?id=7202

Can you add a short HOWTO here?




_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7202 in pharo: Nautilus icon mechanism

pharo

Comment #4 on issue 7202 by [hidden email]: Nautilus icon mechanism
http://code.google.com/p/pharo/issues/detail?id=7202

Any class can override #nautilusIcon (on class side) and make it returns  
the icon you want Nautilus to display for this class.

You can also override nautilusIconClass to return the class which handle  
your icons.

For methods, you can subclass AbstractMethodIconAction and implements the  
following methods:
      - actionOrder to set the priority among all the actions
      - isActionHandled which returns true when the method provided to the  
action satisfy this action
      - privateActionIcon to return the icon to use for the methods
      - (actionStateToCache to specify what to cache)

Feel free to ask for more explanation :)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7202 in pharo: Nautilus icon mechanism

pharo

Comment #5 on issue 7202 by [hidden email]: Nautilus icon mechanism
http://code.google.com/p/pharo/issues/detail?id=7202

Thanks!

Would be good if you can add this short description as a class comment to  
AbstractMethodIconAction in the next Nautilus version.




_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker