You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by cd...@apache.org on 2021/03/05 08:55:13 UTC

[royale-asjs] branch feature/distribution-allignment updated (41d561d -> c465828)

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a change to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git.


    from 41d561d  - Moved some of the goals preparing resources for the packaging from "packaging" to "prepare-resources"
     new d030999  AppWithLib: fix project and and allow fx:Array
     new 993ebe2  new methods and properties added to mx and spark emulation components
     new fb5739c  maven: fix MXRoyale exclusion in examples and archetypes since are not distribution and use maven artifact with version included
     new 7594d12  ContainerGlobals.as added
     new 6dd6e09  todo-jewel-crux: make it work with sdk distribution
     new 1efabf1  changes in slider
     new d9a98b7  URLLoaderDataFormat added in mx emulation
     new fc8a5c0  SparkRoyale: Add implementation of removeAllElements in Group
     new c465828  PrintJobOptions added in mx emulation

The 9 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/resources/archetype-resources/pom.xml |  2 +-
 .../archetype-resources/__application__/pom.xml    |  2 +-
 .../archetype-resources/__module__/pom.xml         |  2 +-
 examples/crux/CruxQuickStart/pom.xml               |  2 +-
 examples/crux/CruxQuickStartBasic/pom.xml          |  2 +-
 examples/crux/SampleLib/pom.xml                    | 15 ++++---
 .../src/main/resources/samplelib-manifest.xml      |  2 +-
 .../royale/examples/config/ServicesConfig.mxml}    | 10 ++---
 examples/crux/todomvc-jewel-crux/asconfig.json     | 14 ++++++-
 examples/crux/todomvc-jewel-crux/pom.xml           |  2 +-
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |  6 +++
 .../src/main/royale/mx/controls/PopUpButton.as     | 12 +++++-
 .../royale/mx/controls/sliderClasses/Slider.as     | 10 ++---
 .../MXRoyale/src/main/royale/mx/core/Container.as  | 12 ++++++
 .../src/main/royale/mx/core/ContainerGlobals.as}   | 27 ++++++++----
 .../URLLoaderDataFormat.as}                        | 49 ++++++++++++----------
 .../royale/mx/printing/FlexPrintJobScaleType.as    |  9 ++--
 .../src/main/royale/mx/printing/PrintJobOptions.as | 49 ++++++++++++++++++++++
 .../main/royale/spark/components/Application.as    | 17 +++++---
 .../src/main/royale/spark/components/Group.as      |  8 +++-
 20 files changed, 180 insertions(+), 72 deletions(-)
 copy examples/crux/{CruxGitHubCommitLogViewer/src/main/royale/crux/config/Services.mxml => SampleLib/src/main/royale/org/apache/royale/examples/config/ServicesConfig.mxml} (82%)
 copy frameworks/{themes/JewelTheme/src/main/royale/JewelThemeClasses.as => projects/MXRoyale/src/main/royale/mx/core/ContainerGlobals.as} (73%)
 copy frameworks/projects/MXRoyale/src/main/royale/mx/{containers/PanelTitleBar.as => net/URLLoaderDataFormat.as} (70%)
 create mode 100644 frameworks/projects/MXRoyale/src/main/royale/mx/printing/PrintJobOptions.as


[royale-asjs] 04/09: ContainerGlobals.as added

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 7594d12b0c209fd76e82eacaaa34ddc49380eecf
Author: alinakazi <al...@gmail.com>
AuthorDate: Tue Mar 2 17:59:04 2021 +0500

    ContainerGlobals.as added
---
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |  1 +
 .../src/main/royale/mx/core/ContainerGlobals.as    | 42 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 1ffbf2f..8e4f211 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -89,6 +89,7 @@ internal class MXRoyaleClasses
 	import mx.effects.Tween; Tween;
 	import mx.effects.Fade; Fade;
 	import mx.core.Container;Container;
