You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/08/27 09:15:48 UTC

[1/6] git commit: [flex-utilities] [refs/heads/develop] - update release notes

Repository: flex-utilities
Updated Branches:
  refs/heads/develop 92612379a -> 2672b6161


update release notes


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/f19d78d9
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/f19d78d9
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/f19d78d9

Branch: refs/heads/develop
Commit: f19d78d940a799648a192cd40061d3c7433a162d
Parents: 9261237
Author: Justin Mclean <jm...@apache.org>
Authored: Wed Aug 27 15:32:21 2014 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Wed Aug 27 15:32:21 2014 +1000

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/RELEASE_NOTES | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/f19d78d9/TourDeFlex/TourDeFlex3/RELEASE_NOTES
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/RELEASE_NOTES b/TourDeFlex/TourDeFlex3/RELEASE_NOTES
index 0050233..9d1ef62 100644
--- a/TourDeFlex/TourDeFlex3/RELEASE_NOTES
+++ b/TourDeFlex/TourDeFlex3/RELEASE_NOTES
@@ -12,6 +12,7 @@ Changes since the version 1.0
 Bugs fixed:
 FLEX-34500 Show total number of examples in Tour De Flex UI
 FLEX-34495 Error loading source file
+FLEX-34489 Some examples are missing all source files tab
 FLEX-34488 Add favicon to TourDeFlex
 FLEX-34483 Make logo links to Apache Flex web site
 FLEX-34480 If TourDeFlex is run from an untrusted location you get an error


[3/6] git commit: [flex-utilities] [refs/heads/develop] - Look for app parameter when loading application

Posted by jm...@apache.org.
Look for app parameter when loading application


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/02c5bdbb
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/02c5bdbb
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/02c5bdbb

Branch: refs/heads/develop
Commit: 02c5bdbbc456e475a2950beaffb7c9052c4b66e8
Parents: 668810a
Author: Justin Mclean <jm...@apache.org>
Authored: Wed Aug 27 16:59:18 2014 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Wed Aug 27 16:59:18 2014 +1000

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/explorer.mxml | 66 +++++++++++++++++++++++----
 1 file changed, 57 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/02c5bdbb/TourDeFlex/TourDeFlex3/src/explorer.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/explorer.mxml b/TourDeFlex/TourDeFlex3/src/explorer.mxml
index 7a1443d..059f687 100755
--- a/TourDeFlex/TourDeFlex3/src/explorer.mxml
+++ b/TourDeFlex/TourDeFlex3/src/explorer.mxml
@@ -18,11 +18,12 @@
 
 <mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:explorer="*"
     width="100%" height="100%" pageTitle="{TITLE}"
-    initialize="init()" layout="vertical">
+    initialize="init()" creationComplete="checkParameters()" layout="vertical">
 
     <fx:Script>
         <![CDATA[
-			
+		import mx.core.FlexGlobals;
+
 		static protected const VERSION:String = "1.1";	
 		static protected const TITLE:String = "Tour De Flex Component Explorer";
 		static protected const FULL_TITLE:String = "Apache Flex™ Tour De Flex Component Explorer " + VERSION;
@@ -41,15 +42,27 @@
             compLibTree.dataProvider = explorerTree;
 			
 			noExamples = (explorerTree..node.(hasOwnProperty("@app") && @app.length() > 0)).length();
-		}			
+		}
+		
+		protected function checkParameters():void
+		{		
+			var parameters:Object = FlexGlobals.topLevelApplication.parameters;
+			
+			if (parameters.hasOwnProperty("app")) {
+				var application:String = parameters.app;
+				var source:String = explorerTree..node.(hasOwnProperty("@app") && @app == application).@src;
+				loadApp(application, source);
+				openNode(application);
+			}			
+		}
 
         private function treeChanged(event:Event):void
         {
             var nodeApp:String = compLibTree.selectedItem.@app;
+			
             if (nodeApp != null && nodeApp != "")
             {
-                swfLoader.loadApp(nodeApp + ".swf");
-                vs.loadSource(nodeApp, compLibTree.selectedItem.@src);
+				loadApp(nodeApp, compLibTree.selectedItem.@src);
             }
             else
             {
@@ -57,11 +70,46 @@
             }
         }
 			
