Bug 804 - [Chameleon-Widget]ROIManagerMode widget in substract should be inactive when no ROI
: [Chameleon-Widget]ROIManagerMode widget in substract should be inactive when ...
Status: NEW
: Chameleon
Widget
: 1.99
: PC Linux
: P2 normal
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-10-29 16:13 by
Modified: 2004-11-01 20:14 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-10-29 16:13:09
When there is no ROI drawn the "Substract Mode" should be inactive.  This may
confuse a user if this mode is activated and the "Define a rectangular ROI" (or
other ROI) button is selected, and the user try to draw a ROI in a map preview.
 The ROI will not be drawn.

Test case:

1.  Load "sample_roi.phtml" application
2.  Select "ROI" tab
3.  Click "Substract Mode" button
4.  Click "Define a rectangular ROI" button
5.  Try to draw a ROI on map preview
6.  No ROI is drawn

This may be view as an enhancement bug.

Mozilla 1.6
Chameleon Beta 3 20041022
Fedora Core 2
------- Comment #1 From 2004-10-29 21:30:08 -------
Changed target to FUTURE.
------- Comment #2 From 2004-11-01 20:14:36 -------
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.