Module: nagvis Branch: master Commit: 50e978fd055352c0232d6acdd1d5894c70c29207 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=50e978fd055352c0232d6acdd1d5894c70c29207
Author: Roman Kyrylych <[email protected]> Date: Fri Aug 7 14:14:32 2009 +0300 gmap: Make all tabs clickable, not just icons Signed-off-by: Roman Kyrylych <[email protected]> --- uifx/src/lib/ui/EdgeBox.mxml | 5 +++++ uifx/src/modules/gmap/view/DialogLink.mxml | 9 ++++----- uifx/src/modules/gmap/view/DialogLocation.mxml | 9 ++++----- uifx/src/modules/gmap/view/DialogSearch.mxml | 9 ++++----- uifx/src/modules/gmap/view/DialogSettings.mxml | 9 ++++----- uifx/src/modules/gmap/view/DialogViewpoint.mxml | 9 ++++----- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/uifx/src/lib/ui/EdgeBox.mxml b/uifx/src/lib/ui/EdgeBox.mxml index c171bd3..a75c2d5 100644 --- a/uifx/src/lib/ui/EdgeBox.mxml +++ b/uifx/src/lib/ui/EdgeBox.mxml @@ -151,6 +151,11 @@ return slices; } + + public function onClick(event : Event) : void + { + this.setCurrentState('right-expanded'); + } ]]> </mx:Script> diff --git a/uifx/src/modules/gmap/view/DialogLink.mxml b/uifx/src/modules/gmap/view/DialogLink.mxml index cbe7bdf..79a22ae 100644 --- a/uifx/src/modules/gmap/view/DialogLink.mxml +++ b/uifx/src/modules/gmap/view/DialogLink.mxml @@ -20,20 +20,19 @@ <EdgeBox xmlns="lib.ui.*" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" + contracted="addEventListener(MouseEvent.CLICK, onClick)" + expanded="removeEventListener(MouseEvent.CLICK, onClick)" > <mx:Metadata> [Event(name="link", type="flash.events.Event")] </mx:Metadata> <mx:HBox left="10" right="15" top="10" height="20"> - <mx:Image id="logo" - source="@Embed(source='modules/gmap/img/connect.png')" - click="setCurrentState('right-expanded')" - /> + <mx:Image id="logo" source="@Embed(source='modules/gmap/img/connect.png')"/> <mx:Label text="Link Details"/> <mx:Spacer width="100%"/> <mx:Image id="close" source="@Embed(source='modules/gmap/img/control_fastforward.png')" - click="setCurrentState('right-contracted')" + click="setCurrentState('right-contracted'); event.stopImmediatePropagation()" /> </mx:HBox> <mx:Canvas left="10" right="15" top="40" bottom="10"> diff --git a/uifx/src/modules/gmap/view/DialogLocation.mxml b/uifx/src/modules/gmap/view/DialogLocation.mxml index 74f4433..180a789 100644 --- a/uifx/src/modules/gmap/view/DialogLocation.mxml +++ b/uifx/src/modules/gmap/view/DialogLocation.mxml @@ -23,6 +23,8 @@ xmlns:hc="com.hillelcoren.components.*" xmlns:classes="com.hillelcoren.components.autoComplete.classes.*" creationComplete="init()" + contracted="addEventListener(MouseEvent.CLICK, onClick)" + expanded="removeEventListener(MouseEvent.CLICK, onClick)" > <mx:Metadata> [Event(name="save", type="flash.events.Event")] @@ -184,15 +186,12 @@ </root> </mx:XML> <mx:HBox left="10" right="15" top="10" height="20"> - <mx:Image id="logo" - source="@Embed(source='modules/gmap/img/pin.png')" - click="setCurrentState('right-expanded')" - /> + <mx:Image id="logo" source="@Embed(source='modules/gmap/img/pin.png')"/> <mx:Label text="Location Details"/> <mx:Spacer width="100%"/> <mx:Image id="close" source="@Embed(source='modules/gmap/img/control_fastforward.png')" - click="setCurrentState('right-contracted')" + click="setCurrentState('right-contracted'); event.stopImmediatePropagation()" /> </mx:HBox> <mx:Canvas left="10" right="15" top="40" bottom="10"> diff --git a/uifx/src/modules/gmap/view/DialogSearch.mxml b/uifx/src/modules/gmap/view/DialogSearch.mxml index 40a6029..3f6fdc3 100644 --- a/uifx/src/modules/gmap/view/DialogSearch.mxml +++ b/uifx/src/modules/gmap/view/DialogSearch.mxml @@ -20,6 +20,8 @@ <EdgeBox xmlns="lib.ui.*" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" + contracted="addEventListener(MouseEvent.CLICK, onClick)" + expanded="removeEventListener(MouseEvent.CLICK, onClick)" > <mx:Script> <![CDATA[ @@ -31,15 +33,12 @@ </mx:Metadata> <mx:HBox left="10" right="15" top="10" height="20"> - <mx:Image id="logo" - source="@Embed(source='modules/gmap/img/find.png')" - click="setCurrentState('right-expanded')" - /> + <mx:Image id="logo" source="@Embed(source='modules/gmap/img/find.png')"/> <mx:Label text="Address Search"/> <mx:Spacer width="100%"/> <mx:Image id="close" source="@Embed(source='modules/gmap/img/control_fastforward.png')" - click="setCurrentState('right-contracted')" + click="setCurrentState('right-contracted'); event.stopImmediatePropagation()" /> </mx:HBox> <mx:Canvas left="10" right="15" top="40" bottom="10"> diff --git a/uifx/src/modules/gmap/view/DialogSettings.mxml b/uifx/src/modules/gmap/view/DialogSettings.mxml index 7a5572b..eeb9809 100644 --- a/uifx/src/modules/gmap/view/DialogSettings.mxml +++ b/uifx/src/modules/gmap/view/DialogSettings.mxml @@ -20,20 +20,19 @@ <EdgeBox xmlns="lib.ui.*" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" + contracted="addEventListener(MouseEvent.CLICK, onClick)" + expanded="removeEventListener(MouseEvent.CLICK, onClick)" > <mx:Metadata> [Event(name="getGMapKey", type="flash.events.Event")] </mx:Metadata> <mx:HBox left="10" right="15" top="10" height="20"> - <mx:Image id="logo" - source="@Embed(source='modules/gmap/img/cog.png')" - click="setCurrentState('right-expanded')" - /> + <mx:Image id="logo" source="@Embed(source='modules/gmap/img/cog.png')"/> <mx:Label text="Settings"/> <mx:Spacer width="100%"/> <mx:Image id="close" source="@Embed(source='modules/gmap/img/control_fastforward.png')" - click="setCurrentState('right-contracted')" + click="setCurrentState('right-contracted'); event.stopImmediatePropagation()" /> </mx:HBox> <mx:Canvas left="10" right="15" top="40" bottom="10"> diff --git a/uifx/src/modules/gmap/view/DialogViewpoint.mxml b/uifx/src/modules/gmap/view/DialogViewpoint.mxml index 78b540c..9111ac4 100644 --- a/uifx/src/modules/gmap/view/DialogViewpoint.mxml +++ b/uifx/src/modules/gmap/view/DialogViewpoint.mxml @@ -20,6 +20,8 @@ <EdgeBox xmlns="lib.ui.*" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flexlib="http://code.google.com/p/flexlib/" + contracted="addEventListener(MouseEvent.CLICK, onClick)" + expanded="removeEventListener(MouseEvent.CLICK, onClick)" > <mx:Metadata> [Event(name="save", type="flash.events.Event")] @@ -48,15 +50,12 @@ ]]> </mx:Script> <mx:HBox left="10" right="15" top="10" height="20"> - <mx:Image id="logo" - source="@Embed(source='modules/gmap/img/eye.png')" - click="setCurrentState('right-expanded')" - /> + <mx:Image id="logo" source="@Embed(source='modules/gmap/img/eye.png')"/> <mx:Label text="View Points"/> <mx:Spacer width="100%"/> <mx:Image id="close" source="@Embed(source='modules/gmap/img/control_fastforward.png')" - click="setCurrentState('right-contracted')" + click="setCurrentState('right-contracted'); event.stopImmediatePropagation()" /> </mx:HBox> <mx:Canvas left="10" right="15" top="40" bottom="10"> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