+	import mx.core.ContainerGlobals; ContainerGlobals;
 	import mx.graphics.ImageSnapshot; ImageSnapshot;
 
 	import mx.system.ApplicationDomain; ApplicationDomain;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/ContainerGlobals.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/ContainerGlobals.as
new file mode 100644
index 0000000..8a79e1b
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/ContainerGlobals.as
@@ -0,0 +1,42 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.core
+{
+
+//import flash.display.InteractiveObject;
+import mx.core.UIComponent;
+import mx.managers.IFocusManager;
+import mx.managers.IFocusManagerContainer;
+
+/**
+*  @private
+*/
+public class ContainerGlobals
+{
+    /**
+     *  @private
+     *  Internal variable that keeps track of the container
+     *  that currently has focus.
+     */
+    public static var focusedContainer:UIComponent;
+
+}
+}
+


[royale-asjs] 07/09: URLLoaderDataFormat added in mx emulation

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit d9a98b79da20abf94e5f460c367ae3032a9b10ac
Author: alinakazi <al...@gmail.com>
AuthorDate: Thu Mar 4 17:34:04 2021 +0500

    URLLoaderDataFormat added in mx emulation
---
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |  2 +
 .../src/main/royale/mx/net/URLLoaderDataFormat.as  | 55 ++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 8e4f211..5e3d2d9 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -193,6 +193,8 @@ internal class MXRoyaleClasses
 	import mx.events.HTTPStatusEvent; HTTPStatusEvent;
 	import mx.net.FileReference; FileReference;
 	import mx.net.FileFilter; FileFilter;
+	import mx.net.URLLoaderDataFormat; URLLoaderDataFormat;
+	
 	import mx.events.ProgressEvent; ProgressEvent;
 	import mx.events.ColorPickerEvent; ColorPickerEvent;
     import mx.controls.advancedDataGridClasses.AdvancedDataGridColumnList; AdvancedDataGridColumnList;
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/net/URLLoaderDataFormat.as b/frameworks/projects/MXRoyale/src/main/royale/mx/net/URLLoaderDataFormat.as
new file mode 100644
index 0000000..ffdd833
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/net/URLLoaderDataFormat.as
@@ -0,0 +1,55 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 mx.net
+{
+	
+	
+	/**
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 * 
+	 *  @royalesuppresspublicvarwarning
+	 */
+	public class URLLoaderDataFormat extends Object
+	{
+		/**
+		 
+		 *  @langversion 3.0
+		 *  @playerversion Flash 9
+		 *  @playerversion AIR 1.1
+		 *  @productversion Flex 3
+		 */
+		public function URLLoaderDataFormat()
+		{
+			super();
+		}
+		
+		public static const BINARY:String = "binary"
+		public static const TEXT:String = "text"
+		public static const VARIABLES:String = "variables"
+
+        
+
+	}
+	
+}
\ No newline at end of file


[royale-asjs] 09/09: PrintJobOptions added in mx emulation

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit c46582858c80befd6fe1fa501dabf0faf7f6c003
Author: alinakazi <al...@gmail.com>
AuthorDate: Thu Mar 4 19:03:46 2021 +0500

    PrintJobOptions added in mx emulation
---
 .../MXRoyale/src/main/royale/MXRoyaleClasses.as    |  3 ++
 .../src/main/royale/mx/printing/PrintJobOptions.as | 49 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
index 5e3d2d9..0b16418 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/MXRoyaleClasses.as
@@ -376,6 +376,9 @@ internal class MXRoyaleClasses
 	import mx.net.URLRequestMethod; URLRequestMethod;
 	import mx.controls.ButtonLabelPlacement; ButtonLabelPlacement;
 	import mx.display.NativeMenu; NativeMenu;
