Module: nagvis Branch: master Commit: 88ce42db6fba80ae0e611c4ab98cf92b0bb16ca1 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=88ce42db6fba80ae0e611c4ab98cf92b0bb16ca1
Author: Andriy Skuratov <[email protected]> Date: Mon Aug 3 17:04:49 2009 +0300 Extracted the main view to separate class --- uifx/src/modules/gmap/css/Main.css | 50 +++++++++++++++++ uifx/src/modules/gmap/view/Main.mxml | 101 ++++++++++++++++++++++++++++++++++ 2 files changed, 151 insertions(+), 0 deletions(-) diff --git a/uifx/src/modules/gmap/css/Main.css b/uifx/src/modules/gmap/css/Main.css new file mode 100644 index 0000000..fd62d92 --- /dev/null +++ b/uifx/src/modules/gmap/css/Main.css @@ -0,0 +1,50 @@ +/***************************************************************************** + * + * Copyright (C) 2009 NagVis Project + * + * License: + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + *****************************************************************************/ + +Dialog +{ + borderStyle : solid; + borderColor : #000000; + cornerRadius : 10; + backgroundAlpha : 1.0; + backgroundColor : #ffffff; +} + +PromptingTextInput, PromptingTextArea +{ + borderStyle : solid; + borderColor : #000000; + cornerRadius : 4; +} + +.accordion +{ + borderStyle: none; + headerStyleName: accordionHeader; + headerWidth: 16; +} +.accordionHeader +{ + fontFamily: embededArial; + fontWeight: bold; + fontSize: 10; + border-style : none; +} diff --git a/uifx/src/modules/gmap/view/Main.mxml b/uifx/src/modules/gmap/view/Main.mxml new file mode 100644 index 0000000..e265374 --- /dev/null +++ b/uifx/src/modules/gmap/view/Main.mxml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2009 NagVis Project + + License: + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License version 2 as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +--> +<mx:Canvas + xmlns:mx="http://www.adobe.com/2006/mxml" + xmlns:view="modules.gmap.view.*" + xmlns:ui="lib.ui.*" + + horizontalScrollPolicy="off" verticalScrollPolicy="off" + creationComplete="init()" +> + <mx:Style> + @font-face + { + fontFamily: embededArial; + src: local("Arial"); + font-weight: bold; + advancedAntiAliasing: true; + } + </mx:Style> + <mx:Style source="../css/Main.css" /> + <mx:Script> + <![CDATA[ + [Bindable] [Embed(source="modules/gmap/img/locate.jpg")] + private var searchImage : Class; + + [Bindable] [Embed(source="modules/gmap/img/edit.png")] + private var editImage : Class; + + [Bindable] [Embed(source="modules/gmap/img/map.gif")] + private var viewpointImage : Class; + + [Bindable] [Embed(source="modules/gmap/img/settings.png")] + private var settingsImage : Class; + ]]> + </mx:Script> + <mx:Script source="../GMapModule.as"/> + <mx:UIComponent id="mapContainer" width="100%" height="100%"/> + <view:DialogSettings id="settingsBox" + logo="{settingsImage}" + bottom="50" right="-10" width="310" + expandedWidth="300" expandedHeight="110" + contractedWidth="40" contractedHeight="40" + currentState="right-contracted" + /> + <ui:EdgeBoxGroup id="ebg"/> + <view:DialogLink id="linksBox" group="{ebg}" + logo="{viewpointImage}" + y="{locationBox.y + locationBox.height + 5}" right="-10" width="310" + expandedWidth="300" expandedHeight="150" + contractedWidth="40" contractedHeight="40" + currentState="right-contracted" + link="onLink()" + expanded="onShowLinkBox()" + /> + <view:DialogLocation id="locationBox" group="{ebg}" + logo="{editImage}" + y="{searchBox.y + searchBox.height + 5}" right="-10" width="310" + expandedWidth="300" expandedHeight="220" + contractedWidth="40" contractedHeight="40" + currentState="right-contracted" + save="onSaveLocation()" + remove="onDeleteLocation()" + contracted="onHideLocationBox()" + expanded="onShowLocationBox()" + /> + <view:DialogSearch id="searchBox" group="{ebg}" + logo="{searchImage}" + y="{viewpointBox.y + viewpointBox.height + 5}" right="-10" width="310" + expandedWidth="300" expandedHeight="130" + contractedWidth="40" contractedHeight="40" + currentState="right-contracted" + locate="onLocateAddress(searchBox.address.text)" + contracted="onHideSearchBox()" + /> + <view:DialogViewpoint id="viewpointBox" group="{ebg}" + logo="{viewpointImage}" + y="100" right="-10" width="310" + expandedWidth="300" expandedHeight="220" + contractedWidth="40" contractedHeight="40" + currentState="right-contracted" + save="onSaveViewpoint(viewpointBox.preName.text)" + change="onSelectViewpoint(event)" + /> +</mx:Canvas> ------------------------------------------------------------------------------ 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