-		private function gotoHome(event:Event):void {
+		private function loadApp(application:String, source:String):void
+		{
+			swfLoader.loadApp(application + ".swf");
+            vs.loadSource(application, source);
+		}
+			
+		private function gotoHome(event:Event):void
+		{
 			var urlRequest:URLRequest = new URLRequest("http://flex.apache.org/download-tourdeflex.html");
 			navigateToURL(urlRequest);
-		}		
-        ]]>
+		}	
+		
+		private function openNode(application:String):void
+		{
+			var node:XML = explorerTree..node.(hasOwnProperty("@app") && @app == application)[0];
+			var parent:XML;
+			var nodes:Array = [];
+			 
+			if (!node) {
+				return;
+			}
+			
+			parent = node.parent();
+			 
+			while (parent != null) {
+			    if (!compLibTree.isItemOpen(parent)) {
+			        nodes.push(parent);
+			    }
+			    parent = parent.parent();
+			}
+			 
+			for each (var expand:XML in nodes) {
+			    compLibTree.expandItem(expand, true);
+			}
+			 
+			compLibTree.selectedIndex = compLibTree.getItemIndex(node);
+			compLibTree.scrollToIndex(explorerTree.selectedIndex);
+		}
+	
+		]]>
     </fx:Script>
 
 	<fx:Declarations>
@@ -89,4 +137,4 @@
 	<mx:HBox width="100%">
 		<mx:Label fontSize="9" width="100%" text="Copyright © 2014 The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache Flex is trademark of The Apache Software Foundation." />
 	</mx:HBox>
-</mx:Application>
+</mx:Application>
\ No newline at end of file


[6/6] git commit: [flex-utilities] [refs/heads/develop] - update release notes

Posted by jm...@apache.org.
update release notes


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/2672b616
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/2672b616
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/2672b616

Branch: refs/heads/develop
Commit: 2672b616124224ac04ba52011c5cc818e40de55a
Parents: 7ce2575
Author: Justin Mclean <jm...@apache.org>
Authored: Wed Aug 27 17:15:28 2014 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Wed Aug 27 17:15:28 2014 +1000

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/RELEASE_NOTES | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2672b616/TourDeFlex/TourDeFlex3/RELEASE_NOTES
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/RELEASE_NOTES b/TourDeFlex/TourDeFlex3/RELEASE_NOTES
index 9d1ef62..5cd2ce9 100644
--- a/TourDeFlex/TourDeFlex3/RELEASE_NOTES
+++ b/TourDeFlex/TourDeFlex3/RELEASE_NOTES
@@ -5,16 +5,23 @@ Apache Flex Tour De Flex Component Explorer 1.1
 Changes since the version 1.0
 - Update READE and RELEASE_NOTES
 - Added some Apache Flex specific examples
+- Added button to copy code in source tab
+- Added button to link to github example
+- Added button to copy link to example
 - Improved build file ant task descriptions
-- Removed broken view source URL
-- Fixed a few minor issues
+- Removed broken view source URLs
+- Fixed a few other minor issues
+- Now contains over 300 examples!
 
-Bugs fixed:
+Bugs fixed and improvements:
+FLEX-34502 Add link to github in TourDeFlex
 FLEX-34500 Show total number of examples in Tour De Flex UI
 FLEX-34495 Error loading source file
+FLEX-34492 Need ability to link to examples
 FLEX-34489 Some examples are missing all source files tab
 FLEX-34488 Add favicon to TourDeFlex
 FLEX-34483 Make logo links to Apache Flex web site
+FLEX-34482 Add copy button to copy code examples to clipboard
 FLEX-34480 If TourDeFlex is run from an untrusted location you get an error
 FLEX-34479 Change naming format of TourDeFlex
 FLEX-34474 TourDeFlex effects example bad styles and modifying default destination scaling


