Module: nagvis Branch: master Commit: 4e4a850baccef9be60204e0e4a18714590181917 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=4e4a850baccef9be60204e0e4a18714590181917
Author: Andriy Skuratov <[email protected]> Date: Wed Aug 19 15:33:35 2009 +0300 gmap: Location dialog handles modes better now. --- uifx/src/modules/gmap/view/DialogLocation.mxml | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/uifx/src/modules/gmap/view/DialogLocation.mxml b/uifx/src/modules/gmap/view/DialogLocation.mxml index 7df58f4..49cd36f 100644 --- a/uifx/src/modules/gmap/view/DialogLocation.mxml +++ b/uifx/src/modules/gmap/view/DialogLocation.mxml @@ -66,12 +66,14 @@ if (location.id && location.id.length > 0) { + title.text = "Location - Edit Details"; addButton.visible = false; saveButton.visible = true; deleteButton.visible = true; } else { + title.text = "Location - Add New"; addButton.visible = true; saveButton.visible = false; deleteButton.visible = false; @@ -140,6 +142,7 @@ } else { + title.text = "Location"; locName.text = ""; locLat.text = ""; locLng.text = ""; @@ -148,7 +151,7 @@ locNObjectType.selectedIndex = 0; onObjectTypeChange(); locAction.selectedIndex = 0; - addButton.visible = true; + addButton.visible = false; saveButton.visible = false; deleteButton.visible = false; onActionChanges(); @@ -362,7 +365,7 @@ </mx:XML> <mx:HBox left="10" right="15" top="10" height="20"> <mx:Image id="logo" source="@Embed(source='modules/gmap/img/pin.png')"/> - <mx:Label text="Location Details"/> + <mx:Label id="title" text="Location"/> <mx:Spacer width="100%"/> <mx:Image id="close" source="@Embed(source='modules/gmap/img/control_fastforward.png')" @@ -452,7 +455,7 @@ <mx:TextInput cornerRadius="10" text="On Double Click" top="0" left="15" width="100" borderStyle="solid" editable="false"/> </mx:Canvas> </flexlib:HAccordion> - <mx:Button id="addButton" label="Add" + <mx:Button id="addButton" label="Add" visible="false" right="0" bottom="0" click="onAddClicked()" /> ------------------------------------------------------------------------------ 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
