Summary: | [Chameleon-Widget]ROIManagerMode widget in substract should be inactive when no ROI | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Normand Savard <nsavard@mapgears.com> |
Component: | Widget | Assignee: | chameleon-dev <chameleon-dev@lists.maptools.org> |
Status: | NEW | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 1.99 | ||
Target Milestone: | FUTURE | ||
Hardware: | PC | ||
OS: | Linux | ||
Whiteboard: |
Changed target to FUTURE.
it is not currently possible to set a widget as inactive, nor would it be possible to change it from 'inactive' to 'active' in the case of the ROI tools (because they just update the ROI image, they don't submit). The button code does support a disabled state for widgets, but it has never been tested or implemented. It is likely that, at least in this case, we would have to add quite a bit of javascript to: * on load, test the number of ROIs and disable the 'subtract' mode tool appropriately. * do the same test on every change of the ROIs because they could be 'deleted' * implement a generic 'event' mechanism in javascript.