|
|
Re: Cancelling PShelf selection [message #31097 is a reply to message #30956] |
Wed, 07 March 2007 13:04 |
Roland Tepp Messages: 336 Registered: July 2009 |
Senior Member |
|
|
Well - I'm using the PShelf in an unconventional scenario as a sort of
"Accordion menu" system for a "Control panel" style application for a
"kiosk" type device with almost no keyboard and a touchscreen.
We do not want to use traditional menus or toolbar buttons for selecting
individual panels and single tab strip does not cut it either, as the
navigation structure is sometimes up to 3 levels deep.
A reason to veto a selection is mainly needed because I need to do some
processing (e.g. validate and save changes, check permissions, etc.)
based on the selection and decide if the selection change is allowed
before committing to it.
I have worked around it by filtering mouse events for the PShelf and
making selections in code instead. It works beautifully.
Any way, I realized after I asked this question, that I'm not using the
PShelf the way it was really meant to be used and my needs probably
warrant completely different widget (one that probably does not exist yet).
Currently I worked around this
Chris Gross kirjutas mulle midagi seesugust:
> Hi Roland,
>
> So you want to veto a selection? This is not currently supported. Can
> you explain further why you would need that feature?
>
> If its important to you, please enter a bugzilla for it.
>
> Regards,
> -Chris
>
> Roland Tepp wrote:
>> Hello,
>>
>> I started to use the PShelf as a sort of 2 level menu system for
>> selecting modal views of a JFace application and in my application I
>> need the ability to cancel the PShelf item selections.
>>
>> I looked into the code and it seems that canceling a selection is not
>> supported for PShelf?
>>
>> Is this the kind of feature that would make some sense to wider
>> audience or should I just go and hack my way around it by mouse event
>> filtering?
--
Roland Tepp
|
|
|
|
Re: Cancelling PShelf selection [message #579704 is a reply to message #30956] |
Wed, 07 March 2007 13:04 |
Roland Tepp Messages: 336 Registered: July 2009 |
Senior Member |
|
|
Well - I'm using the PShelf in an unconventional scenario as a sort of
"Accordion menu" system for a "Control panel" style application for a
"kiosk" type device with almost no keyboard and a touchscreen.
We do not want to use traditional menus or toolbar buttons for selecting
individual panels and single tab strip does not cut it either, as the
navigation structure is sometimes up to 3 levels deep.
A reason to veto a selection is mainly needed because I need to do some
processing (e.g. validate and save changes, check permissions, etc.)
based on the selection and decide if the selection change is allowed
before committing to it.
I have worked around it by filtering mouse events for the PShelf and
making selections in code instead. It works beautifully.
Any way, I realized after I asked this question, that I'm not using the
PShelf the way it was really meant to be used and my needs probably
warrant completely different widget (one that probably does not exist yet).
Currently I worked around this
Chris Gross kirjutas mulle midagi seesugust:
> Hi Roland,
>
> So you want to veto a selection? This is not currently supported. Can
> you explain further why you would need that feature?
>
> If its important to you, please enter a bugzilla for it.
>
> Regards,
> -Chris
>
> Roland Tepp wrote:
>> Hello,
>>
>> I started to use the PShelf as a sort of 2 level menu system for
>> selecting modal views of a JFace application and in my application I
>> need the ability to cancel the PShelf item selections.
>>
>> I looked into the code and it seems that canceling a selection is not
>> supported for PShelf?
>>
>> Is this the kind of feature that would make some sense to wider
>> audience or should I just go and hack my way around it by mouse event
>> filtering?
--
Roland Tepp
|
|
|
Powered by
FUDForum. Page generated in 0.04103 seconds