On Sat, 2004-05-15 at 17:15, bulia byak wrote:
I think the verbs should just take an optional SPItem* attribute, which if set will make them act on that item. That item is easy to figure out by sp_item_at_point, which depending on an argument returns an item with or without going into groups.
Well, maybe. That's better than creating special state in SPDesktop.
Ideally, since the code which created the context menu for that item knows the item, it should find some way to pass that on to the menuitem handlers (and therefore to the verb).
There are a lot of places, actually, where somebody "upstream" knows the relevent information. Doing some rearchitecting to plumb that information all the way down is often worth it...
-mental
Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI...
This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel