You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2012/08/24 00:42:59 UTC

svn commit: r1376750 - in /incubator/flex/utilities/trunk: common/src/assets/images/ installerBadge/html-template/ installerBadge/src/ installerBadge/src/org/apache/flex/installApacheFlexBadge/images/ installerBadge/src/org/apache/flex/installApacheFle...

Author: erikdebruin
Date: Thu Aug 23 22:42:58 2012
New Revision: 1376750

URL: http://svn.apache.org/viewvc?rev=1376750&view=rev
Log:
Minor update as per Om's suggestions: size reduction and external 'disclaimer' document.

Added:
    incubator/flex/utilities/trunk/installerBadge/html-template/disclaimer.html
    incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/
    incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/backgroundRegular.png   (with props)
    incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/backgroundSmall.png   (with props)
    incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/styles/
    incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/styles/ApacheFlexBadgeStyle.css
Removed:
    incubator/flex/utilities/trunk/common/src/assets/images/background.png
    incubator/flex/utilities/trunk/common/src/assets/images/header.png
    incubator/flex/utilities/trunk/common/src/assets/images/logo.png
    incubator/flex/utilities/trunk/common/src/assets/images/logoSmall.png
Modified:
    incubator/flex/utilities/trunk/installerBadge/src/InstallApacheFlexBadge.mxml
    incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/resources/EmbeddedMedia.as

Added: incubator/flex/utilities/trunk/installerBadge/html-template/disclaimer.html
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installerBadge/html-template/disclaimer.html?rev=1376750&view=auto
==============================================================================
--- incubator/flex/utilities/trunk/installerBadge/html-template/disclaimer.html (added)
+++ incubator/flex/utilities/trunk/installerBadge/html-template/disclaimer.html Thu Aug 23 22:42:58 2012
@@ -0,0 +1,44 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!DOCTYPE html>
+
+<html> 
+<head>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
+    <title>Disclaimer - Apache Flex SDK Installer Badge</title>
+</head>
+<body>
+	<p>
+		Apache Flex is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.
+	</p>
+	<br />
+	<p>
+		Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.
+	</p>
+	<br />
+	<p>
+		While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+	</p>
+	<br />
+	<p>
+		Notice: Apache and Apache Flex are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.
+	</p>
+</body>
+</html>

Modified: incubator/flex/utilities/trunk/installerBadge/src/InstallApacheFlexBadge.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installerBadge/src/InstallApacheFlexBadge.mxml?rev=1376750&r1=1376749&r2=1376750&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installerBadge/src/InstallApacheFlexBadge.mxml (original)
+++ incubator/flex/utilities/trunk/installerBadge/src/InstallApacheFlexBadge.mxml Thu Aug 23 22:42:58 2012
@@ -24,12 +24,11 @@ limitations under the License.
 			   xmlns:components="org.apache.flex.installApacheFlexBadge.components.*"
 			   creationComplete="creationCompleteHandler(event)">
 	
-	<fx:Style source="/assets/styles/ApacheFlexToolsStyle.css" />
+	<fx:Style source="/org/apache/flex/installApacheFlexBadge/styles/ApacheFlexBadgeStyle.css" />
 	
 	<fx:Script><![CDATA[
 		
 		import mx.controls.Alert;
-		import mx.core.FlexGlobals;
 		import mx.events.FlexEvent;
 		
 		import org.apache.flex.installApacheFlexBadge.resources.EmbeddedMedia;
@@ -38,44 +37,15 @@ limitations under the License.
 		import org.apache.flex.utilities.common.MirrorURLUtil;
 		import org.apache.flex.utilities.common.Tools;
 		
-		import spark.utils.TextFlowUtil;
-		
 		//----------------------------------------------------------------------
 		//
 		//    Constants
 		//
 		//----------------------------------------------------------------------
 		
-		private const DIMENSION_HEIGHT_REGULAR:int = 300;
-		private const DIMENSION_HEIGHT_SMALL:int = 82;
-		
-		private const DIMENSION_WIDTH_REGULAR:int = 300;
-		private const DIMENSION_WIDTH_SMALL:int = 400;
-		
-		private const INFO_DISCLAIMER_XML:XML = 
-			<TextFlow xmlns="http://ns.adobe.com/textLayout/2008" fontFamily="openSansSemiBold">
-				<p>
-					Apache Flex is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.
-				</p>
-				<br />
-				<p>
-					Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects.
-				</p>
-				<br />
-				<p>
-					While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
-				</p>
-				<br />
-				<p>
-					Notice: Apache and Apache Flex are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.
-				</p>
-			</TextFlow>;
 		private const INFO_ERROR_OPERATING_SYSTEM:String = "The Apache Flex SDK Installer application\nis not supported on your operating system.";
 		private const INFO_ERROR_RETRIEVE_CONFIG:String = "The application was unable to retrieve\nthe configuration file.";
-		private const INFO_FOR_IDE:String = "SDK Installation App";
 		
-		private const LABEL_BACK:String = "Close";
-		private const LABEL_DISCLAIMER:String = "( disclaimer )";
 		private const LABEL_DOWNLOAD:String = "DOWNLOAD";
 		
 		private const TITLE_ERROR_INTERNET:String = "Internet Error";
@@ -236,6 +206,18 @@ limitations under the License.
 			btnDownload.enabled = true;
 		}
 		
+		//----------------------------------
+		//    showDislaimer
+		//----------------------------------
+		
+		private function showDisclaimer():void
+		{
+			var request:URLRequest = new URLRequest(
+				"disclaimer.html");
+			
+			navigateToURL(request, "_blank");
+		}
+		 
 	]]></fx:Script>
 	
 	<fx:Declarations /> 