+	
+	import mx.printing.PrintJobOptions; PrintJobOptions;
+
 }
 
 }
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/printing/PrintJobOptions.as b/frameworks/projects/MXRoyale/src/main/royale/mx/printing/PrintJobOptions.as
new file mode 100644
index 0000000..fff0d65
--- /dev/null
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/printing/PrintJobOptions.as
@@ -0,0 +1,49 @@
+//////////////////////////////////////////////////////////////////////////////// 
+// 
+//  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 mx.printing 
+{ 
+
+
+	/** 
+	 *   
+	 *  @langversion 3.0 
+	 *  @playerversion Flash 9 
+	 *  @playerversion AIR 1.1 
+	 *  @productversion Flex 3 
+	 *  
+	 *  @royalesuppresspublicvarwarning 
+	 */ 
+	public class PrintJobOptions extends Object
+	{ 
+		/** 
+
+		 *  @langversion 3.0 
+		 *  @playerversion Flash 9 
+		 *  @playerversion AIR 1.1 
+		 *  @productversion Flex 3 
+		 */ 
+		public function PrintJobOptions() 
+		{ 
+			super(); 
+		} 
+
+
+	} 
+
+} 


[royale-asjs] 05/09: todo-jewel-crux: make it work with sdk distribution

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 6dd6e09f542c0e6e1912ee5da596cf0a1515a342
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Wed Mar 3 19:15:39 2021 +0100

    todo-jewel-crux: make it work with sdk distribution
---
 examples/crux/todomvc-jewel-crux/asconfig.json | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/examples/crux/todomvc-jewel-crux/asconfig.json b/examples/crux/todomvc-jewel-crux/asconfig.json
index 14ab179..4453a5a 100644
--- a/examples/crux/todomvc-jewel-crux/asconfig.json
+++ b/examples/crux/todomvc-jewel-crux/asconfig.json
@@ -21,9 +21,19 @@
     "compilerOptions": {
         "debug": false,
         "targets": ["JSRoyale"],
-        "source-map": true
+        "source-map": true,
+        "library-path": [
+            "${royalelib}/libs/MXRoyale.swc"
+        ],
+        "js-library-path": [
+            "${royalelib}/js/libs/MXRoyaleJS.swc"
+        ],
+        "keep-as3-metadata": [
+            "Inject", "Dispatcher", "EventHandler", "PostConstruct", "PreDestroy", "ViewAdded", "ViewRemoved", "Bindable", "Transient"
+        ],
+        "js-default-initializers": true
     },
