Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] action tools on dropdown together with modal tools

We have a bit of a mixed metaphore here guys; the modal tools are supposed act like a giant set of radio buttons (the highlander principle of their can be only one). The action tools are fire and forget - you do not even need to tool extension point to pull that one off (it is just a short hand for making an action and contributing it to the toolbar and/or menu).

Right now the categories are displayed in a drop down list thanks to some amazing hackery from Jesse - as such you are free to mess with the code that processes the extension and see if you can get actions into the mix - but I fear that it would be a mess. Action tools have their own keyboard short cut for example; tool categories also have a keyboard short cut that allows you to cycle through all the modal tools in the category...

So where to go from here?
- Create your own view that gathers up all the tools you want (modal and action etc...) - this was our plan to make the UI scalable. You can see a couple examples of this already in the UI where the tools associated with a view are available on the view toolbar.

or

- explore the use of the "palette" tool that the Draw2d crowd put together. Near as I can tell it is a custom SWT control that has a similar model to what we put together. If we can switch to that it will give Jesse less code to maintain.

Jody

On Wed, Nov 26, 2008 at 3:18 AM, andrea antonello <andrea.antonello@xxxxxxxxx> wrote:
I have a set of tools that logically should be in the same place.
2 of them are modal and one is action.
If I put them on the toolbar through the extention point option:
_onToolbar_ = true,
and with the same category, 2 of them are together in a dropdown , and
the action is all alone in another toolbar.

Is there a way to get them together or do I have to delegate an
ActionSet to do that?

Andrea
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


Back to the top