@@ -243,30 +225,33 @@ limitations under the License.
 	<s:states>
 		<s:State name="regular" />
 		<s:State name="small" />
-		<s:State name="disclaimerState" />
 	</s:states>
 
-	<s:Image id="imgBackground" source="{EmbeddedMedia.background}"
-			 height="{DIMENSION_WIDTH_REGULAR + 10}" height.small="{DIMENSION_WIDTH_SMALL + 10}"
-			 width="{DIMENSION_WIDTH_REGULAR + 10}" width.small="{DIMENSION_WIDTH_SMALL + 10}"
-			 left="-5" top="-5"/>
-	
-	<s:Image id="imgLogo" source="{EmbeddedMedia.logo}"
-			 height="165" width="164"
-			 top="10"
-			 horizontalCenter="0"
+	<s:Image id="imgBackgroundRegular" source="{EmbeddedMedia.backgroundRegular}" includeIn="regular"/>
+	
+	<s:Group height="15" width="60"
+			 left="188" top="230"
+			 buttonMode="true"
+			 click="showDisclaimer()"
 			 includeIn="regular" />
 	
-	<s:Image id="imgLogoSmall" source="{EmbeddedMedia.logoSmall}"
-			 height="72" width="72"
-			 left="5" top="5"
+	<s:Image id="imgBackgroundSmall" source="{EmbeddedMedia.backgroundSmall}" includeIn="small"/>
+	
+	<s:Group height="15" width="60"
+			 left="146" top="57"
+			 buttonMode="true"
+			 click="showDisclaimer()"
+			 includeIn="small" />
+	
+	<s:Group height="15" width="60"
+			 left="188" top="230"
+			 buttonMode="true"
+			 click="showDisclaimer()"
 			 includeIn="small" />
 	
 	<s:Group height="37" width="250"
 			 left="75" left.small="95"
 			 top.regular="185" top.small="15">
-		<s:Image id="imgHeader" source="{EmbeddedMedia.header}" />
-		
 		<s:Label text="{_sdkVersionString}"
 				 fontFamily="openSansBold"
 				 color="0x162545" fontSize="32"
@@ -274,24 +259,6 @@ limitations under the License.
 				 left="87" top="9" />		
 	</s:Group>
 	
-	<s:Label text="{INFO_FOR_IDE}"
-			 width="190"
-			 left="25" left.small="228"
-			 top="235" top.small="17"
-			 color="0x162545" 
-			 fontFamily="openSansSemibold" fontSize="13"
-			 textAlign="center" />
-	
-	<s:Label text="{LABEL_DISCLAIMER}"
-			 width="60"
-			 left="190" left.small="140"
-			 top="236" top.small="60"
-			 color="0x717C91"
-			 fontFamily="openSansLightItalic" fontSize="11"
-			 textAlign="center"
-			 buttonMode="true"
-			 click="{grpDisclaimer.visible = true;}" />
-	
 	<s:Button id="btnDownload" label="{LABEL_DOWNLOAD}"
 			  height="30"
 			  bottom="10" bottom.small="12"
@@ -302,33 +269,5 @@ limitations under the License.
 			  useHandCursor="true"
 			  click="btnDownload_clickHandler(event)"
 			  styleName="mainBtnStyle"/>