-    "additionalOptions": "-remove-circulars -js-output-optimization=skipAsCoercions",
+    "additionalOptions": "-compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css",
     "files":
     [
         "src/main/royale/App.mxml"


[royale-asjs] 03/09: maven: fix MXRoyale exclusion in examples and archetypes since are not distribution and use maven artifact with version included

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit fb5739c358d7f2644fad5309c247d53a48764acb
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Tue Mar 2 13:21:30 2021 +0100

    maven: fix MXRoyale exclusion in examples and archetypes since are not distribution and use maven artifact with version included
---
 .../src/main/resources/archetype-resources/pom.xml                      | 2 +-
 .../src/main/resources/archetype-resources/__application__/pom.xml      | 2 +-
 .../src/main/resources/archetype-resources/__module__/pom.xml           | 2 +-
 examples/crux/CruxQuickStart/pom.xml                                    | 2 +-
 examples/crux/CruxQuickStartBasic/pom.xml                               | 2 +-
 examples/crux/todomvc-jewel-crux/pom.xml                                | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/archetypes/royale-jewel-application-archetype/src/main/resources/archetype-resources/pom.xml b/archetypes/royale-jewel-application-archetype/src/main/resources/archetype-resources/pom.xml
index 4f63548..b425971 100644
--- a/archetypes/royale-jewel-application-archetype/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/royale-jewel-application-archetype/src/main/resources/archetype-resources/pom.xml
@@ -56,7 +56,7 @@
             -source-map=true;
 #if (${includeCrux} == 'true' || ${includeCrux} == 'yes' || ${includeCrux} == 'y')
             -js-default-initializers=true;
-            -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css;
+            -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
             -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
             -keep-code-with-metadata=Inject;
 #end
diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/pom.xml b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/pom.xml
index cabb345..d784333 100644
--- a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/pom.xml
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__application__/pom.xml
@@ -51,7 +51,7 @@
             -js-compiler-option+=--property_map_output_file gccprops.txt;
 #if (${includeCrux} == 'true' || ${includeCrux} == 'yes' || ${includeCrux} == 'y')
             -js-default-initializers=true;
-            -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css;
+            -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
             -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
             -keep-code-with-metadata=Inject;
 #end
diff --git a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__module__/pom.xml b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__module__/pom.xml
index b53ec19..3700718 100644
--- a/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__module__/pom.xml
+++ b/archetypes/royale-jewel-module-application-archetype/src/main/resources/archetype-resources/__module__/pom.xml
@@ -50,7 +50,7 @@
             -js-compiler-option+=--property_map_input_file ../../../../../${application}/target/javascript/bin/js-release/gccprops.txt
 #if (${includeCrux} == 'true' || ${includeCrux} == 'yes' || ${includeCrux} == 'y')
             -js-default-initializers=true;
-            -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css;
+            -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
             -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
             -keep-code-with-metadata=Inject;
 #end
diff --git a/examples/crux/CruxQuickStart/pom.xml b/examples/crux/CruxQuickStart/pom.xml
index 869b19b..c912b1e 100644
--- a/examples/crux/CruxQuickStart/pom.xml
+++ b/examples/crux/CruxQuickStart/pom.xml
@@ -44,7 +44,7 @@
           <additionalCompilerOptions>
             -js-default-initializers=true;
             -source-map=true;
-            -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css;
+            -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
             -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
             -keep-code-with-metadata=Inject;
           </additionalCompilerOptions>
diff --git a/examples/crux/CruxQuickStartBasic/pom.xml b/examples/crux/CruxQuickStartBasic/pom.xml
index f47da98..cb107cc 100644
--- a/examples/crux/CruxQuickStartBasic/pom.xml
+++ b/examples/crux/CruxQuickStartBasic/pom.xml
@@ -45,7 +45,7 @@
           <additionalCompilerOptions>
             -js-default-initializers=true;
             -source-map=true;
-            -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css;
+            -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
             -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
             -keep-code-with-metadata=Inject;
           </additionalCompilerOptions>
diff --git a/examples/crux/todomvc-jewel-crux/pom.xml b/examples/crux/todomvc-jewel-crux/pom.xml
index 41a1971..f87a581 100644
--- a/examples/crux/todomvc-jewel-crux/pom.xml
+++ b/examples/crux/todomvc-jewel-crux/pom.xml
@@ -47,7 +47,7 @@
             -js-default-initializers=true;
             -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
             -source-map=true;
-            -compiler.exclude-defaults-css-files=MXRoyaleJS.swc:defaults.css;
+            -compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
             
             -export-public-symbols=false
             -prevent-rename-protected-symbols=false


[royale-asjs] 06/09: changes in slider

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 1efabf1da7f264e35966c58b7b043d85e5ceb036
Author: alinakazi <al...@gmail.com>
AuthorDate: Thu Mar 4 17:33:28 2021 +0500

    changes in slider
---
 .../src/main/royale/mx/controls/sliderClasses/Slider.as        | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/sliderClasses/Slider.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/sliderClasses/Slider.as
index 5aaa621..39d2cb1 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/sliderClasses/Slider.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/sliderClasses/Slider.as
@@ -1393,17 +1393,17 @@ public class Slider extends UIComponent
      *  @playerversion AIR 1.1
      *  @productversion Flex 3
      */
-  /*  public function get value():Number
+    public function get value():Number
     {
         return _values[0];
-    }  */
+    }  
 
     /**
      *  @private
      */
