On 20 Apr 2011, at 13:17, Mariano Martinez Peck wrote:
Hi Doru, I have a few more questions related to
Glamour Toolkit.
1) Most (if not all) of the examples I saw from Glamour Toolkit, like GTClassicBrowser,
do not respond to right click. I mean, no menu is opened. I guess this is on purpose.
So..what should I do (if it is supported) so that my browsers supports the right click
like the regular browser? that means, be able to do a right click on a package, a class, a
method, in the code pane, etc.
2) If 1) is supported, is there an easy way to add custom items to the menu ?
These are called actions:
http://www.themoosebook.org/book/internals/glamour/actions
Actions can be mapped either on the contextual menu, on a shortkey on the selection
(selectionAct: ...) or on the toolbar (act: ...).
You can also take a look at the examples from GLMBasicExamples. For example:
GLMBasicExamples new staticAndDynamicMenu openOn: $z
3) Is there some widget with an input ? For example,
imagine the GTClassicChaser where instead of directly open it with a selector, I have a
little row on the top of the browser, and I can type there the selector name or something
(imagine a number) that finally will answer me a selector. So..is there an example where
I can take a look ?
It depends on the issue you have. If you want to have a search, then right now we only
achieve this through a separate dialog. You can see an example in GTCoder.
A list would also enable you to have an input to either decide the selection or the
filtering of the list:
http://www.themoosebook.org/book/internals/glamour/presentations/listing
Finally, if you have a more complicated input, you can also use Magritte:
http://www.themoosebook.org/book/internals/glamour/presentations/magritte
Cheers,
Doru
Thanks again in advance,
--
Mariano
http://marianopeck.wordpress.com
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Reasonable is what we are accustomed with."