[2/6] git commit: [flex-utilities] [refs/heads/develop] - fix names of nodes

Posted by jm...@apache.org.
fix names of nodes


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/668810aa
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/668810aa
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/668810aa

Branch: refs/heads/develop
Commit: 668810aad9fb797dadb6ab418f2e3a59ae07e7cb
Parents: f19d78d
Author: Justin Mclean <jm...@apache.org>
Authored: Wed Aug 27 16:58:29 2014 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Wed Aug 27 16:58:29 2014 +1000

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/explorer.xml | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/668810aa/TourDeFlex/TourDeFlex3/src/explorer.xml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/explorer.xml b/TourDeFlex/TourDeFlex3/src/explorer.xml
index 8506b29..9a2c9bd 100755
--- a/TourDeFlex/TourDeFlex3/src/explorer.xml
+++ b/TourDeFlex/TourDeFlex3/src/explorer.xml
@@ -445,32 +445,32 @@
 			</node>
 			<node label="Apache Flex 4.9" app="apache/ApacheFlex4_9_0">
 				<!--  Add more examples here -->
-				<compile-mxml label="PostCodeFormatter" app="apache/formatters/PostCodeFormatterExample"/>
-				<compile-mxml label="PostCodeValidator" app="apache/validators/PostCodeValidatorExample"/>
-				<compile-mxml label="New SDK locales" app="apache/i18n/LocaleExample"/>
+				<node label="PostCodeFormatter" app="apache/formatters/PostCodeFormatterExample"/>
+				<node label="PostCodeValidator" app="apache/validators/PostCodeValidatorExample"/>
+				<node label="New SDK locales" app="apache/i18n/LocaleExample"/>
 			</node>
 			<node label="Apache Flex 4.10" app="apache/ApacheFlex4_10_0">
 				<!--  Add more examples here -->
-				<compile-mxml label="International Dates" app="apache/i18n/DateExample"/>
-				<compile-mxml label="Millisecond Formatting" app="apache/i18n/MillisecondExample"/>
-				<compile-mxml label="NumberStepper" app="apache/i18n/NumericStepperExample"/>
-				<compile-mxml label="Scientific Notation Formatting" app="apache/i18n/ScientificExample"/>
-				<compile-mxml label="Timezone Formatting" app="apache/i18n/TimezoneExample"/>
+				<node label="International Dates" app="apache/i18n/DateExample"/>
+				<node label="Millisecond Formatting" app="apache/i18n/MillisecondExample"/>
+				<node label="NumberStepper" app="apache/i18n/NumericStepperExample"/>
+				<node label="Scientific Notation Formatting" app="apache/i18n/ScientificExample"/>
+				<node label="Timezone Formatting" app="apache/i18n/TimezoneExample"/>
 			</node>
 			<node label="Apache Flex 4.11" app="apache/ApacheFlex4_11_0">
 				<!--  Add more examples here -->
-				<compile-mxml label="Callout" app="apache/containers/CalloutExample"/>
+				<node label="Callout" app="apache/containers/CalloutExample"/>
 			</node>
 			<node label="Apache Flex 4.12" app="apache/ApacheFlex4_12_1">
 				<!--  Add more examples here -->
-				<compile-mxml label="MaskedTextInput" app="apache/controls/MaskedTextInputExample"/>
+				<node label="MaskedTextInput" app="apache/controls/MaskedTextInputExample"/>
 			</node>
 			<node label="Apache Flex 4.13" app="apache/ApacheFlex4_13_0">
 				<!--  Add examples here -->
 			</node>
 			<!-- Add when Flex 4.14 is released
 			<node label="Apache Flex 4.14" app="apache/ApacheFlex4_14_0">
-				<compile-mxml label="MaskedTextInput" app="apache/controls/SparkRichTextEditorExample"/>
+				<node label="MaskedTextInput" app="apache/controls/SparkRichTextEditorExample"/>
 			</node> 
 			 -->
 		</node>


[5/6] git commit: [flex-utilities] [refs/heads/develop] - set application in source tab needed for FLEX-34492