-/*    public function set value(val:Number):void
+    public function set value(val:Number):void
     {
-        setValueAt(val, 0, true);
+       // setValueAt(val, 0, true);
         valuesChanged = true;
         minimumSet = true;
 
@@ -1411,7 +1411,7 @@ public class Slider extends UIComponent
         invalidateDisplayList();
 
         dispatchEvent(new FlexEvent(FlexEvent.VALUE_COMMIT));   
-    }  */
+    }  
 
     //----------------------------------
     //  values


[royale-asjs] 08/09: SparkRoyale: Add implementation of removeAllElements in Group

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit fc8a5c0eccd3f9c4da640b6009cae5feeb983f3f
Author: Piotr Zarzycki <pi...@gmail.com>
AuthorDate: Thu Mar 4 14:55:14 2021 +0100

    SparkRoyale: Add implementation of removeAllElements in Group
---
 .../SparkRoyale/src/main/royale/spark/components/Group.as         | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
index 226629f..4e8e5c4 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Group.as
@@ -24,6 +24,7 @@ import mx.core.IUIComponent;
 import spark.components.supportClasses.GroupBase;
 import mx.core.mx_internal;
 import mx.core.IVisualElement;
+    import org.apache.royale.core.IChild;
 /*
 import flash.display.BlendMode;
 import flash.display.DisplayObject;
@@ -277,7 +278,12 @@ public class Group extends GroupBase /*implements IVisualElementContainer,
    
     public function removeAllElements():void
     {
-	// not implemented
+        for (var i:int = numElements - 1; i >= 0; i--)
+        {
+            var el:IChild = getElementAt(i);
+
+            removeElement(el);
+        }
     }
 
     public function set mouseEnabledWhereTransparent(value:Boolean):void


[royale-asjs] 02/09: new methods and properties added to mx and spark emulation components

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 993ebe2936e817e53a5498d3c66b1a483cf0b6e6
Author: alinakazi <al...@gmail.com>
AuthorDate: Mon Mar 1 16:01:28 2021 +0500

    new methods and properties added to mx and spark emulation components
---
 .../MXRoyale/src/main/royale/mx/controls/PopUpButton.as | 12 ++++++++++--
 .../MXRoyale/src/main/royale/mx/core/Container.as       | 12 ++++++++++++
 .../main/royale/mx/printing/FlexPrintJobScaleType.as    |  9 ++++-----
 .../src/main/royale/spark/components/Application.as     | 17 +++++++++++------
 4 files changed, 37 insertions(+), 13 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/PopUpButton.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/PopUpButton.as
index c5075c0..96559cc 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/PopUpButton.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/PopUpButton.as
@@ -173,9 +173,17 @@ public class PopUpButton extends Button
      *  @private
      *  Greater of the arrowButtonWidth style and the icon's width.
      */
-    private var arrowButtonsWidth:Number = 0;
+    private var _arrowButtonWidth:Number = 0;
 	
-
+	public function get arrowButtonWidth():Number
+	{
+			return _arrowButtonWidth;
+	}
+	
+	public function set arrowButtonWidth(value:Number):void
+	{
+			_arrowButtonWidth = value;
+	}
     /**
      *  @private
      *  Is the popUp list currently shown?
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
index 04f8088..6ddbfc8 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/Container.as
@@ -219,6 +219,18 @@ use namespace mx_internal;
 [Style(name="backgroundAlpha", type="Number", inherit="no")]
 
 [Style(name="contentBackgroundAlpha", type="Number", inherit="yes")]
+
+/**
+ *  The alpha value for the overlay that is placed on top of the
+ *  container when it is disabled.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 9
+ *  @playerversion AIR 1.1
+ *  @productversion Flex 3
+ */
+[Style(name="disabledOverlayAlpha", type="Number", inherit="no")]
+
 /**
  * The default property uses when additional MXML content appears within an element's
  * definition in an MXML file.
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as b/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
index 4131938..b0ce3c5 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/printing/FlexPrintJobScaleType.as
@@ -51,7 +51,7 @@ public final class FlexPrintJobScaleType
 	 *  @playerversion AIR 1.1
 	 *  @productversion Royale 0.9.3
 	 */
