You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ft...@apache.org on 2012/11/26 01:45:16 UTC

svn commit: r1413456 - in /incubator/flex/whiteboard/fthomas/developerToolSuite/trunk: org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/ org.apache.flex.utilities.developerToolSuite.standa...

Author: fthomas
Date: Mon Nov 26 00:45:15 2012
New Revision: 1413456

URL: http://svn.apache.org/viewvc?rev=1413456&view=rev
Log:
A bit of code cleaning

Added:
    incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml
      - copied, changed from r1413454, incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/WindowedApplicationSkin.mxml
Removed:
    incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/WindowedApplicationSkin.mxml
Modified:
    incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml
    incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css

Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml?rev=1413456&r1=1413455&r2=1413456&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.host-swf/src/main/flex/org/apache/flex/utilities/developerToolSuite/MainApplication.mxml Mon Nov 26 00:45:15 2012
@@ -18,7 +18,6 @@ limitations under the License.
 <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
-                       xmlns:component="org.apache.flex.utilities.developerToolSuite.component.sample.*" xmlns:local="*"
                        title="Apache Flex Developer Tool Suite">
 
     <fx:Declarations>
@@ -34,19 +33,13 @@ limitations under the License.
     </s:layout>
 
     <s:DropDownList id="localeComboBox"
-                dataProvider="{new ArrayCollection(LocaleUtil.AVAILABLE_LANGUAGES)}"
-                change="onChangeLocale(event)"
-                selectedItem="{LocaleUtil.getOSLanguage()}"/>
+                    dataProvider="{new ArrayCollection(LocaleUtil.AVAILABLE_LANGUAGES)}"
+                    change="resourceManager.localeChain = LocaleUtil.getOrderedLocalChain(localeComboBox.selectedItem.data)"
+                    selectedItem="{LocaleUtil.getOSLanguage()}"/>
 
     <s:Label text="{resourceManager.getString('Application','Hello')}"/>
 
     <fx:Script><![CDATA[
         import mx.collections.ArrayCollection;
-
-        private function onChangeLocale(event:Event):void {
-            if (localeComboBox.selectedItem) {
-                resourceManager.localeChain = LocaleUtil.getOrderedLocalChain(localeComboBox.selectedItem.data);
-            }
-        }
         ]]></fx:Script>
 </s:WindowedApplication>

Copied: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml (from r1413454, incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/WindowedApplicationSkin.mxml)
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml?p2=incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml&p1=incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/WindowedApplicationSkin.mxml&r1=1413454&r2=1413456&rev=1413456&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/WindowedApplicationSkin.mxml (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/flex/org/apache/flex/utilities/developerToolSuite/ApplicationSkin.mxml Mon Nov 26 00:45:15 2012
@@ -21,18 +21,17 @@ limitations under the License.
  title bar, or title bar buttons.
 
  <p>You can either use  system chrome, the FlexChromSkin class, or
- the WindowedApplicationSkin class to define the appearance of
+ the ApplicationSkino define the appearance of
  the WindowedApplication and Window containers.
- To use the WindowedApplicationSkin class with the WindowedApplication container,
+ To use the ApplicatApplicationSkinWindowedApplication container,
  set <code>systemChrome</code> to "none"
  in the application's .xml file, and set the <code>skinClass</code> style to
- spark.skins.spark.WindowedApplicationSkin.
- To use the WindowedApplicationSkin class with the Window container,
+ spark.skins.spark.ApplicationSkin.ApplicationSkinnSkin class wiApplicationSkin,
  set the <code>Window.systemChrome</code> property to "none",
  and set the <code>skinClass</code> style to
- spark.skins.spark.WindowedApplicationSkin.</p>
+ spark.skins.spark.ApplicationSkin.</p>
 
- @see spark.components.WindowedApplication
+ @see sparApplicationSkinplication
 
  @langversion 3.0
  @playerversion Flash 10

Modified: incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css
URL: http://svn.apache.org/viewvc/incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css?rev=1413456&r1=1413455&r2=1413456&view=diff
==============================================================================
--- incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css (original)
+++ incubator/flex/whiteboard/fthomas/developerToolSuite/trunk/org.apache.flex.utilities.developerToolSuite.standard-theme/src/main/resources/default.css Mon Nov 26 00:45:15 2012
@@ -20,5 +20,5 @@ limitations under the License.
 
 asf|MainApplication {
     backgroundColor: #DDDDDD;
-    skinClass: ClassReference("org.apache.flex.utilities.developerToolSuite.WindowedApplicationSkin");
+    skinClass: ClassReference("org.apache.flex.utilities.developerToolSuite.ApplicationSkin");
 }