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 2016/03/30 07:13:43 UTC

[13/38] git commit: [flex-utilities] [refs/heads/master] - Add 3rd party legal warning

Add 3rd party legal warning


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

Branch: refs/heads/master
Commit: b9a5e23b1e827cd8b872d2d29314c083fcaa7795
Parents: 5661bac
Author: Justin Mclean <jm...@apache.org>
Authored: Tue Oct 28 17:20:12 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Tue Oct 28 17:20:12 2014 +1100

----------------------------------------------------------------------
 TourDeFlex/TourDeFlex3/src/3rdparty.xml       |  6 ++---
 TourDeFlex/TourDeFlex3/src/ThirdPartyTab.mxml | 31 ++++++++++++++++++++++
 TourDeFlex/TourDeFlex3/src/explorer.mxml      | 17 ++++++++----
 TourDeFlex/TourDeFlex3/src/viewsource.mxml    |  7 +++++
 4 files changed, 53 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b9a5e23b/TourDeFlex/TourDeFlex3/src/3rdparty.xml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/3rdparty.xml b/TourDeFlex/TourDeFlex3/src/3rdparty.xml
index 29f4e0c..5d85db1 100755
--- a/TourDeFlex/TourDeFlex3/src/3rdparty.xml
+++ b/TourDeFlex/TourDeFlex3/src/3rdparty.xml
@@ -19,9 +19,9 @@
 <compTree>
 	<node label="3rd Party Components">
 		<node label="Flexicious">
-			<node label="Dashboard Framework" app="http://www.flexicious.com/resources/demo/FlexiciousClassic.swf" src="" />
-			<node label="Ultimate DataGrid" app="http://www.flexicious.com/resources/demo/FlexiciousUltimate.swf" src="" />
-			<node label="Classic DataGrid" app="http://www.flexicious.com/resources/demo/FlexiciousDashboard.swf" src="" />
+			<node thirdParty="true" label="Dashboard Framework" app="http://www.flexicious.com/resources/demo/FlexiciousClassic.swf" src="" />
+			<node thirdParty="true" label="Ultimate DataGrid" app="http://www.flexicious.com/resources/demo/FlexiciousUltimate.swf" src="" />
+			<node thirdParty="true" label="Classic DataGrid" app="http://www.flexicious.com/resources/demo/FlexiciousDashboard.swf" src="" />
 		</node>
 	</node>
 </compTree>

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b9a5e23b/TourDeFlex/TourDeFlex3/src/ThirdPartyTab.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/ThirdPartyTab.mxml b/TourDeFlex/TourDeFlex3/src/ThirdPartyTab.mxml
new file mode 100644
index 0000000..a4809f9
--- /dev/null
+++ b/TourDeFlex/TourDeFlex3/src/ThirdPartyTab.mxml
@@ -0,0 +1,31 @@
+<?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.
+  -->
+
+<mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009"
+		 xmlns:mx="library://ns.adobe.com/flex/mx"
+		 xmlns:s="library://ns.adobe.com/flex/spark"
+		 label="3rd Party Example"
+		 paddingTop="10" paddingBottom="10" paddingLeft="20" paddingRight="20"
+		 borderStyle="solid"
+		 width="100%" height="100%">
+
+ 	<s:RichText width="100%" height="100%">
+		<s:p>This example or component has been developed by a 3rd party and is hosted outside of the Tour De Flex site and may contain links to non ASF sites. It's code may not be Open Source or may be under a license other than the Apache license so please check carefully before using it. Neither the ASF or the Apache Flex PMC can endorse or recommend using this example for legal reasons but you may still find it useful.</s:p>
+	</s:RichText>
+</mx:VBox>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b9a5e23b/TourDeFlex/TourDeFlex3/src/explorer.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/explorer.mxml b/TourDeFlex/TourDeFlex3/src/explorer.mxml
index 7e5bc3c..9cdeb2f 100755
--- a/TourDeFlex/TourDeFlex3/src/explorer.mxml
+++ b/TourDeFlex/TourDeFlex3/src/explorer.mxml
@@ -69,21 +69,23 @@
 			if (parameters.hasOwnProperty("app")) {
 				var application:String = parameters.app;
 				var source:String = explorerTree..node.(hasOwnProperty("@app") && @app == application).@src;
-				loadApp(application, source);
+				loadApp(application, source, false);
 				openNode(application);
 			}
 			else {
-				loadApp("Welcome", null);
+				loadApp("Welcome", null, false);
 			}
 		}
 
         private function treeChanged(event:Event):void
         {
             var nodeApp:String = compLibTree.selectedItem.@app;
+			var thirdParty:Boolean = compLibTree.selectedItem.hasOwnProperty("@thirdParty")
+				&& compLibTree.selectedItem.@thirdParty == "true";
 			
             if (nodeApp != null && nodeApp != "")
             {
-				loadApp(nodeApp, compLibTree.selectedItem.@src);
+				loadApp(nodeApp, compLibTree.selectedItem.@src, thirdParty);
             }
             else
             {
@@ -91,7 +93,7 @@
             }
         }
 			
-		private function loadApp(application:String, source:String):void
+		private function loadApp(application:String, source:String, thirdParty:Boolean):void
 		{
 			if (application.indexOf(".swf") > 0) {
 				swfLoader.loadApp(application);
@@ -99,7 +101,12 @@
 			else {
 				swfLoader.loadApp(application + ".swf");
 			}
-            vs.loadSource(application, source);
+			if (thirdParty) {
+				vs.thirdPartyWarning();
+			}
+			else {
+            	vs.loadSource(application, source);
+			}
 		}
 			
 		private function gotoHome(event:Event):void

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/b9a5e23b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/viewsource.mxml b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
index f72c1c2..2d9baa3 100755
--- a/TourDeFlex/TourDeFlex3/src/viewsource.mxml
+++ b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
@@ -55,6 +55,13 @@
     	    		}
 				}
 			}
+			
+						
+			public function thirdPartyWarning():void
+			{
+				tn.removeAllChildren();
+				tn.addChild(new ThirdPartyTab());
+			}
 		]]>
 	</fx:Script>