-	//public static const FILL_PAGE:String = "fillPage";
+	public static const FILL_PAGE:String = "fillPage";
 	
 	/**
 	 *  Scales the object to fill the available page height. 
@@ -63,7 +63,7 @@ public final class FlexPrintJobScaleType
 	 *  @playerversion AIR 1.1
 	 *  @productversion Royale 0.9.3
 	 */
-	//public static const MATCH_HEIGHT:String = "matchHeight";
+	public static const MATCH_HEIGHT:String = "matchHeight";
 
 	/**
 	 *  Scales the object to fill the available page width. 
@@ -75,7 +75,7 @@ public final class FlexPrintJobScaleType
 	 *  @playerversion AIR 1.1
 	 *  @productversion Royale 0.9.3
 	 */
-	//public static const MATCH_WIDTH:String = "matchWidth";
+	public static const MATCH_WIDTH:String = "matchWidth";
 	
 	/**
 	 *  Does not scale the output. 
@@ -88,7 +88,7 @@ public final class FlexPrintJobScaleType
 	 *  @playerversion AIR 1.1
 	 *  @productversion Royale 0.9.3
 	 */
-	//public static const NONE:String = "none";
+	public static const NONE:String = "none";
 
 	/**
 	 *  Scales the object to fit on a single page, filling one dimension; 
@@ -101,7 +101,6 @@ public final class FlexPrintJobScaleType
 	 *  @productversion Royale 0.9.3
 	 */
 	public static const SHOW_ALL:String = "showAll";
-	public static const MATCH_WIDTH:String = "matchWidth";
 }
 
 }
diff --git a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
index bf7510d..90dd0b9 100644
--- a/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
+++ b/frameworks/projects/SparkRoyale/src/main/royale/spark/components/Application.as
@@ -696,16 +696,19 @@ public class Application extends SkinnableContainer implements IStrand, IParent,
      *  @playerversion AIR 1.5
      *  @productversion Flex 4
      */
-    /* public function get controlBarVisible():Boolean
+     public function get controlBarVisible():Boolean
     {
-        return (controlBarGroup)
+        /*return (controlBarGroup)
             ? controlBarGroup.visible
-            : controlBarGroupProperties.visible;
+            : controlBarGroupProperties.visible;*/
+		trace("Application::controlBarVisible not implemented")
+		
+		return true;
     } 
 
     public function set controlBarVisible(value:Boolean):void
     {
-        if (controlBarGroup)
+       /* if (controlBarGroup)
         {
             controlBarGroup.visible = value;
             controlBarGroupProperties = BitFlagUtil.update(controlBarGroupProperties as uint,
@@ -716,8 +719,10 @@ public class Application extends SkinnableContainer implements IStrand, IParent,
 
         invalidateSkinState();
         if (skin)
-            skin.invalidateSize();
-    }*/
+            skin.invalidateSize(); */
+		trace("Application::controlBarVisible not implemented")
+
+    }
 
     //--------------------------------------------------------------------------
     //


[royale-asjs] 01/09: AppWithLib: fix project and and allow fx:Array

Posted by cd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/distribution-allignment
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit d030999e84be17f89103271cc26fa231b3d3c7c3
Author: Carlos Rovira <ca...@apache.org>
AuthorDate: Sun Feb 28 17:04:40 2021 +0100

    AppWithLib: fix project and and allow fx:Array
---
 examples/crux/SampleLib/pom.xml                    | 15 ++++++++------
 .../src/main/resources/samplelib-manifest.xml      |  2 +-
 .../royale/examples/config/ServicesConfig.mxml}    | 23 +++++++++++++---------
 3 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/examples/crux/SampleLib/pom.xml b/examples/crux/SampleLib/pom.xml
index 822480f..8ab6447 100644
--- a/examples/crux/SampleLib/pom.xml
+++ b/examples/crux/SampleLib/pom.xml
@@ -27,14 +27,14 @@
     <artifactId>examples-crux</artifactId>
     <version>0.9.8-SNAPSHOT</version>
   </parent>
