[fusion-trac] #223: All instances of widget should not necessarily
be activated together
Fusion
trac_fusion at osgeo.org
Wed Mar 11 15:27:26 EDT 2009
#223: All instances of widget should not necessarily be activated together
------------------------+---------------------------------------------------
Reporter: pagameba | Owner: madair
Type: defect | Status: new
Priority: P1 | Milestone: 2.0
Component: Widgets | Version: 2.0 - beta
Severity: Critical | Keywords:
External_id: | State: New
Browser: All | Os: All
------------------------+---------------------------------------------------
In Fusion 2.0, we introduced a feature that visually activated all
instances of the same widget so that when a toolbar widget was activated,
the same type of widget on the context menu would be activated and vice-
versa. This works well for simple widgets such as Pan but falls short if
instances of the same widget have different behaviour based on their
configuration. The most obvious example of this is the Zoom widget, which
can be configured to zoom in or out.
The proposed fix is to add a new method to Widget.js called
shouldActivateWith that takes a widget as an argument. The default
behaviour will be to return true but specific widgets can overload this
method and return false if the widget is not configured the same way.
This may apply to other widgets such as Select which can be configured to
select on the active layer only or all layers. Two instances with
different settings should not be activated together.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/223>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list