Posted by jm...@apache.org.
set application in source tab needed for FLEX-34492


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/7ce2575f
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/7ce2575f
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/7ce2575f

Branch: refs/heads/develop
Commit: 7ce2575fc735af82c32ee2cfc8264de859fa83ae
Parents: ca30f44
Author: Justin Mclean <jm...@apache.org>
Authored: Wed Aug 27 17:01:21 2014 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Wed Aug 27 17:01:21 2014 +1000

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/viewsource.mxml | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/7ce2575f/TourDeFlex/TourDeFlex3/src/viewsource.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/viewsource.mxml b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
index dbf83bf..d4d436a 100755
--- a/TourDeFlex/TourDeFlex3/src/viewsource.mxml
+++ b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
@@ -46,6 +46,7 @@
 						tabs[i] = new SourceTab();
 						tn.addChild(tabs[i]);
 						tabs[i].source = files[i];
+						tabs[i].app = appUrl;
     	    		}
 				}
 			}


[4/6] git commit: [flex-utilities] [refs/heads/develop] - Added buttons to copy code, copy link to code and goto github (FLEX-34502, FLEX-34492 and FLEX-34482)

Posted by jm...@apache.org.
Added buttons to copy code, copy link to code and goto github (FLEX-34502, FLEX-34492 and FLEX-34482)


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/ca30f444
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/ca30f444
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/ca30f444

Branch: refs/heads/develop
Commit: ca30f4442113e04498b20fd491d13293bc874c08
Parents: 02c5bdb
Author: Justin Mclean <jm...@apache.org>
Authored: Wed Aug 27 17:00:39 2014 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Wed Aug 27 17:00:39 2014 +1000

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/SourceTab.mxml | 30 ++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/ca30f444/TourDeFlex/TourDeFlex3/src/SourceTab.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/SourceTab.mxml b/TourDeFlex/TourDeFlex3/src/SourceTab.mxml
index b9450cf..c9d8f7c 100755
--- a/TourDeFlex/TourDeFlex3/src/SourceTab.mxml
+++ b/TourDeFlex/TourDeFlex3/src/SourceTab.mxml
@@ -26,6 +26,8 @@
         import mx.rpc.events.FaultEvent;
         import mx.controls.Alert;
 
+		public var app:String;
+			
         public function set source(file:String):void
         {
             label = file.substring(file.lastIndexOf("/")+1);
@@ -46,6 +48,25 @@
         {
             Alert.show("Error loading source file");
         }
+			
+		private function copyCode():void
+        {
+        	System.setClipboard(ta.text);
+        }
+		
+		private function copyLink():void
+        {
+			var linkText:String = "http://flex.apache.org/tourdeflex/?app=" + app;
+			
+        	System.setClipboard(linkText);
+        }
+			
+		private function viewInGitHub():void
+		{
+			var gitHubLink:String = "https://github.com/apache/flex-utilities/tree/master/TourDeFlex/TourDeFlex3/src/" + srv.url;
+			var urlRequest:URLRequest = new URLRequest(gitHubLink);
+			navigateToURL(urlRequest, "_blank");
+		}
 
         ]]>
     </fx:Script>
@@ -54,6 +75,11 @@
     	<mx:HTTPService id="srv" useProxy="false" resultFormat="text" result="resultHandler(event)" fault="faultHandler(event)"/>
 	</fx:Declarations>
 	
-    <mx:TextArea id= "ta" color="#0000A0" fontFamily="Courier" editable="false" wordWrap="false" width="100%" height="100%"/>
-
+    <mx:TextArea id="ta" color="#0000A0" fontFamily="Courier" editable="false" wordWrap="false" width="100%" height="100%"/>
+	<mx:HBox width="100%">
+		<mx:Spacer width="100%" />
+		<mx:Button label="Copy" click="copyCode()" />
+		<mx:Button label="Copy Link" click="copyLink()" />
+		<mx:Button label="GitHub" click="viewInGitHub()" />
+	</mx:HBox>
 </mx:VBox>
\ No newline at end of file