-  
+
   <artifactId>SampleLib</artifactId>
   <version>0.9.8-SNAPSHOT</version>
   <packaging>swc</packaging>
 
   <properties>
-    <compiler.debug>true</compiler.debug>
-    <royale.framework.version>0.9.8-SNAPSHOT</royale.framework.version>
+    <!-- <compiler.debug>true</compiler.debug>
+    <royale.framework.version>0.9.8-SNAPSHOT</royale.framework.version> -->
     <compiler.output-dir-debug>${basedir}/target/javascript/bin/js-debug</compiler.output-dir-debug>
     <compiler.output-dir-release>${basedir}/target/javascript/bin/js-release</compiler.output-dir-release>
   </properties>
@@ -95,6 +95,7 @@
         <extensions>true</extensions>
         <configuration>
           <targets>JSRoyale</targets>
+          <debug>false</debug>
           <namespaces>
             <namespace>
               <uri>library://ns.apache.org/royale/samplelib</uri>
@@ -124,10 +125,12 @@
               <path>../src/main/resources/js/*</path>
             </include-file> -->
           </includeFiles>
-          <!-- <includeLookupOnly>true</includeLookupOnly>
-          <allowSubclassOverrides>true</allowSubclassOverrides>
+          <skipAS>true</skipAS>
           <skipExtern>true</skipExtern>
-          <skipAS>true</skipAS> -->
+          <!-- 
+          <includeLookupOnly>true</includeLookupOnly>
+          <allowSubclassOverrides>true</allowSubclassOverrides>
+          -->
           <!-- <additionalCompilerOptions>
             -source-map=true;
             -source-map-source-root=/frameworks/projects/Jewel/src/main/royale/
diff --git a/examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml b/examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
index 351c690..6898206 100644
--- a/examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
+++ b/examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
@@ -21,7 +21,7 @@
 
 <componentPackage>
 
-  <!-- <component id="Beans" class="org.apache.royale.examples.Beans"/> -->
   <component id="SampleClass" class="org.apache.royale.examples.SampleClass"/>
+  <component id="ServicesConfig" class="org.apache.royale.examples.config.ServicesConfig"/>
 
 </componentPackage>
\ No newline at end of file
diff --git a/examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml b/examples/crux/SampleLib/src/main/royale/org/apache/royale/examples/config/ServicesConfig.mxml
similarity index 66%
copy from examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
copy to examples/crux/SampleLib/src/main/royale/org/apache/royale/examples/config/ServicesConfig.mxml
index 351c690..a9ebf44 100644
--- a/examples/crux/SampleLib/src/main/resources/samplelib-manifest.xml
+++ b/examples/crux/SampleLib/src/main/royale/org/apache/royale/examples/config/ServicesConfig.mxml
@@ -1,4 +1,3 @@
-<?xml version="1.0"?>
 <!--
 
   Licensed to the Apache Software Foundation (ASF) under one or more
@@ -17,11 +16,17 @@
   limitations under the License.
 
 -->
-
-
-<componentPackage>
-
-  <!-- <component id="Beans" class="org.apache.royale.examples.Beans"/> -->
-  <component id="SampleClass" class="org.apache.royale.examples.SampleClass"/>
-
-</componentPackage>
\ No newline at end of file
+<crux:BeanProvider
+	xmlns:fx="http://ns.adobe.com/mxml/2009"
+	xmlns:mx="library://ns.apache.org/royale/mx"
+	xmlns:crux="library://ns.apache.org/royale/crux">
+
+	<crux:beans>
+		<fx:Array>
+			<mx:HTTPService id="configuratorService" 
+                      url="project.json" resultFormat="text"/>
+			<mx:HTTPService id="commitsService" resultFormat="text"	/>
+		</fx:Array>
+	</crux:beans>
+
+</crux:BeanProvider>
\ No newline at end of file