move common into flex-installer
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/a89ead81 Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/a89ead81 Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/a89ead81 Branch: refs/heads/develop Commit: a89ead813a1d771f18de83a6c3998ad064db2c40 Parents: f954e6f Author: Alex Harui <[email protected]> Authored: Sun Jun 14 23:11:10 2015 -0700 Committer: Alex Harui <[email protected]> Committed: Sun Jun 14 23:11:10 2015 -0700 ---------------------------------------------------------------------- common/.actionScriptProperties | 22 -- common/.flexLibProperties | 6 - common/.project | 18 -- .../.settings/org.eclipse.core.resources.prefs | 3 - .../assets/fonts/open-sans/OpenSans-Bold.ttf | Bin 224592 -> 0 bytes .../fonts/open-sans/OpenSans-BoldItalic.ttf | Bin 213292 -> 0 bytes .../fonts/open-sans/OpenSans-ExtraBold.ttf | Bin 222584 -> 0 bytes .../open-sans/OpenSans-ExtraBoldItalic.ttf | Bin 213420 -> 0 bytes .../assets/fonts/open-sans/OpenSans-Italic.ttf | Bin 212896 -> 0 bytes .../assets/fonts/open-sans/OpenSans-Light.ttf | Bin 222412 -> 0 bytes .../fonts/open-sans/OpenSans-LightItalic.ttf | Bin 213128 -> 0 bytes .../assets/fonts/open-sans/OpenSans-Regular.ttf | Bin 217360 -> 0 bytes .../fonts/open-sans/OpenSans-Semibold.ttf | Bin 221328 -> 0 bytes .../fonts/open-sans/OpenSans-SemiboldItalic.ttf | Bin 212820 -> 0 bytes .../src/assets/styles/ApacheFlexToolsStyle.css | 80 ------- .../apache/flex/utilities/common/Constants.as | 88 -------- .../flex/utilities/common/InternetUtil.as | 178 --------------- .../flex/utilities/common/MirrorURLUtil.as | 222 ------------------- .../org/apache/flex/utilities/common/Tools.as | 95 -------- .../utilities/common/controls/LinkButton.as | 58 ----- .../flex/utilities/common/interfaces/ILog.as | 34 --- .../flex/utilities/common/vo/LogMessagesVO.as | 82 ------- .../tink/spark/skins/controls/ButtonSkin.mxml | 141 ------------ flex-installer/common/.actionScriptProperties | 22 ++ flex-installer/common/.flexLibProperties | 6 + flex-installer/common/.project | 18 ++ .../.settings/org.eclipse.core.resources.prefs | 3 + .../assets/fonts/open-sans/OpenSans-Bold.ttf | Bin 0 -> 224592 bytes .../fonts/open-sans/OpenSans-BoldItalic.ttf | Bin 0 -> 213292 bytes .../fonts/open-sans/OpenSans-ExtraBold.ttf | Bin 0 -> 222584 bytes .../open-sans/OpenSans-ExtraBoldItalic.ttf | Bin 0 -> 213420 bytes .../assets/fonts/open-sans/OpenSans-Italic.ttf | Bin 0 -> 212896 bytes .../assets/fonts/open-sans/OpenSans-Light.ttf | Bin 0 -> 222412 bytes .../fonts/open-sans/OpenSans-LightItalic.ttf | Bin 0 -> 213128 bytes .../assets/fonts/open-sans/OpenSans-Regular.ttf | Bin 0 -> 217360 bytes .../fonts/open-sans/OpenSans-Semibold.ttf | Bin 0 -> 221328 bytes .../fonts/open-sans/OpenSans-SemiboldItalic.ttf | Bin 0 -> 212820 bytes .../src/assets/styles/ApacheFlexToolsStyle.css | 80 +++++++ .../apache/flex/utilities/common/Constants.as | 88 ++++++++ .../flex/utilities/common/InternetUtil.as | 178 +++++++++++++++ .../flex/utilities/common/MirrorURLUtil.as | 222 +++++++++++++++++++ .../org/apache/flex/utilities/common/Tools.as | 95 ++++++++ .../utilities/common/controls/LinkButton.as | 58 +++++ .../flex/utilities/common/interfaces/ILog.as | 34 +++ .../flex/utilities/common/vo/LogMessagesVO.as | 82 +++++++ .../tink/spark/skins/controls/ButtonSkin.mxml | 141 ++++++++++++ 46 files changed, 1027 insertions(+), 1027 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/.actionScriptProperties ---------------------------------------------------------------------- diff --git a/common/.actionScriptProperties b/common/.actionScriptProperties deleted file mode 100644 index 660d9e3..0000000 --- a/common/.actionScriptProperties +++ /dev/null @@ -1,22 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<actionScriptProperties analytics="false" mainApplicationPath="ApacheFlexToolsCommon.as" projectUUID="cb0d0d00-59b0-4a30-8cdd-2d822f7fabd0" version="11"> - <compiler additionalCompilerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFiles="false" flexSDK="Apache Flex 4.10.0 FP 11.8 AIR 3.8 en_US" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" useFlashSDK="false" verifyDigests="true" warn="true"> - <compilerSourcePath/> - <libraryPath defaultLinkType="0"> - <libraryPathEntry kind="4" path=""> - <excludedEntries> - <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/> - <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/> - </excludedEntries> - </libraryPathEntry> - </libraryPath> - <sourceAttachmentPath/> - </compiler> - <applications> - <application path="ApacheFlexToolsCommon.as"/> - </applications> - <modules/> - <workers/> - <buildCSSFiles/> - <flashCatalyst validateFlashCatalystCompatibility="false"/> -</actionScriptProperties> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/.flexLibProperties ---------------------------------------------------------------------- diff --git a/common/.flexLibProperties b/common/.flexLibProperties deleted file mode 100644 index 3967c3e..0000000 --- a/common/.flexLibProperties +++ /dev/null @@ -1,6 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<flexLibProperties includeAllClasses="true" useMultiPlatformConfig="false" version="3"> - <includeClasses/> - <includeResources/> - <namespaceManifests/> -</flexLibProperties> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/.project ---------------------------------------------------------------------- diff --git a/common/.project b/common/.project deleted file mode 100644 index ec59660..0000000 --- a/common/.project +++ /dev/null @@ -1,18 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>common</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>com.adobe.flexbuilder.project.flexbuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>com.adobe.flexbuilder.project.flexlibnature</nature> - <nature>com.adobe.flexbuilder.project.actionscriptnature</nature> - </natures> -</projectDescription> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/.settings/org.eclipse.core.resources.prefs ---------------------------------------------------------------------- diff --git a/common/.settings/org.eclipse.core.resources.prefs b/common/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index d8345de..0000000 --- a/common/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,3 +0,0 @@ -#Mon Aug 13 11:46:04 PDT 2012 -eclipse.preferences.version=1 -encoding/<project>=utf-8 http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-Bold.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-Bold.ttf b/common/src/assets/fonts/open-sans/OpenSans-Bold.ttf deleted file mode 100644 index fd79d43..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-Bold.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf b/common/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf deleted file mode 100644 index 9bc8009..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf b/common/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf deleted file mode 100644 index 21f6f84..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf b/common/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf deleted file mode 100644 index 31cb688..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-Italic.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-Italic.ttf b/common/src/assets/fonts/open-sans/OpenSans-Italic.ttf deleted file mode 100644 index c90da48..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-Italic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-Light.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-Light.ttf b/common/src/assets/fonts/open-sans/OpenSans-Light.ttf deleted file mode 100644 index 0d38189..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-Light.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf b/common/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf deleted file mode 100644 index 68299c4..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-Regular.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-Regular.ttf b/common/src/assets/fonts/open-sans/OpenSans-Regular.ttf deleted file mode 100644 index db43334..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-Regular.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-Semibold.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-Semibold.ttf b/common/src/assets/fonts/open-sans/OpenSans-Semibold.ttf deleted file mode 100644 index 1a7679e..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-Semibold.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf ---------------------------------------------------------------------- diff --git a/common/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf b/common/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf deleted file mode 100644 index 59b6d16..0000000 Binary files a/common/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf and /dev/null differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/assets/styles/ApacheFlexToolsStyle.css ---------------------------------------------------------------------- diff --git a/common/src/assets/styles/ApacheFlexToolsStyle.css b/common/src/assets/styles/ApacheFlexToolsStyle.css deleted file mode 100644 index 14a268e..0000000 --- a/common/src/assets/styles/ApacheFlexToolsStyle.css +++ /dev/null @@ -1,80 +0,0 @@ -/* - -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"; -@namespace mx "library://ns.adobe.com/flex/mx"; -@namespace st "ws.tink.spark.controls.*"; -@namespace controls "org.apache.flex.utilities.common.controls.*"; - -@font-face { - src: url("/assets/fonts/open-sans/OpenSans-LightItalic.ttf"); - fontFamily: openSansLightItalic; - advancedAntiAliasing: true; -} - -@font-face { - src: url("/assets/fonts/open-sans/OpenSans-Bold.ttf"); - fontFamily: openSansBold; - advancedAntiAliasing: true; -} - -@font-face { - src: url("/assets/fonts/open-sans/OpenSans-Semibold.ttf"); - fontFamily: openSansSemibold; - advancedAntiAliasing: true; -} - -controls|LinkButton -{ - fontWeight: normal; - fontSize: 13; - color: #6666CC; - verticalCenter: 1; - textAlign: left; - rollOverTextDecoration:underline; - text-roll-over-color: #6666CC; -} - -s|Button -{ - skinClass : ClassReference("ws.tink.spark.skins.controls.ButtonSkin"); - fontFamily : openSansSemibold; - fontSize : 14; - color : #FFFFFF; - borderColor: #DBDBDB; -} - -.browseBtnStyle -{ - chromeColor: #40b8df; -} - -.mainBtnStyle -{ - chromeColor: #679d13; -} - -.negativeBtnStyle -{ - chromeColor: #B20E13; -} - -.genericBtnStyle -{ - chromeColor: #7b7b7b; -} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/org/apache/flex/utilities/common/Constants.as ---------------------------------------------------------------------- diff --git a/common/src/org/apache/flex/utilities/common/Constants.as b/common/src/org/apache/flex/utilities/common/Constants.as deleted file mode 100644 index 062ecd4..0000000 --- a/common/src/org/apache/flex/utilities/common/Constants.as +++ /dev/null @@ -1,88 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -package org.apache.flex.utilities.common -{ - -public class Constants -{ - - //-------------------------------------------------------------------------- - // - // Class Constants - // - //-------------------------------------------------------------------------- - - public static const APACHE_FLEX_URL:String = "http://flex.apache.org/"; - - public static const ARCHIVE_EXTENSION_MAC:String = ".tar.gz"; - public static const ARCHIVE_EXTENSION_WIN:String = ".zip"; - - public static const APPLICATION_EXTENSION_MAC:String = ".dmg"; - public static const APPLICATION_EXTENSION_WIN:String = ".exe"; - public static const APPLICATION_EXTENSION_LINUX:String = ".deb"; - - public static const CONFIG_XML_NAME:String = "installer/sdk-installer-config-4.0.xml"; - public static const DISCLAIMER_PATH:String = "about-binaries.html"; - public static const INSTALLER_TRACK_SUCCESS:String = "track-installer.html"; - public static const INSTALLER_TRACK_FAILURE:String = "track-installer.html?failure=true"; - - - public static const SDK_BINARY_FILE_NAME_PREFIX:String = "apache-flex-sdk-"; - - public static const URL_PREFIX:String = "http://"; - public static const FILE_PREFIX:String = "file://"; - public static const HTTPS_PREFIX:String = "https://"; - - public static const SOURCEFORGE_DL_URL:String = ".dl.sourceforge.net/project/"; - public static const SOURCEFORGE_DOWNLOAD_URL:String = "http://downloads.sourceforge.net/project/" + - ""; - - //-------------------------------------------------------------------------- - // - // Class properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // instance - //---------------------------------- - - private static var _instance:Constants; - - public static function get instance():Constants - { - if (!_instance) - _instance = new Constants(new SE()); - - return _instance; - } - - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - public function Constants(se:SE) {} - -} -} - -class SE {} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/org/apache/flex/utilities/common/InternetUtil.as ---------------------------------------------------------------------- diff --git a/common/src/org/apache/flex/utilities/common/InternetUtil.as b/common/src/org/apache/flex/utilities/common/InternetUtil.as deleted file mode 100644 index 86d0ee6..0000000 --- a/common/src/org/apache/flex/utilities/common/InternetUtil.as +++ /dev/null @@ -1,178 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -package org.apache.flex.utilities.common -{ - -import flash.events.Event; -import flash.events.IOErrorEvent; -import flash.net.URLLoader; -import flash.net.URLLoaderDataFormat; -import flash.net.URLRequest; - -public class InternetUtil -{ - - //-------------------------------------------------------------------------- - // - // Class properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // instance - //---------------------------------- - - private static var _instance:InternetUtil; - - public static function get instance():InternetUtil - { - if (!_instance) - _instance = new InternetUtil(new SE()); - - return _instance; - } - - //-------------------------------------------------------------------------- - // - // Class methods - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // getTLDFromURL - //---------------------------------- - - public static function getTLDFromURL(url:String):String - { - var array:Array; - - var result:String = url; - - if (result.indexOf(Constants.URL_PREFIX) > -1) - result = result.split("/")[2]; - - array = result.split("."); - array.shift(); - - return array.join("."); - } - - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - public function InternetUtil(se:SE) {} - - //-------------------------------------------------------------------------- - // - // Variables - // - //-------------------------------------------------------------------------- - - private var _callback:Function; - - private var _urlLoader:URLLoader; - - //-------------------------------------------------------------------------- - // - // Properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // errorMessage - //---------------------------------- - - private var _errorMessage:String = ""; - - public function get errorMessage():String - { - return _errorMessage; - } - - //---------------------------------- - // errorOccurred - //---------------------------------- - - private var _errorOccurred:Boolean; - - public function get errorOccurred():Boolean - { - return _errorOccurred; - } - - //---------------------------------- - // result - //---------------------------------- - - private var _result:String; - - public function get result():String - { - return _result; - } - - //-------------------------------------------------------------------------- - // - // Methods - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // fetchResultHandler - //---------------------------------- - - private function fetchResultHandler(event:Event):void - { - _errorOccurred = event is IOErrorEvent; - - if (!_errorOccurred) - _result = _urlLoader.data; - else - _errorMessage = String(IOErrorEvent(event).text); - - _callback(); - } - - //---------------------------------- - // fetch - //---------------------------------- - - public function fetch(fetchURL:String, fetchCompleteHandler:Function, args:String = null):void - { - _callback = fetchCompleteHandler; - - _errorMessage = ""; - _errorOccurred = false; - _result = ""; - - _urlLoader = new URLLoader(); - _urlLoader.dataFormat = URLLoaderDataFormat.TEXT; - _urlLoader.addEventListener(Event.COMPLETE, fetchResultHandler); - _urlLoader.addEventListener(IOErrorEvent.IO_ERROR, fetchResultHandler); - _urlLoader.load(new URLRequest(fetchURL + ((args) ? "?" + args : ""))); - } - -} -} - -class SE {} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/org/apache/flex/utilities/common/MirrorURLUtil.as ---------------------------------------------------------------------- diff --git a/common/src/org/apache/flex/utilities/common/MirrorURLUtil.as b/common/src/org/apache/flex/utilities/common/MirrorURLUtil.as deleted file mode 100644 index 7b934ba..0000000 --- a/common/src/org/apache/flex/utilities/common/MirrorURLUtil.as +++ /dev/null @@ -1,222 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -package org.apache.flex.utilities.common -{ - -import mx.collections.ArrayCollection; - -import org.apache.flex.utilities.common.vo.LogMessagesVO; -import org.apache.flex.utilities.common.interfaces.ILog; - -public class MirrorURLUtil implements ILog -{ - - //-------------------------------------------------------------------------- - // - // Class properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // instance - //---------------------------------- - - private static var _instance:MirrorURLUtil; - - public static function get instance():MirrorURLUtil - { - if (!_instance) - _instance = new MirrorURLUtil(new SE()); - - return _instance; - } - - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - public function MirrorURLUtil(se:SE) - { - _internetUtil = InternetUtil.instance; - } - - //-------------------------------------------------------------------------- - // - // Constants - // - //-------------------------------------------------------------------------- - - private const ACTION:String = "action"; - private const ERROR:String = "error"; - private const SUCCESS:String = "success"; - - //-------------------------------------------------------------------------- - // - // Variables - // - //-------------------------------------------------------------------------- - - private var _callback:Function; - private var _internetUtil:InternetUtil; - private var _mirrorFetchStep:String; - private var _userCountryCode:String; - - //-------------------------------------------------------------------------- - // - // Properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // errorOccurred - //---------------------------------- - - private var _errorOccurred:Boolean; - - public function get errorOccurred():Boolean - { - return _errorOccurred; - } - - //---------------------------------- - // log - //---------------------------------- - - private var _log:ArrayCollection; - - public function get log():ArrayCollection - { - return _log; - } - - //---------------------------------- - // logMessages - //---------------------------------- - - private var _logMessages:LogMessagesVO; - - public function get logMessages():LogMessagesVO - { - return _logMessages; - } - - public function set logMessages(value:LogMessagesVO):void - { - _logMessages = value; - } - - //---------------------------------- - // mirrorURL - //---------------------------------- - - private var _mirrorURL:String; - - public function get mirrorURL():String - { - return _mirrorURL; - } - - //-------------------------------------------------------------------------- - // - // Methods - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // addLogItem - //---------------------------------- - - private function addLogItem(messageType:String):void - { - if (_logMessages) - { - switch (messageType) - { - case ACTION : - { - _log.addItem(_logMessages.action); - - break; - } - - case ERROR : - { - _log.addItem(_logMessages.error); - - break; - } - - case SUCCESS : - { - _log.addItem(_logMessages.success); - - break; - } - } - } - } - - //---------------------------------- - // fetchMirrorFromCGIResult - //---------------------------------- - - private function fetchMirrorFromCGIResult():void - { - _errorOccurred = _internetUtil.errorOccurred; - - if (!_errorOccurred) - { - addLogItem(SUCCESS); - - var result:String = _internetUtil.result; - - _mirrorURL = (result.search("<p>") != -1) ? - result.substring(3, result.length - 4) : - result; - } - else - { - addLogItem(ERROR); - } - - _callback(); - } - - //---------------------------------- - // getMirrorURL - //---------------------------------- - - public function getMirrorURL(fetchURL:String, callback:Function):void - { - _callback = callback; - - _log = new ArrayCollection(); - - //_log.addItem(ACTION); - - _internetUtil.fetch(fetchURL, fetchMirrorFromCGIResult); - } - -} -} - -class SE {} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/org/apache/flex/utilities/common/Tools.as ---------------------------------------------------------------------- diff --git a/common/src/org/apache/flex/utilities/common/Tools.as b/common/src/org/apache/flex/utilities/common/Tools.as deleted file mode 100644 index 7dc7d00..0000000 --- a/common/src/org/apache/flex/utilities/common/Tools.as +++ /dev/null @@ -1,95 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -package org.apache.flex.utilities.common -{ - -import flash.system.Capabilities; - -import mx.controls.Alert; - -public class Tools -{ - - //-------------------------------------------------------------------------- - // - // Class constants - // - //-------------------------------------------------------------------------- - - private static const PLATFORM_MAC:String = "Mac"; - private static const PLATFORM_WIN:String = "Windows"; - private static const PLATFORM_LINUX:String = "Linux"; - - //-------------------------------------------------------------------------- - // - // Class properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // instance - //---------------------------------- - - private static var _instance:Tools; - - public static function get instance():Tools - { - if (!_instance) - _instance = new Tools(new SE()); - - return _instance; - } - - //-------------------------------------------------------------------------- - // - // Class methods - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // warnPlatformNotSupported - //---------------------------------- - - public static function getApplicationExtension():String - { - var platform:String = Capabilities.os.split(" ")[0]; - - if (platform == PLATFORM_WIN) - return Constants.APPLICATION_EXTENSION_WIN; - else if (platform == PLATFORM_MAC) - return Constants.APPLICATION_EXTENSION_MAC; - else if (platform == PLATFORM_LINUX) - return Constants.APPLICATION_EXTENSION_LINUX; - else - throw(new Error("PlatformNotSupported")); - } - - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - public function Tools(se:SE) {} - -} -} - -class SE {} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/org/apache/flex/utilities/common/controls/LinkButton.as ---------------------------------------------------------------------- diff --git a/common/src/org/apache/flex/utilities/common/controls/LinkButton.as b/common/src/org/apache/flex/utilities/common/controls/LinkButton.as deleted file mode 100644 index 2642b88..0000000 --- a/common/src/org/apache/flex/utilities/common/controls/LinkButton.as +++ /dev/null @@ -1,58 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -package org.apache.flex.utilities.common.controls -{ - import flash.events.MouseEvent; - - import spark.components.Label; - - - [Style(name="rollOverTextDecoration", type="String", enumeration="none,underline", inherit="yes")] - public class LinkButton extends Label - { - private var _textDecoration:String; - - override public function initialize():void - { - super.initialize(); - setStyles(); - } - - protected function setStyles():void - { - this.buttonMode=true; - this.addEventListener(MouseEvent.ROLL_OVER,handleRollOver); - this.addEventListener(MouseEvent.ROLL_OUT,handleRollOut); - } - - protected function handleRollOver(e:MouseEvent):void - { - _textDecoration=getStyle("textDecoration"); - this.setStyle('textDecoration',getStyle("rollOverTextDecoration")); - } - - protected function handleRollOut(e:MouseEvent):void - { - this.clearStyle('textDecoration'); - this.setStyle('textDecoration',_textDecoration); - } - - } -} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/org/apache/flex/utilities/common/interfaces/ILog.as ---------------------------------------------------------------------- diff --git a/common/src/org/apache/flex/utilities/common/interfaces/ILog.as b/common/src/org/apache/flex/utilities/common/interfaces/ILog.as deleted file mode 100644 index 370f029..0000000 --- a/common/src/org/apache/flex/utilities/common/interfaces/ILog.as +++ /dev/null @@ -1,34 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -package org.apache.flex.utilities.common.interfaces -{ - -import mx.collections.ArrayCollection; - -import org.apache.flex.utilities.common.vo.LogMessagesVO; - -public interface ILog -{ - function get log():ArrayCollection; - - function get logMessages():LogMessagesVO; - function set logMessages(value:LogMessagesVO):void; -} -} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/org/apache/flex/utilities/common/vo/LogMessagesVO.as ---------------------------------------------------------------------- diff --git a/common/src/org/apache/flex/utilities/common/vo/LogMessagesVO.as b/common/src/org/apache/flex/utilities/common/vo/LogMessagesVO.as deleted file mode 100644 index c1d76a4..0000000 --- a/common/src/org/apache/flex/utilities/common/vo/LogMessagesVO.as +++ /dev/null @@ -1,82 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// -// -// 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. -// -//////////////////////////////////////////////////////////////////////////////// - -package org.apache.flex.utilities.common.vo -{ - -public final class LogMessagesVO -{ - - //-------------------------------------------------------------------------- - // - // Constructor - // - //-------------------------------------------------------------------------- - - public function LogMessagesVO(action:String, success:String, error:String) - { - _action = action; - _success = success; - _error = error; - } - - //-------------------------------------------------------------------------- - // - // Properties - // - //-------------------------------------------------------------------------- - - //---------------------------------- - // action - //---------------------------------- - - private var _action:String; - - public function get action():String - - { - return _action; - } - - //---------------------------------- - // success - //---------------------------------- - - private var _success:String; - - public function get success():String - - { - return _success; - } - - //---------------------------------- - // error - //---------------------------------- - - private var _error:String; - - public function get error():String - - { - return _error; - } - -} -} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/common/src/ws/tink/spark/skins/controls/ButtonSkin.mxml ---------------------------------------------------------------------- diff --git a/common/src/ws/tink/spark/skins/controls/ButtonSkin.mxml b/common/src/ws/tink/spark/skins/controls/ButtonSkin.mxml deleted file mode 100644 index 829cead..0000000 --- a/common/src/ws/tink/spark/skins/controls/ButtonSkin.mxml +++ /dev/null @@ -1,141 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- - -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. - ---> -<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" - xmlns:s="library://ns.adobe.com/flex/spark" - xmlns:fb="http://ns.adobe.com/flashbuilder/2009" - minWidth="21" minHeight="21" - alpha.disabled="0.5"> - - <fx:Metadata> - <![CDATA[ - /** - * @copy spark.skins.spark.ApplicationSkin#hostComponent - */ - [HostComponent("spark.components.Button")] - ]]> - </fx:Metadata> - - <fx:Script fb:purpose="styling"> - <![CDATA[ - - /** - * @private - */ - override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void - { - fillColor.color = getStyle( "chromeColor"); - - var cr:Number = getStyle("cornerRadius"); - - if (cornerRadius != cr) - { - cornerRadius = cr; - border.radiusX = border.radiusY = cornerRadius; - fill.radiusX = fill.radiusY = cornerRadius - 1; -// -// lowlight.radiusX = cornerRadius; -// highlight.radiusX = cornerRadius; -// border.radiusX = cornerRadius; - } - if( highlight ) highlight.radiusX = highlight.radiusY = cornerRadius - 1; - if( downHighlight ) downHighlight.radiusX = downHighlight.radiusY = cornerRadius - 1; -// if( downHighlight ) downHighlight.radiusX = downHighlight.radiusY = cornerRadius - 1; - -// if (highlightStroke) highlightStroke.radiusX = cornerRadius; -// if (hldownstroke1) hldownstroke1.radiusX = cornerRadius; -// if (hldownstroke2) hldownstroke2.radiusX = cornerRadius; - - super.updateDisplayList(unscaledWidth, unscaledHeight); - } - - private var cornerRadius:Number = 2; - - ]]> - </fx:Script> - - <!-- states --> - <s:states> - <s:State name="up" /> - <s:State name="over" /> - <s:State name="down" /> - <s:State name="disabled" /> - </s:states> - - <s:filters> - <s:DropShadowFilter blurX="3" blurY="3" strength="1" angle="90" distance="1" - color="0x000000" alpha="0.34"/> - <s:DropShadowFilter blurX="0" blurY="0" strength="0.5" angle="137" distance="1" - color="0x000000" alpha="0.14" inner="true"/> - </s:filters> - - - <!-- border --> - <!--- @private --> - <s:Rect id="border" left="0" right="0" top="0" bottom="0" - radiusX="3" radiusY="3"> - <s:fill> - <s:SolidColor color.over="0xFFFFFF" color.down="0xFFFFFF" - color="{getStyle( 'borderColor' )}"/> - </s:fill> - </s:Rect> - - <!-- fill --> - <!--- @private --> - <s:Rect id="fill" left="1" right="1" top="1" bottom="1" - radiusX="2" radiusY="2"> - <s:fill> - <s:SolidColor id="fillColor"/> - </s:fill> - </s:Rect> - - <!-- highlight --> - <!--- @private --> - <s:Rect id="highlight" left="1" right="1" top="1" bottom="1" - radiusX="2" radiusY="2" excludeFrom="down"> - <s:fill> - <s:LinearGradient rotation="90"> - <s:GradientEntry color="0xFFFFFF" alpha="0.4" /> - <s:GradientEntry color="0xFFFFFF" alpha="0" /> - </s:LinearGradient> - </s:fill> - </s:Rect> - - <!-- downs highlight --> - <!--- @private --> - <s:Rect id="downHighlight" left="1" right="1" top="1" bottom="1" - radiusX="2" radiusY="2" includeIn="down"> - <s:fill> - <s:LinearGradient rotation="90"> - <s:GradientEntry color="0xFFFFFF" alpha="0" ratio="0.15" /> - <s:GradientEntry color="0xFFFFFF" alpha="0.4" /> - </s:LinearGradient> - </s:fill> - </s:Rect> - - <!-- layer 8: text --> - <!--- @copy spark.components.supportClasses.ButtonBase#labelDisplay --> - <s:Label id="labelDisplay" - textAlign="center" - maxDisplayedLines="1" - horizontalCenter="0" verticalCenter="1" verticalAlign="middle" - left="10" right="10" top="2" bottom="2"> - </s:Label> - -</s:Skin> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/.actionScriptProperties ---------------------------------------------------------------------- diff --git a/flex-installer/common/.actionScriptProperties b/flex-installer/common/.actionScriptProperties new file mode 100644 index 0000000..660d9e3 --- /dev/null +++ b/flex-installer/common/.actionScriptProperties @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<actionScriptProperties analytics="false" mainApplicationPath="ApacheFlexToolsCommon.as" projectUUID="cb0d0d00-59b0-4a30-8cdd-2d822f7fabd0" version="11"> + <compiler additionalCompilerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFiles="false" flexSDK="Apache Flex 4.10.0 FP 11.8 AIR 3.8 en_US" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" useFlashSDK="false" verifyDigests="true" warn="true"> + <compilerSourcePath/> + <libraryPath defaultLinkType="0"> + <libraryPathEntry kind="4" path=""> + <excludedEntries> + <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/> + <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/> + </excludedEntries> + </libraryPathEntry> + </libraryPath> + <sourceAttachmentPath/> + </compiler> + <applications> + <application path="ApacheFlexToolsCommon.as"/> + </applications> + <modules/> + <workers/> + <buildCSSFiles/> + <flashCatalyst validateFlashCatalystCompatibility="false"/> +</actionScriptProperties> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/.flexLibProperties ---------------------------------------------------------------------- diff --git a/flex-installer/common/.flexLibProperties b/flex-installer/common/.flexLibProperties new file mode 100644 index 0000000..3967c3e --- /dev/null +++ b/flex-installer/common/.flexLibProperties @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<flexLibProperties includeAllClasses="true" useMultiPlatformConfig="false" version="3"> + <includeClasses/> + <includeResources/> + <namespaceManifests/> +</flexLibProperties> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/.project ---------------------------------------------------------------------- diff --git a/flex-installer/common/.project b/flex-installer/common/.project new file mode 100644 index 0000000..ec59660 --- /dev/null +++ b/flex-installer/common/.project @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>common</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>com.adobe.flexbuilder.project.flexbuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>com.adobe.flexbuilder.project.flexlibnature</nature> + <nature>com.adobe.flexbuilder.project.actionscriptnature</nature> + </natures> +</projectDescription> http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/.settings/org.eclipse.core.resources.prefs ---------------------------------------------------------------------- diff --git a/flex-installer/common/.settings/org.eclipse.core.resources.prefs b/flex-installer/common/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..d8345de --- /dev/null +++ b/flex-installer/common/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,3 @@ +#Mon Aug 13 11:46:04 PDT 2012 +eclipse.preferences.version=1 +encoding/<project>=utf-8 http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Bold.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Bold.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Bold.ttf new file mode 100644 index 0000000..fd79d43 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Bold.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf new file mode 100644 index 0000000..9bc8009 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-BoldItalic.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf new file mode 100644 index 0000000..21f6f84 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-ExtraBold.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf new file mode 100644 index 0000000..31cb688 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-ExtraBoldItalic.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Italic.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Italic.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Italic.ttf new file mode 100644 index 0000000..c90da48 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Italic.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Light.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Light.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Light.ttf new file mode 100644 index 0000000..0d38189 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Light.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf new file mode 100644 index 0000000..68299c4 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-LightItalic.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Regular.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Regular.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Regular.ttf new file mode 100644 index 0000000..db43334 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Regular.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Semibold.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Semibold.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Semibold.ttf new file mode 100644 index 0000000..1a7679e Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-Semibold.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf new file mode 100644 index 0000000..59b6d16 Binary files /dev/null and b/flex-installer/common/src/assets/fonts/open-sans/OpenSans-SemiboldItalic.ttf differ http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/assets/styles/ApacheFlexToolsStyle.css ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/assets/styles/ApacheFlexToolsStyle.css b/flex-installer/common/src/assets/styles/ApacheFlexToolsStyle.css new file mode 100644 index 0000000..14a268e --- /dev/null +++ b/flex-installer/common/src/assets/styles/ApacheFlexToolsStyle.css @@ -0,0 +1,80 @@ +/* + +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"; +@namespace mx "library://ns.adobe.com/flex/mx"; +@namespace st "ws.tink.spark.controls.*"; +@namespace controls "org.apache.flex.utilities.common.controls.*"; + +@font-face { + src: url("/assets/fonts/open-sans/OpenSans-LightItalic.ttf"); + fontFamily: openSansLightItalic; + advancedAntiAliasing: true; +} + +@font-face { + src: url("/assets/fonts/open-sans/OpenSans-Bold.ttf"); + fontFamily: openSansBold; + advancedAntiAliasing: true; +} + +@font-face { + src: url("/assets/fonts/open-sans/OpenSans-Semibold.ttf"); + fontFamily: openSansSemibold; + advancedAntiAliasing: true; +} + +controls|LinkButton +{ + fontWeight: normal; + fontSize: 13; + color: #6666CC; + verticalCenter: 1; + textAlign: left; + rollOverTextDecoration:underline; + text-roll-over-color: #6666CC; +} + +s|Button +{ + skinClass : ClassReference("ws.tink.spark.skins.controls.ButtonSkin"); + fontFamily : openSansSemibold; + fontSize : 14; + color : #FFFFFF; + borderColor: #DBDBDB; +} + +.browseBtnStyle +{ + chromeColor: #40b8df; +} + +.mainBtnStyle +{ + chromeColor: #679d13; +} + +.negativeBtnStyle +{ + chromeColor: #B20E13; +} + +.genericBtnStyle +{ + chromeColor: #7b7b7b; +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/org/apache/flex/utilities/common/Constants.as ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/org/apache/flex/utilities/common/Constants.as b/flex-installer/common/src/org/apache/flex/utilities/common/Constants.as new file mode 100644 index 0000000..062ecd4 --- /dev/null +++ b/flex-installer/common/src/org/apache/flex/utilities/common/Constants.as @@ -0,0 +1,88 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// + +package org.apache.flex.utilities.common +{ + +public class Constants +{ + + //-------------------------------------------------------------------------- + // + // Class Constants + // + //-------------------------------------------------------------------------- + + public static const APACHE_FLEX_URL:String = "http://flex.apache.org/"; + + public static const ARCHIVE_EXTENSION_MAC:String = ".tar.gz"; + public static const ARCHIVE_EXTENSION_WIN:String = ".zip"; + + public static const APPLICATION_EXTENSION_MAC:String = ".dmg"; + public static const APPLICATION_EXTENSION_WIN:String = ".exe"; + public static const APPLICATION_EXTENSION_LINUX:String = ".deb"; + + public static const CONFIG_XML_NAME:String = "installer/sdk-installer-config-4.0.xml"; + public static const DISCLAIMER_PATH:String = "about-binaries.html"; + public static const INSTALLER_TRACK_SUCCESS:String = "track-installer.html"; + public static const INSTALLER_TRACK_FAILURE:String = "track-installer.html?failure=true"; + + + public static const SDK_BINARY_FILE_NAME_PREFIX:String = "apache-flex-sdk-"; + + public static const URL_PREFIX:String = "http://"; + public static const FILE_PREFIX:String = "file://"; + public static const HTTPS_PREFIX:String = "https://"; + + public static const SOURCEFORGE_DL_URL:String = ".dl.sourceforge.net/project/"; + public static const SOURCEFORGE_DOWNLOAD_URL:String = "http://downloads.sourceforge.net/project/" + + ""; + + //-------------------------------------------------------------------------- + // + // Class properties + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // instance + //---------------------------------- + + private static var _instance:Constants; + + public static function get instance():Constants + { + if (!_instance) + _instance = new Constants(new SE()); + + return _instance; + } + + //-------------------------------------------------------------------------- + // + // Constructor + // + //-------------------------------------------------------------------------- + + public function Constants(se:SE) {} + +} +} + +class SE {} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/org/apache/flex/utilities/common/InternetUtil.as ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/org/apache/flex/utilities/common/InternetUtil.as b/flex-installer/common/src/org/apache/flex/utilities/common/InternetUtil.as new file mode 100644 index 0000000..86d0ee6 --- /dev/null +++ b/flex-installer/common/src/org/apache/flex/utilities/common/InternetUtil.as @@ -0,0 +1,178 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// + +package org.apache.flex.utilities.common +{ + +import flash.events.Event; +import flash.events.IOErrorEvent; +import flash.net.URLLoader; +import flash.net.URLLoaderDataFormat; +import flash.net.URLRequest; + +public class InternetUtil +{ + + //-------------------------------------------------------------------------- + // + // Class properties + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // instance + //---------------------------------- + + private static var _instance:InternetUtil; + + public static function get instance():InternetUtil + { + if (!_instance) + _instance = new InternetUtil(new SE()); + + return _instance; + } + + //-------------------------------------------------------------------------- + // + // Class methods + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // getTLDFromURL + //---------------------------------- + + public static function getTLDFromURL(url:String):String + { + var array:Array; + + var result:String = url; + + if (result.indexOf(Constants.URL_PREFIX) > -1) + result = result.split("/")[2]; + + array = result.split("."); + array.shift(); + + return array.join("."); + } + + //-------------------------------------------------------------------------- + // + // Constructor + // + //-------------------------------------------------------------------------- + + public function InternetUtil(se:SE) {} + + //-------------------------------------------------------------------------- + // + // Variables + // + //-------------------------------------------------------------------------- + + private var _callback:Function; + + private var _urlLoader:URLLoader; + + //-------------------------------------------------------------------------- + // + // Properties + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // errorMessage + //---------------------------------- + + private var _errorMessage:String = ""; + + public function get errorMessage():String + { + return _errorMessage; + } + + //---------------------------------- + // errorOccurred + //---------------------------------- + + private var _errorOccurred:Boolean; + + public function get errorOccurred():Boolean + { + return _errorOccurred; + } + + //---------------------------------- + // result + //---------------------------------- + + private var _result:String; + + public function get result():String + { + return _result; + } + + //-------------------------------------------------------------------------- + // + // Methods + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // fetchResultHandler + //---------------------------------- + + private function fetchResultHandler(event:Event):void + { + _errorOccurred = event is IOErrorEvent; + + if (!_errorOccurred) + _result = _urlLoader.data; + else + _errorMessage = String(IOErrorEvent(event).text); + + _callback(); + } + + //---------------------------------- + // fetch + //---------------------------------- + + public function fetch(fetchURL:String, fetchCompleteHandler:Function, args:String = null):void + { + _callback = fetchCompleteHandler; + + _errorMessage = ""; + _errorOccurred = false; + _result = ""; + + _urlLoader = new URLLoader(); + _urlLoader.dataFormat = URLLoaderDataFormat.TEXT; + _urlLoader.addEventListener(Event.COMPLETE, fetchResultHandler); + _urlLoader.addEventListener(IOErrorEvent.IO_ERROR, fetchResultHandler); + _urlLoader.load(new URLRequest(fetchURL + ((args) ? "?" + args : ""))); + } + +} +} + +class SE {} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/org/apache/flex/utilities/common/MirrorURLUtil.as ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/org/apache/flex/utilities/common/MirrorURLUtil.as b/flex-installer/common/src/org/apache/flex/utilities/common/MirrorURLUtil.as new file mode 100644 index 0000000..7b934ba --- /dev/null +++ b/flex-installer/common/src/org/apache/flex/utilities/common/MirrorURLUtil.as @@ -0,0 +1,222 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// + +package org.apache.flex.utilities.common +{ + +import mx.collections.ArrayCollection; + +import org.apache.flex.utilities.common.vo.LogMessagesVO; +import org.apache.flex.utilities.common.interfaces.ILog; + +public class MirrorURLUtil implements ILog +{ + + //-------------------------------------------------------------------------- + // + // Class properties + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // instance + //---------------------------------- + + private static var _instance:MirrorURLUtil; + + public static function get instance():MirrorURLUtil + { + if (!_instance) + _instance = new MirrorURLUtil(new SE()); + + return _instance; + } + + //-------------------------------------------------------------------------- + // + // Constructor + // + //-------------------------------------------------------------------------- + + public function MirrorURLUtil(se:SE) + { + _internetUtil = InternetUtil.instance; + } + + //-------------------------------------------------------------------------- + // + // Constants + // + //-------------------------------------------------------------------------- + + private const ACTION:String = "action"; + private const ERROR:String = "error"; + private const SUCCESS:String = "success"; + + //-------------------------------------------------------------------------- + // + // Variables + // + //-------------------------------------------------------------------------- + + private var _callback:Function; + private var _internetUtil:InternetUtil; + private var _mirrorFetchStep:String; + private var _userCountryCode:String; + + //-------------------------------------------------------------------------- + // + // Properties + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // errorOccurred + //---------------------------------- + + private var _errorOccurred:Boolean; + + public function get errorOccurred():Boolean + { + return _errorOccurred; + } + + //---------------------------------- + // log + //---------------------------------- + + private var _log:ArrayCollection; + + public function get log():ArrayCollection + { + return _log; + } + + //---------------------------------- + // logMessages + //---------------------------------- + + private var _logMessages:LogMessagesVO; + + public function get logMessages():LogMessagesVO + { + return _logMessages; + } + + public function set logMessages(value:LogMessagesVO):void + { + _logMessages = value; + } + + //---------------------------------- + // mirrorURL + //---------------------------------- + + private var _mirrorURL:String; + + public function get mirrorURL():String + { + return _mirrorURL; + } + + //-------------------------------------------------------------------------- + // + // Methods + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // addLogItem + //---------------------------------- + + private function addLogItem(messageType:String):void + { + if (_logMessages) + { + switch (messageType) + { + case ACTION : + { + _log.addItem(_logMessages.action); + + break; + } + + case ERROR : + { + _log.addItem(_logMessages.error); + + break; + } + + case SUCCESS : + { + _log.addItem(_logMessages.success); + + break; + } + } + } + } + + //---------------------------------- + // fetchMirrorFromCGIResult + //---------------------------------- + + private function fetchMirrorFromCGIResult():void + { + _errorOccurred = _internetUtil.errorOccurred; + + if (!_errorOccurred) + { + addLogItem(SUCCESS); + + var result:String = _internetUtil.result; + + _mirrorURL = (result.search("<p>") != -1) ? + result.substring(3, result.length - 4) : + result; + } + else + { + addLogItem(ERROR); + } + + _callback(); + } + + //---------------------------------- + // getMirrorURL + //---------------------------------- + + public function getMirrorURL(fetchURL:String, callback:Function):void + { + _callback = callback; + + _log = new ArrayCollection(); + + //_log.addItem(ACTION); + + _internetUtil.fetch(fetchURL, fetchMirrorFromCGIResult); + } + +} +} + +class SE {} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/org/apache/flex/utilities/common/Tools.as ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/org/apache/flex/utilities/common/Tools.as b/flex-installer/common/src/org/apache/flex/utilities/common/Tools.as new file mode 100644 index 0000000..7dc7d00 --- /dev/null +++ b/flex-installer/common/src/org/apache/flex/utilities/common/Tools.as @@ -0,0 +1,95 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// + +package org.apache.flex.utilities.common +{ + +import flash.system.Capabilities; + +import mx.controls.Alert; + +public class Tools +{ + + //-------------------------------------------------------------------------- + // + // Class constants + // + //-------------------------------------------------------------------------- + + private static const PLATFORM_MAC:String = "Mac"; + private static const PLATFORM_WIN:String = "Windows"; + private static const PLATFORM_LINUX:String = "Linux"; + + //-------------------------------------------------------------------------- + // + // Class properties + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // instance + //---------------------------------- + + private static var _instance:Tools; + + public static function get instance():Tools + { + if (!_instance) + _instance = new Tools(new SE()); + + return _instance; + } + + //-------------------------------------------------------------------------- + // + // Class methods + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // warnPlatformNotSupported + //---------------------------------- + + public static function getApplicationExtension():String + { + var platform:String = Capabilities.os.split(" ")[0]; + + if (platform == PLATFORM_WIN) + return Constants.APPLICATION_EXTENSION_WIN; + else if (platform == PLATFORM_MAC) + return Constants.APPLICATION_EXTENSION_MAC; + else if (platform == PLATFORM_LINUX) + return Constants.APPLICATION_EXTENSION_LINUX; + else + throw(new Error("PlatformNotSupported")); + } + + //-------------------------------------------------------------------------- + // + // Constructor + // + //-------------------------------------------------------------------------- + + public function Tools(se:SE) {} + +} +} + +class SE {} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/org/apache/flex/utilities/common/controls/LinkButton.as ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/org/apache/flex/utilities/common/controls/LinkButton.as b/flex-installer/common/src/org/apache/flex/utilities/common/controls/LinkButton.as new file mode 100644 index 0000000..2642b88 --- /dev/null +++ b/flex-installer/common/src/org/apache/flex/utilities/common/controls/LinkButton.as @@ -0,0 +1,58 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// + +package org.apache.flex.utilities.common.controls +{ + import flash.events.MouseEvent; + + import spark.components.Label; + + + [Style(name="rollOverTextDecoration", type="String", enumeration="none,underline", inherit="yes")] + public class LinkButton extends Label + { + private var _textDecoration:String; + + override public function initialize():void + { + super.initialize(); + setStyles(); + } + + protected function setStyles():void + { + this.buttonMode=true; + this.addEventListener(MouseEvent.ROLL_OVER,handleRollOver); + this.addEventListener(MouseEvent.ROLL_OUT,handleRollOut); + } + + protected function handleRollOver(e:MouseEvent):void + { + _textDecoration=getStyle("textDecoration"); + this.setStyle('textDecoration',getStyle("rollOverTextDecoration")); + } + + protected function handleRollOut(e:MouseEvent):void + { + this.clearStyle('textDecoration'); + this.setStyle('textDecoration',_textDecoration); + } + + } +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/org/apache/flex/utilities/common/interfaces/ILog.as ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/org/apache/flex/utilities/common/interfaces/ILog.as b/flex-installer/common/src/org/apache/flex/utilities/common/interfaces/ILog.as new file mode 100644 index 0000000..370f029 --- /dev/null +++ b/flex-installer/common/src/org/apache/flex/utilities/common/interfaces/ILog.as @@ -0,0 +1,34 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// + +package org.apache.flex.utilities.common.interfaces +{ + +import mx.collections.ArrayCollection; + +import org.apache.flex.utilities.common.vo.LogMessagesVO; + +public interface ILog +{ + function get log():ArrayCollection; + + function get logMessages():LogMessagesVO; + function set logMessages(value:LogMessagesVO):void; +} +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/org/apache/flex/utilities/common/vo/LogMessagesVO.as ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/org/apache/flex/utilities/common/vo/LogMessagesVO.as b/flex-installer/common/src/org/apache/flex/utilities/common/vo/LogMessagesVO.as new file mode 100644 index 0000000..c1d76a4 --- /dev/null +++ b/flex-installer/common/src/org/apache/flex/utilities/common/vo/LogMessagesVO.as @@ -0,0 +1,82 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// 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. +// +//////////////////////////////////////////////////////////////////////////////// + +package org.apache.flex.utilities.common.vo +{ + +public final class LogMessagesVO +{ + + //-------------------------------------------------------------------------- + // + // Constructor + // + //-------------------------------------------------------------------------- + + public function LogMessagesVO(action:String, success:String, error:String) + { + _action = action; + _success = success; + _error = error; + } + + //-------------------------------------------------------------------------- + // + // Properties + // + //-------------------------------------------------------------------------- + + //---------------------------------- + // action + //---------------------------------- + + private var _action:String; + + public function get action():String + + { + return _action; + } + + //---------------------------------- + // success + //---------------------------------- + + private var _success:String; + + public function get success():String + + { + return _success; + } + + //---------------------------------- + // error + //---------------------------------- + + private var _error:String; + + public function get error():String + + { + return _error; + } + +} +} http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/a89ead81/flex-installer/common/src/ws/tink/spark/skins/controls/ButtonSkin.mxml ---------------------------------------------------------------------- diff --git a/flex-installer/common/src/ws/tink/spark/skins/controls/ButtonSkin.mxml b/flex-installer/common/src/ws/tink/spark/skins/controls/ButtonSkin.mxml new file mode 100644 index 0000000..829cead --- /dev/null +++ b/flex-installer/common/src/ws/tink/spark/skins/controls/ButtonSkin.mxml @@ -0,0 +1,141 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + +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. + +--> +<s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009" + xmlns:s="library://ns.adobe.com/flex/spark" + xmlns:fb="http://ns.adobe.com/flashbuilder/2009" + minWidth="21" minHeight="21" + alpha.disabled="0.5"> + + <fx:Metadata> + <![CDATA[ + /** + * @copy spark.skins.spark.ApplicationSkin#hostComponent + */ + [HostComponent("spark.components.Button")] + ]]> + </fx:Metadata> + + <fx:Script fb:purpose="styling"> + <![CDATA[ + + /** + * @private + */ + override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number) : void + { + fillColor.color = getStyle( "chromeColor"); + + var cr:Number = getStyle("cornerRadius"); + + if (cornerRadius != cr) + { + cornerRadius = cr; + border.radiusX = border.radiusY = cornerRadius; + fill.radiusX = fill.radiusY = cornerRadius - 1; +// +// lowlight.radiusX = cornerRadius; +// highlight.radiusX = cornerRadius; +// border.radiusX = cornerRadius; + } + if( highlight ) highlight.radiusX = highlight.radiusY = cornerRadius - 1; + if( downHighlight ) downHighlight.radiusX = downHighlight.radiusY = cornerRadius - 1; +// if( downHighlight ) downHighlight.radiusX = downHighlight.radiusY = cornerRadius - 1; + +// if (highlightStroke) highlightStroke.radiusX = cornerRadius; +// if (hldownstroke1) hldownstroke1.radiusX = cornerRadius; +// if (hldownstroke2) hldownstroke2.radiusX = cornerRadius; + + super.updateDisplayList(unscaledWidth, unscaledHeight); + } + + private var cornerRadius:Number = 2; + + ]]> + </fx:Script> + + <!-- states --> + <s:states> + <s:State name="up" /> + <s:State name="over" /> + <s:State name="down" /> + <s:State name="disabled" /> + </s:states> + + <s:filters> + <s:DropShadowFilter blurX="3" blurY="3" strength="1" angle="90" distance="1" + color="0x000000" alpha="0.34"/> + <s:DropShadowFilter blurX="0" blurY="0" strength="0.5" angle="137" distance="1" + color="0x000000" alpha="0.14" inner="true"/> + </s:filters> + + + <!-- border --> + <!--- @private --> + <s:Rect id="border" left="0" right="0" top="0" bottom="0" + radiusX="3" radiusY="3"> + <s:fill> + <s:SolidColor color.over="0xFFFFFF" color.down="0xFFFFFF" + color="{getStyle( 'borderColor' )}"/> + </s:fill> + </s:Rect> + + <!-- fill --> + <!--- @private --> + <s:Rect id="fill" left="1" right="1" top="1" bottom="1" + radiusX="2" radiusY="2"> + <s:fill> + <s:SolidColor id="fillColor"/> + </s:fill> + </s:Rect> + + <!-- highlight --> + <!--- @private --> + <s:Rect id="highlight" left="1" right="1" top="1" bottom="1" + radiusX="2" radiusY="2" excludeFrom="down"> + <s:fill> + <s:LinearGradient rotation="90"> + <s:GradientEntry color="0xFFFFFF" alpha="0.4" /> + <s:GradientEntry color="0xFFFFFF" alpha="0" /> + </s:LinearGradient> + </s:fill> + </s:Rect> + + <!-- downs highlight --> + <!--- @private --> + <s:Rect id="downHighlight" left="1" right="1" top="1" bottom="1" + radiusX="2" radiusY="2" includeIn="down"> + <s:fill> + <s:LinearGradient rotation="90"> + <s:GradientEntry color="0xFFFFFF" alpha="0" ratio="0.15" /> + <s:GradientEntry color="0xFFFFFF" alpha="0.4" /> + </s:LinearGradient> + </s:fill> + </s:Rect> + + <!-- layer 8: text --> + <!--- @copy spark.components.supportClasses.ButtonBase#labelDisplay --> + <s:Label id="labelDisplay" + textAlign="center" + maxDisplayedLines="1" + horizontalCenter="0" verticalCenter="1" verticalAlign="middle" + left="10" right="10" top="2" bottom="2"> + </s:Label> + +</s:Skin>