-
-	<s:Group id="grpDisclaimer"
-			 height="{DIMENSION_HEIGHT_REGULAR}" height.small="{DIMENSION_HEIGHT_SMALL}"
-			 width="{DIMENSION_WIDTH_REGULAR}" width.small="{DIMENSION_WIDTH_SMALL}"
-			 visible="false">
-		<s:Graphic>    
-			<s:Rect height="{DIMENSION_HEIGHT_REGULAR}"
-					width="{DIMENSION_WIDTH_SMALL}">
-				<s:fill>
-					<s:SolidColor color="0x000000" alpha="0.5"/>
-				</s:fill>
-			</s:Rect>
-		</s:Graphic>
-		
-		<s:Button id="btnBack" label="{LABEL_BACK}"
-				  height="15"
-				  right="15" top="10"
-				  fontSize="10"
-				  buttonMode="true"
-				  click="{grpDisclaimer.visible = false;}"
-				  styleName="genericBtnStyle"/>
-		
-		<s:TextArea id="disclaimerTxtArea"
-					bottom="10" left="10" right="10" top="25"
-					fontFamily="openSansSemibold"
-					editable="false"
-					textFlow="{TextFlowUtil.importFromXML(INFO_DISCLAIMER_XML)}" />
-	</s:Group>
 	
 </s:Application>
\ No newline at end of file

Added: incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/backgroundRegular.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/backgroundRegular.png?rev=1376750&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/backgroundRegular.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/backgroundSmall.png
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/backgroundSmall.png?rev=1376750&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/images/backgroundSmall.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/resources/EmbeddedMedia.as
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/resources/EmbeddedMedia.as?rev=1376750&r1=1376749&r2=1376750&view=diff
==============================================================================
--- incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/resources/EmbeddedMedia.as (original)
+++ incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/resources/EmbeddedMedia.as Thu Aug 23 22:42:58 2012
@@ -29,36 +29,20 @@ public final class EmbeddedMedia
 	//--------------------------------------------------------------------------
 	
 	//----------------------------------
-	//    imageBackground
+	//    backgroundRegular
 	//----------------------------------
 	
-	[Embed(source="/assets/images/background.png")]
+	[Embed(source="/org/apache/flex/installApacheFlexBadge/images/backgroundRegular.png")]
 	[Bindable]
-	public static var background:Class;
+	public static var backgroundRegular:Class;
 	
 	//----------------------------------
-	//    imageHeader
+	//    backgroundSmall
 	//----------------------------------
 	
-	[Embed(source="/assets/images/header.png")]
+	[Embed(source="/org/apache/flex/installApacheFlexBadge/images/backgroundSmall.png")]
 	[Bindable]
-	public static var header:Class;
-	
-	//----------------------------------
-	//    imageLogo
-	//----------------------------------
-	
-	[Embed(source="/assets/images/logo.png")]
-	[Bindable]
-	public static var logo:Class;
-	
-	//----------------------------------
-	//    imageLogo
-	//----------------------------------
-	
-	[Embed(source="/assets/images/logoSmall.png")]
-	[Bindable]
-	public static var logoSmall:Class;
+	public static var backgroundSmall:Class;
 	
 	//--------------------------------------------------------------------------
 	//

Added: incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/styles/ApacheFlexBadgeStyle.css
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/styles/ApacheFlexBadgeStyle.css?rev=1376750&view=auto
==============================================================================
--- incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/styles/ApacheFlexBadgeStyle.css (added)
+++ incubator/flex/utilities/trunk/installerBadge/src/org/apache/flex/installApacheFlexBadge/styles/ApacheFlexBadgeStyle.css Thu Aug 23 22:42:58 2012
@@ -0,0 +1,48 @@
+/*
+
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+*/
+@namespace s "library://ns.adobe.com/flex/spark";
+
+@font-face {
+	src: url("/assets/fonts/open-sans/OpenSans-Bold.ttf");
+	fontFamily: openSansBold;
+	advancedAntiAliasing: true;
+	unicodeRange:
+		U+0044, /* D */
+		U+004F, /* O */
+		U+0057, /* W */
+		U+004E, /* N */
+		U+004C, /* L */
+		U+0041, /* A */
+		U+0030-U+0039, /* Numbers [0..9] */
+		U+002E-U+002E; /* Period [.] */
+}
+
+s|Button
+{
+	skinClass : ClassReference("ws.tink.spark.skins.controls.ButtonSkin");
+	fontFamily : openSansBold;
+	fontSize : 14;
+	color	: #FFFFFF;
+	borderColor: #DBDBDB;
+}
+
+.mainBtnStyle
+{
+	chromeColor: #679d13;
+}