Website Development Design Service !!
Hi, I found your web contact email commits@flex.apache.org. I would like to discuss a business opportunity with you. I am Sandeep-Business Development Manager. We are in Web Design and Development firm based in India, with over 6 years of experience. With Web Designing Development, Flash Design, Graphic Design, PHP Development, CMS and E-commerce Solution. We offer following Services with Very Low cost than what it might be in house: - PHP Website Development Mobile Application Development Joomla Website Development iPhone Apps Development Word press Website Development Andriod Apps Development Magento Website Development iPad Apps Development Shopify Website Development Android Tablet Apps Drupal Development Windows Applications Development Face book Aps Social Media Mobile Website Development eCommerce Solutions iOS Apps Development Payment Gateway Integration Design I will highly appreciate if you have any requirement for the same or any other requirement on the above mentioned services provided by us Do let me know if you are willing to discuss a possible (redesigning/redevelopment) of your website or designing new website. I can send you more details on the packages, action and our Portfolio. I look forward to your reply Kinds Regards, Sandeep Baghel Online Marketing Consultant Disclaimer: The CAN-SPAM Act of 2003 (Controlling the Assault of Non-Solicited Pornography and Marketing Act) establishes requirements for those who send commercial email, spells out penalties for spammers and companies whose products are advertised in spam if they violate the law, and gives consumers the right to ask mailers to stop spamming them. The above mail is in accordance to the Can Spam act of 2003: There are no deceptive subject lines and is a manual process through our efforts on World Wide Web.
svn commit: r921062 - in /websites/staging/flex/trunk: cgi-bin/ content/ content/about-people.html
Author: buildbot Date: Tue Sep 2 20:59:02 2014 New Revision: 921062 Log: Staging update by buildbot for flex Modified: websites/staging/flex/trunk/cgi-bin/ (props changed) websites/staging/flex/trunk/content/ (props changed) websites/staging/flex/trunk/content/about-people.html Propchange: websites/staging/flex/trunk/cgi-bin/ -- --- cms:source-revision (original) +++ cms:source-revision Tue Sep 2 20:59:02 2014 @@ -1 +1 @@ -1621835 +1622120 Propchange: websites/staging/flex/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue Sep 2 20:59:02 2014 @@ -1 +1 @@ -1621835 +1622120 Modified: websites/staging/flex/trunk/content/about-people.html == --- websites/staging/flex/trunk/content/about-people.html (original) +++ websites/staging/flex/trunk/content/about-people.html Tue Sep 2 20:59:02 2014 @@ -357,6 +357,39 @@ run without Flash and AIR./p/div /div +!-- About chrsmrtn -- + +div class=span3 +a id=chrsmrtnimg src=images/headshots/chrsmrtn.jpg alt= class=img-circle//a +div class=staffh5Chris Martin/h5 spani class=icon-tag/ia href=#chrsmrtnchrsmrtn (C)/a/span/div +div class=team-aboutpChris has been doing Flex UI development since Flex 2 and is very excited to be apart of the Apache Flex Team. With the Apache Flex Team, he feels that the Flex SDK has a bright future. He looks to help with the flex sdk bug verification and patching./p/div + !-- Social Icons -- +ul class=social-icons +li class=twittera href=http://www.twitter.com/chrsmrtn;Twitter/a/li +li class=githuba href=http://www.github.com/chrsmrtn-;Github/a/li +li class=linkedina href=http://es.linkedin.com/in/chrsmrtn/;LinkedIn/a/li +li class=googleplusa href=https://plus.google.com/+chrismartinplus;Google Plus/a/li +li class=wordpressa href=http://chrsmrtn.azurewebsites.net;Blog/a/li +/ul +/div + +!-- About DarkStone -- + +div class=span3 +div class=clear/div +img src=images/headshots/darkstone.png alt= class=img-circle / +div class=staffh5DarkStone (å¨æ)/h5 spani class=icon-tag/i darkstone (C)/span/div +div class=team-aboutpDarkStone has been doing Flash since 2002, doing Flex since 2006, doing PHP since 2007, he is both a designer and a developer. +br/br/He had several jobs, last job he was a product manager for 3 years, had done several RIA products./p +pSince 2013 he quit his job and started his own studio, forging his own path. +br/br/Now he's goal is to develop mobile and desktop platform apps (using Flex and PHP etc.) and sell them to the AppStore. +br/br/Basically, make the money first, and try to change the world later ; )/p +pHe is now living in Wuhan city of China./p/div +!-- Social Icons -- +ul class=social-icons +/ul +/div + !-- About -- div class=span3 @@ -369,8 +402,9 @@ run without Flash and AIR./p/div /ul /div +p/div!-- end of the row --/p +div class=row-fluid !-- About -- - div class=span3 img src=images/headshots/erikdebruin.jpg alt= class=img-circle/ div class=staffh5Erik de Bruin/h5 spani class=icon-tag/i erikdebruin (C+P)/span/div @@ -397,9 +431,8 @@ run without Flash and AIR./p/div /div -p/div!-- end of the row --/p -div class=row-fluid !-- About -- + div class=span3 div class=clear/div img src=images/headshots/fthomas.jpg alt= class=img-circle / @@ -445,8 +478,9 @@ Since 2010 he has been part of the compi /div +p/div!-- end of the row --/p +div class=row-fluid !-- About -- - div class=span3 img src=images/headshots/harbs.jpg alt=Harbs class=img-circle / div class=staffh5Harbs/h5 spani class=icon-tag/i harbs (C+P)/span/div @@ -498,9 +532,8 @@ all over the US, is author of three book /div -p/div!-- end of the row --/p -div class=row-fluid !-- About -- + div class=span3 img src=images/headshots/jtellier.jpg alt= class=img-circle/ div class=staffh5Jeremy Tellier/h5 spani class=icon-tag/i jtellier (C+P)/span/div @@ -542,8 +575,9 @@ On a more personal note Jeremy feels /div +p/div!--end of the row--/p +div class=row-fluid !-- About -- - div class=span3 img src=images/headshots/junheider.jpg alt=Jun Heider class=img-circle/ div class=staff @@ -579,9 +613,7 @@ On a more personal note Jeremy feels /div -p/div!--end of the row--/p -div class=row-fluid - !-- About mamsellem -- +p!-- About mamsellem -- div class=span3 div class=clear/div img src=images/headshots/mamsellem.jpg alt= class=img-circle / @@ -591,16 +623,13 @@ On a more personal note Jeremy feels and since 2009 as a software engineer on a Flex-based BAM application development framework./p pMaurice is professionally interested in GUI design in general, and personally in clay modeling.br/ He is based in Paris area, France./p - /div - - !-- Social Icons -- + /div/p +p!-- Social Icons -- ul
svn commit: r1622127 - /flex/site/trunk/content/about-people.cmsPage
Author: chrsmrtn Date: Tue Sep 2 21:06:41 2014 New Revision: 1622127 URL: http://svn.apache.org/r1622127 Log: forgot to add back in final row tags that i moved Modified: flex/site/trunk/content/about-people.cmsPage Modified: flex/site/trunk/content/about-people.cmsPage URL: http://svn.apache.org/viewvc/flex/site/trunk/content/about-people.cmsPage?rev=1622127r1=1622126r2=1622127view=diff == --- flex/site/trunk/content/about-people.cmsPage (original) +++ flex/site/trunk/content/about-people.cmsPage Tue Sep 2 21:06:41 2014 @@ -625,6 +625,9 @@ I don't claim to be anything I'm not, th /ul /div +/div!-- end of the row -- + +div class=row-fluid !-- About -- div class=span3 !--img src=images/staff-1.jpg alt= class=img-circle/--
svn commit: r921066 - in /websites/staging/flex/trunk: cgi-bin/ content/ content/about-people.html
Author: buildbot Date: Tue Sep 2 21:06:48 2014 New Revision: 921066 Log: Staging update by buildbot for flex Modified: websites/staging/flex/trunk/cgi-bin/ (props changed) websites/staging/flex/trunk/content/ (props changed) websites/staging/flex/trunk/content/about-people.html Propchange: websites/staging/flex/trunk/cgi-bin/ -- --- cms:source-revision (original) +++ cms:source-revision Tue Sep 2 21:06:48 2014 @@ -1 +1 @@ -1622120 +1622127 Propchange: websites/staging/flex/trunk/content/ -- --- cms:source-revision (original) +++ cms:source-revision Tue Sep 2 21:06:48 2014 @@ -1 +1 @@ -1622120 +1622127 Modified: websites/staging/flex/trunk/content/about-people.html == --- websites/staging/flex/trunk/content/about-people.html (original) +++ websites/staging/flex/trunk/content/about-people.html Tue Sep 2 21:06:48 2014 @@ -858,8 +858,9 @@ I don't claim to be anything I'm not, th /div +p/div!-- end of the row --/p +div class=row-fluid !-- About -- - div class=span3 !--img src=images/staff-1.jpg alt= class=img-circle/-- div class=staffh5Jon Rose/h5 spani class=icon-tag/i jrose (C+P)/span/div
svn commit: r921069 - in /websites/production/flex: cgi-bin/ content/
Author: chrsmrtn Date: Tue Sep 2 21:08:55 2014 New Revision: 921069 Log: fixed alphabetizing on team page Added: websites/production/flex/cgi-bin/ - copied from r921068, websites/staging/flex/trunk/cgi-bin/ websites/production/flex/content/ - copied from r921068, websites/staging/flex/trunk/content/
[25/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/ActionScriptProperties.mxml -- diff --git a/Radii8Designer/src/examples/ActionScriptProperties.mxml b/Radii8Designer/src/examples/ActionScriptProperties.mxml new file mode 100644 index 000..d7d0ece --- /dev/null +++ b/Radii8Designer/src/examples/ActionScriptProperties.mxml @@ -0,0 +1,61 @@ +?xml version=1.0 encoding=UTF-8 standalone=no? +!-- + +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. + +-- +actionScriptProperties analytics=false mainApplicationPath=Designs.mxml projectUUID=daf87c26-7d5c-45bf-9bca-28f164a70281 version=10 + compiler additionalCompilerArguments=-locale en_US + autoRSLOrdering=true + copyDependentFiles=true + fteInMXComponents=false + generateAccessible=true + htmlExpressInstall=true + htmlGenerate=true + htmlHistoryManagement=true + htmlPlayerVersionCheck=true + includeNetmonSwc=false + outputFolderPath=bin-debug + removeUnusedRSL=true + sourceFolderPath=src + strict=true + targetPlayerVersion=0.0.0 + useApolloConfig=false + useDebugRSLSwfs=true + 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 + libraryPathEntry kind=1 linkType=1 path=libs/ + /libraryPath + sourceAttachmentPath/ + /compiler + + applications + application path=Designs.mxml/ + /applications + modules/ + buildCSSFiles/ + flashCatalyst validateFlashCatalystCompatibility=false/ +/actionScriptProperties http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/examples/designlayer/Nesting.mxml -- diff --git a/Radii8Designer/src/examples/designlayer/Nesting.mxml b/Radii8Designer/src/examples/designlayer/Nesting.mxml new file mode 100644 index 000..41cbf96 --- /dev/null +++ b/Radii8Designer/src/examples/designlayer/Nesting.mxml @@ -0,0 +1,82 @@ +?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:Application xmlns:fx=http://ns.adobe.com/mxml/2009; + xmlns:s=library://ns.adobe.com/flex/spark + xmlns:mx=library://ns.adobe.com/flex/halo minWidth=1024 minHeight=768 + !-- + http://bugs.adobe.com/jira/browse/SDK-23254 + http://bugs.adobe.com/jira/browse/TH-7485 + + Workaround: + Assign the designLayer property on the
[18/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/utils/AndroidDocumentExporter.as -- diff --git a/Radii8Library/src/com/flexcapacitor/utils/AndroidDocumentExporter.as b/Radii8Library/src/com/flexcapacitor/utils/AndroidDocumentExporter.as new file mode 100644 index 000..1b8df8c --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/utils/AndroidDocumentExporter.as @@ -0,0 +1,518 @@ + +// +// 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 com.flexcapacitor.utils { + import com.flexcapacitor.model.IDocument; + import com.flexcapacitor.utils.supportClasses.ComponentDescription; + + import mx.core.IVisualElement; + + import spark.components.supportClasses.GroupBase; + import spark.layouts.HorizontalLayout; + import spark.layouts.VerticalLayout; + + /** +* Exports a document to Android markup +* */ + public class AndroidDocumentExporter extends DocumentExporter { + + public function AndroidDocumentExporter() { + + } + + /** +* Last source code +* */ + [Bindable] + public var sourceCode:String; + + public var includePreviewCode:Boolean; + + public var horizontalPositions:Array = [x,left,right,horizontalCenter]; + public var verticalPositions:Array = [y,top,bottom,verticalCenter]; + public var sizesPositions:Array = [width,height]; + + + /** +* @inheritDoc +* */ + public function exportXMLString(iDocument:IDocument, reference:Boolean = false, target:Object = null):String { + var XML1:XML; + //document = iDocument; + var application:Object = iDocument ? iDocument.instance : null; + var targetDescription:ComponentDescription; + var componentTree:ComponentDescription; + var output:String = ; + var xml:XML; + + componentTree = iDocument.componentDescription; + + + // find target in display list and get it's code + targetDescription = DisplayObjectUtils.getTargetInComponentDisplayList(target, componentTree); + + + if (targetDescription) { + + // see the top of this document on how to generate source code + getAppliedPropertiesFromHistory(iDocument, targetDescription); + + if (!reference) { + //output = getAndroidOutputString(document.componentDescription); + + var includePreviewCode:Boolean = true; + + output = getAndroidOutputString(iDocument, targetDescription, true, , includePreviewCode); + output = output + \n; + + try { + // don't use XML for Android output because it converts this: + // div /div + // to this: + // div / + // and that breaks the Android page + +
[23/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/controller/Radiate.as -- diff --git a/Radii8Library/src/com/flexcapacitor/controller/Radiate.as b/Radii8Library/src/com/flexcapacitor/controller/Radiate.as new file mode 100644 index 000..a795b4c --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/controller/Radiate.as @@ -0,0 +1,8868 @@ + +// +// 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 com.flexcapacitor.controller { + import com.flexcapacitor.components.DocumentContainer; + import com.flexcapacitor.components.IDocumentContainer; + import com.flexcapacitor.effects.core.CallMethod; + import com.flexcapacitor.events.HistoryEvent; + import com.flexcapacitor.events.HistoryEventItem; + import com.flexcapacitor.events.RadiateEvent; + import com.flexcapacitor.logging.RadiateLogTarget; + import com.flexcapacitor.model.AttachmentData; + import com.flexcapacitor.model.Device; + import com.flexcapacitor.model.Document; + import com.flexcapacitor.model.DocumentData; + import com.flexcapacitor.model.EventMetaData; + import com.flexcapacitor.model.IDocument; + import com.flexcapacitor.model.IDocumentData; + import com.flexcapacitor.model.IDocumentMetaData; + import com.flexcapacitor.model.IProject; + import com.flexcapacitor.model.IProjectData; + import com.flexcapacitor.model.ISavable; + import com.flexcapacitor.model.ImageData; + import com.flexcapacitor.model.InspectableClass; + import com.flexcapacitor.model.InspectorData; + import com.flexcapacitor.model.MetaData; + import com.flexcapacitor.model.Project; + import com.flexcapacitor.model.SaveResultsEvent; + import com.flexcapacitor.model.SavedData; + import com.flexcapacitor.model.Settings; + import com.flexcapacitor.model.StyleMetaData; + import com.flexcapacitor.services.IServiceEvent; + import com.flexcapacitor.services.WPAttachmentService; + import com.flexcapacitor.services.WPService; + import com.flexcapacitor.services.WPServiceEvent; + import com.flexcapacitor.tools.ITool; + import com.flexcapacitor.utils.ClassUtils; + import com.flexcapacitor.utils.DisplayObjectUtils; + import com.flexcapacitor.utils.SharedObjectUtils; + import com.flexcapacitor.utils.TypeUtils; + import com.flexcapacitor.utils.XMLUtils; + import com.flexcapacitor.utils.supportClasses.ComponentDefinition; + import com.flexcapacitor.utils.supportClasses.ComponentDescription; + import com.flexcapacitor.views.IInspector; + import com.google.code.flexiframe.IFrame; + + import flash.desktop.Clipboard; + import flash.display.Bitmap; + import flash.display.BitmapData; + import flash.display.DisplayObject; + import flash.display.IBitmapDrawable; + import flash.events.ErrorEvent; + import flash.events.Event; + import flash.events.EventDispatcher; + import flash.events.IEventDispatcher; + import flash.events.IOErrorEvent; + import flash.events.SecurityErrorEvent; + import flash.external.ExternalInterface; + import flash.geom.Point; + import flash.globalization.DateTimeStyle; + import flash.net.FileReference; + import flash.net.SharedObject; + import flash.system.ApplicationDomain; + import flash.ui.Mouse; + import flash.ui.MouseCursorData; + import flash.utils.ByteArray; + import flash.utils.Dictionary; + import flash.utils.getTimer; + + import mx.collections.ArrayCollection; + import mx.containers.Grid; + import mx.containers.GridItem; + import mx.containers.GridRow; + import mx.containers.TabNavigator; + import mx.controls.LinkButton; + import mx.core.ClassFactory; + import
[24/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/update_build_version.xml -- diff --git a/Radii8Designer/update_build_version.xml b/Radii8Designer/update_build_version.xml new file mode 100644 index 000..54de7c6 --- /dev/null +++ b/Radii8Designer/update_build_version.xml @@ -0,0 +1,79 @@ +?xml version=1.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. + +-- +project name=Update Verson default=main basedir=. + + !--target name=build +mkdir dir=build/ +javac srcdir=src destdir=build/ + /target + + target name=declare depends=build +taskdef name=mytask +classname=com.mydomain.MyVeryOwnTask +classpath=build/ + /target + + target name=main depends=declare +mytask message=Hello World! MyVeryOwnTask works!/ + /target-- + + !--- Updating build Date and Version -- + target name=main + + propertyset id=tdate/propertyset + propertyset id=ttime/propertyset + + tstamp + format property=tdate pattern=-MM-dd/ + /tstamp + + tstamp + format property=ttime pattern=hh:mm aa/ + /tstamp + + buildnumber file=build.number/ + + echoUpdating version to current date: ${tdate} and time: ${ttime}/echo + + replaceregexp byline=true + regexp pattern='public static const BUILD_DATE:String = ([0-9-]+)'/ + substitution expression='public static const BUILD_DATE:String = ${tdate}'/ + fileset dir=src + include name=build.as/ + /fileset + /replaceregexp + + replaceregexp byline=true + regexp pattern='public static const BUILD_TIME:String = ([0-9:PMA ]+)'/ + substitution expression='public static const BUILD_TIME:String = ${ttime}'/ + fileset dir=src + include name=build.as/ + /fileset + /replaceregexp + + replaceregexp byline=true + regexp pattern='public static const BUILD_NUMBER:String = ([0-9\.]+)'/ + substitution expression='public static const BUILD_NUMBER:String = ${build.number}'/ + fileset dir=src + include name=build.as/ + /fileset + /replaceregexp + /target +/project \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/.actionScriptProperties -- diff --git a/Radii8Library/.actionScriptProperties b/Radii8Library/.actionScriptProperties new file mode 100644 index 000..bea51c7 --- /dev/null +++ b/Radii8Library/.actionScriptProperties @@ -0,0 +1,45 @@ +?xml version=1.0 encoding=UTF-8 standalone=no? +!-- + +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. + +-- +actionScriptProperties analytics=false mainApplicationPath=Radii8Library.as projectUUID=bffb08cf-9863-49e0-ab71-1e13d08f4ec0 version=11 + compiler additionalCompilerArguments=-locale en_US autoRSLOrdering=true copyDependentFiles=false flexSDK=Apache Flex 4.12.1 FP13.0 AIR13.0 en_US
[29/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/html-template/history/history.js -- diff --git a/Radii8Designer/html-template/history/history.js b/Radii8Designer/html-template/history/history.js new file mode 100644 index 000..2cb34f8 --- /dev/null +++ b/Radii8Designer/html-template/history/history.js @@ -0,0 +1,696 @@ +/* + * + * 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. + * + */ +BrowserHistoryUtils = { +addEvent: function(elm, evType, fn, useCapture) { +useCapture = useCapture || false; +if (elm.addEventListener) { +elm.addEventListener(evType, fn, useCapture); +return true; +} +else if (elm.attachEvent) { +var r = elm.attachEvent('on' + evType, fn); +return r; +} +else { +elm['on' + evType] = fn; +} +} +} + +BrowserHistory = (function() { +// type of browser +var browser = { +ie: false, +ie8: false, +firefox: false, +safari: false, +opera: false, +version: -1 +}; + +// Default app state URL to use when no fragment ID present +var defaultHash = ''; + +// Last-known app state URL +var currentHref = document.location.href; + +// Initial URL (used only by IE) +var initialHref = document.location.href; + +// Initial URL (used only by IE) +var initialHash = document.location.hash; + +// History frame source URL prefix (used only by IE) +var historyFrameSourcePrefix = 'history/historyFrame.html?'; + +// History maintenance (used only by Safari) +var currentHistoryLength = -1; + +// Flag to denote the existence of onhashchange +var browserHasHashChange = false; + +var historyHash = []; + +var initialState = createState(initialHref, initialHref + '#' + initialHash, initialHash); + +var backStack = []; +var forwardStack = []; + +var currentObjectId = null; + +//UserAgent detection +var useragent = navigator.userAgent.toLowerCase(); + +if (useragent.indexOf(opera) != -1) { +browser.opera = true; +} else if (useragent.indexOf(msie) != -1) { +browser.ie = true; +browser.version = parseFloat(useragent.substring(useragent.indexOf('msie') + 4)); +if (browser.version == 8) +{ +browser.ie = false; +browser.ie8 = true; +} +} else if (useragent.indexOf(safari) != -1) { +browser.safari = true; +browser.version = parseFloat(useragent.substring(useragent.indexOf('safari') + 7)); +} else if (useragent.indexOf(gecko) != -1) { +browser.firefox = true; +} + +if (browser.ie == true browser.version == 7) { +window[_ie_firstload] = false; +} + +function hashChangeHandler() +{ +currentHref = document.location.href; +var flexAppUrl = getHash(); +//ADR: to fix multiple +if (typeof BrowserHistory_multiple != undefined BrowserHistory_multiple == true) { +var pl = getPlayers(); +for (var i = 0; i pl.length; i++) { +pl[i].browserURLChange(flexAppUrl); +} +} else { +getPlayer().browserURLChange(flexAppUrl); +} +} + +// Accessor functions for obtaining specific elements of the page. +function getHistoryFrame() +{ +return document.getElementById('ie_historyFrame'); +} + +function getFormElement() +{ +return document.getElementById('safari_formDiv'); +} + +function getRememberElement() +{ +return document.getElementById(safari_remember_field); +} + +// Get the Flash player object for performing ExternalInterface callbacks. +// Updated for changes to SWFObject2. +function getPlayer(id) { +var i; + + if (id document.getElementById(id)) { + var r = document.getElementById(id); + if (typeof r.SetVariable != undefined) { + return r; + } + else {
[27/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/Main.mxml -- diff --git a/Radii8Designer/src/Main.mxml b/Radii8Designer/src/Main.mxml new file mode 100644 index 000..c42e7b4 --- /dev/null +++ b/Radii8Designer/src/Main.mxml @@ -0,0 +1,1228 @@ +?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:Application 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:c=com.flexcapacitor.controls.* + xmlns:handlers=com.flexcapacitor.handlers.* + xmlns:popup=com.flexcapacitor.effects.popup.* + xmlns:navigation=com.flexcapacitor.effects.navigation.* + xmlns:utils=com.flexcapacitor.utils.* + xmlns:model=com.flexcapacitor.model.* + xmlns:fc=com.flexcapacitor.effects.popup.* + xmlns:flexiframe=com.google.code.flexiframe.* + xmlns:services=com.flexcapacitor.effects.services.* + xmlns:core=com.flexcapacitor.effects.core.* + xmlns:views=com.flexcapacitor.views.* + xmlns:renderers=com.flexcapacitor.views.renderers.* + xmlns:filters=com.flexcapacitor.filters.* + xmlns:windows=com.flexcapacitor.views.windows.* + xmlns:local=* + + width=100% height=100% + minWidth=800 minHeight=400 + uncaughtError=uncaughtErrorHandler(event) + applicationComplete=applicationCompleteHandler(event) + pageTitle=Radiate + frameRate=40 + + + !-- NOTICE! There are notes that go with this project. They have been moved to readme.txt -- + + !-- + show all properties if inspector is not available + add option to hide code in html view + upload image automatically + add delete attachment + add automatically save document + remove inspector panel + remove focus rect in properties panel items + add items from documents to assets array + attach uploads to project document + add uploaded icon to assets +=-- + + fx:Style source=styles.css / + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.RadiateEvent; + import com.flexcapacitor.model.DocumentData; + import com.flexcapacitor.model.DocumentMetaData; + import com.flexcapacitor.model.IDocument; + import com.flexcapacitor.model.IProject; + import com.flexcapacitor.model.MenuItem; + import com.flexcapacitor.utils.XMLUtils; + import com.flexcapacitor.views.windows.ContactWindow; + import com.flexcapacitor.views.windows.DeleteDocumentWindow; + import com.flexcapacitor.views.windows.ExportDocumentWindow; + import com.flexcapacitor.views.windows.ImportWindow; + import com.flexcapacitor.views.windows.LoginWindow; + import com.flexcapacitor.views.windows.NewDocumentWindow; + import com.flexcapacitor.views.windows.PrintWindow; + + import mx.core.UIComponentGlobals; + import mx.events.FlexEvent; + import mx.events.MenuEvent; + + import spark.collections.Sort; + import spark.collections.SortField; + import spark.events.IndexChangeEvent; + +
[14/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/DropShadowFilter.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/DropShadowFilter.mxml b/Radii8Library/src/com/flexcapacitor/views/DropShadowFilter.mxml new file mode 100644 index 000..71d2737 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/DropShadowFilter.mxml @@ -0,0 +1,1316 @@ +?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:Group xmlns:fc=com.flexcapacitor.controls.* +xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:local=* +xmlns:mx=library://ns.adobe.com/flex/mx +xmlns:s=library://ns.adobe.com/flex/spark +width=100% +xmlns:utils=com.flexcapacitor.utils.* +xmlns:handlers=com.flexcapacitor.handlers.* + xmlns:supportClasses=com.flexcapacitor.effects.supportClasses.* +creationComplete=group1_creationCompleteHandler(event) + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.RadiateEvent; + import com.flexcapacitor.utils.InspectorUtils; + import com.flexcapacitor.utils.TypeUtils; + + import mx.collections.ArrayList; + import mx.core.IVisualElement; + import mx.core.UIComponent; + import mx.events.FlexEvent; + import mx.managers.SystemManager; + + import spark.components.Image; + import spark.components.supportClasses.GroupBase; + import spark.primitives.BitmapImage; + + public static const BASELINE:String = baseline; + public static const BOTTOM:String = bottom; + public static const HORIZONTAL_CENTER:String = horizontalCenter; + public static const LEFT:String = left; + + public static const PERCENT_HEIGHT:String = percentHeight; + public static const PERCENT_WIDTH:String = percentWidth; + public static const RIGHT:String = right; + public static const TOP:String = top; + public static const VERTICAL_CENTER:String = verticalCenter; + + public static const X:String = x; + public static const Y:String = y; + + [Bindable] + public var targetActualHeight:Number; + + [Bindable] + public var targetActualWidth:Number; + + [Bindable] + public var targetBottom:Number; + + [Bindable] + public var targetHeight:Number; + + [Bindable] + public var targetHorizontal:Number; + + [Bindable] + public var targetLeft:Number; + + [Bindable] + public var targetPercentHeight:Number; + + [Bindable] + public var targetPercentWidth:Number; + + [Bindable] + public var targetRight:Number; + + [Bindable] + public var targetTop:Number; + + [Bindable] + public var targetVertical:Number; + + [Bindable] + public var targetWidth:Number; + + [Bindable] + public var targetX:Number; + + [Bindable] + public var targetY:Number; + + + private var _target:DisplayObject; + private var _visualElement:IVisualElement; + + [Bindable] +
[22/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/controller/RadiateReferences.as -- diff --git a/Radii8Library/src/com/flexcapacitor/controller/RadiateReferences.as b/Radii8Library/src/com/flexcapacitor/controller/RadiateReferences.as new file mode 100644 index 000..f605d43 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/controller/RadiateReferences.as @@ -0,0 +1,75 @@ + +// +// 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 com.flexcapacitor.controller { + import com.flexcapacitor.tools.EyeDropper; + import com.flexcapacitor.tools.Selection; + import com.flexcapacitor.tools.Zoom; + import com.flexcapacitor.views.inspectors.BorderStyles; + import com.flexcapacitor.views.EyeDropperInspector; + import com.flexcapacitor.views.SelectionInspector; + import com.flexcapacitor.views.Size; + import com.flexcapacitor.views.ZoomInspector; + import com.flexcapacitor.views.inspectors.BasicBackgroundStyles; + import com.flexcapacitor.views.inspectors.FontStyles; + import com.flexcapacitor.views.inspectors.Identity; + import com.flexcapacitor.views.inspectors.Image; + import com.flexcapacitor.views.inspectors.TextInspector; + + /** +* Create references so classes are included. +* */ + public class RadiateReferences { + + + public function RadiateReferences() + { + + } + + /// + // TOOLS CLASSES + /// + + public static var selectionTool:com.flexcapacitor.tools.Selection; + public static var selectionInspector:com.flexcapacitor.views.SelectionInspector; + + public static var zoomTool:com.flexcapacitor.tools.Zoom; + public static var zoomInspector:com.flexcapacitor.views.ZoomInspector; + + public static var eyeDropperTool:com.flexcapacitor.tools.EyeDropper; + public static var eyeDropperInspector:com.flexcapacitor.views.EyeDropperInspector; + + /// + // TOOLS CLASSES + /// + + public static var identity:com.flexcapacitor.views.inspectors.Identity; + public static var size:com.flexcapacitor.views.Size; + public static var borderStyles:com.flexcapacitor.views.inspectors.BorderStyles; + public static var fontStyles:com.flexcapacitor.views.inspectors.FontStyles; + public static var textInspector:com.flexcapacitor.views.inspectors.TextInspector; + public static var basicBackgroundInspector:com.flexcapacitor.views.inspectors.BasicBackgroundStyles; + public static var imageInspector:com.flexcapacitor.views.inspectors.Image; + public static var borderStylesInspector:com.flexcapacitor.views.inspectors.BorderStyles; + + + + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/controller/RadiateTest.as -- diff --git a/Radii8Library/src/com/flexcapacitor/controller/RadiateTest.as b/Radii8Library/src/com/flexcapacitor/controller/RadiateTest.as new file mode 100644 index 000..613f06f --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/controller/RadiateTest.as @@ -0,0 +1,61 @@ + +// +// Licensed to the Apache
[15/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/utils/SyntaxHighlighter.as -- diff --git a/Radii8Library/src/com/flexcapacitor/utils/SyntaxHighlighter.as b/Radii8Library/src/com/flexcapacitor/utils/SyntaxHighlighter.as new file mode 100644 index 000..3f66970 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/utils/SyntaxHighlighter.as @@ -0,0 +1,380 @@ + +// +// 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 com.flexcapacitor.utils { + import flash.events.Event; + import flash.events.EventDispatcher; + import flash.events.TimerEvent; + import flash.text.StyleSheet; + import flash.utils.Timer; + + import mx.controls.TextArea; + import mx.controls.textClasses.TextRange; + + import spark.components.TextArea; + + import flashx.textLayout.formats.TextLayoutFormat; + + import net.anirudh.as3syntaxhighlight.CodePrettyPrint; + import net.anirudh.as3syntaxhighlight.PseudoThread; + + + [Event(name=complete)] + + /** +* Adds syntax highlighting to the text area. +* +* This class wraps around the AS3SyntaxHighlighter +* and makes it easier to setup the text area. +* +* This class is incomplete it appears. +* Some code may be from the example projects. +* +* http://code.google.com/p/as3syntaxhighlight/ +* */ + public class SyntaxHighlighter extends EventDispatcher { + + /** +* spl = var or function token +* str = string - (something) +* kwd = keyword +* com = comment +* typ = type +* lit = literal +* pun = punctuation - ,= +* pln = plain +* tag = tag - (tag) +* atn = attribute name +* atv = attribute value - name=(value) +* src = source +* dec = declaration +* +* +* */ + public static var CRIMSON_EDITOR_CSS:String = + + .spl {color: #4f94cd;} + + .str {color: #800080;} + + .kwd {color: #88;} + + .com {color: #008800;} + + .typ {color: #0068CF;} + + .lit {color: #00;} + + .pun {color: #1C02FF;} + + .tag {color: #1C02FF;} + + .pln {color: #22;} + + .atn {color: #660066;} + + .atv {color: #88;} + + .dec {color: #660066;}; + + public function SyntaxHighlighter(textarea:Object = null) { + + if (textarea is mx.controls.TextArea) { + this.mxTextArea = mx.controls.TextArea(textarea); + } + else if (textarea is spark.components.TextArea) { + this.sparkTextArea = spark.components.TextArea(textarea); + } + } + + //public var cssString:String =.spl {font-family:sandboxcode;color: #4f94cd;} .str { font-family:sandboxcode; color: #88; } .kwd { font-family:sandboxcode; color: #88; } .com { font-family:sandboxcode; color: #008800; } .typ { font-family:sandboxcode; color: #0068CF; } .lit { font-family:sandboxcode; color: #00; } .pun { font-family:sandboxcode; color: #00; } .pln { font-family:sandboxcode; color: #22; } .tag { font-family:sandboxcode; color: #88; } .atn { font-family:sandboxcode; color: #660066; } .atv { font-family:sandboxcode; color: #88; } .dec { font-family:sandboxcode; color: #660066; } ; +
[10/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/panels/ConstraintsInspector.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/panels/ConstraintsInspector.mxml b/Radii8Library/src/com/flexcapacitor/views/panels/ConstraintsInspector.mxml new file mode 100644 index 000..e41f547 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/ConstraintsInspector.mxml @@ -0,0 +1,1546 @@ +?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:Group xmlns:fc=com.flexcapacitor.controls.* +xmlns:fx=http://ns.adobe.com/mxml/2009; +xmlns:local=* +xmlns:mx=library://ns.adobe.com/flex/mx +xmlns:s=library://ns.adobe.com/flex/spark +xmlns:utils=com.flexcapacitor.utils.* +xmlns:handlers=com.flexcapacitor.handlers.* + xmlns:supportClasses=com.flexcapacitor.effects.supportClasses.* + +styleName=constraintStyles +creationComplete=creationCompleteHandler(event) +width=100% +height=100% + + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.RadiateEvent; + + import mx.collections.ArrayList; + import mx.core.IVisualElement; + import mx.core.UIComponent; + import mx.events.FlexEvent; + + import spark.components.Image; + import spark.components.supportClasses.GroupBase; + import spark.primitives.BitmapImage; + + public static const BASELINE:String = baseline; + public static const BOTTOM:String = bottom; + public static const HORIZONTAL_CENTER:String = horizontalCenter; + public static const LEFT:String = left; + + public static const PERCENT_HEIGHT:String = percentHeight; + public static const PERCENT_WIDTH:String = percentWidth; + public static const RIGHT:String = right; + public static const TOP:String = top; + public static const VERTICAL_CENTER:String = verticalCenter; + + public static const X:String = x; + public static const Y:String = y; + + [Bindable] + public var targetActualHeight:Number; + + [Bindable] + public var targetActualWidth:Number; + + [Bindable] + public var targetBottom:Number; + + [Bindable] + public var targetHeight:Number; + + [Bindable] + public var targetHorizontal:Number; + + [Bindable] + public var targetBaseline:Number; + + [Bindable] + public var targetLeft:Number; + + [Bindable] + public var targetPercentHeight:Number; + + [Bindable] + public var targetPercentWidth:Number; + + [Bindable] + public var targetRight:Number; + + [Bindable] + public var targetTop:Number; + + [Bindable] + public var targetVertical:Number; + + [Bindable] + public var targetWidth:Number; + + [Bindable] + public var targetX:Number; + + [Bindable] + public var targetY:Number; + + + private var _target:DisplayObject; + private var
[21/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/model/DocumentData.as -- diff --git a/Radii8Library/src/com/flexcapacitor/model/DocumentData.as b/Radii8Library/src/com/flexcapacitor/model/DocumentData.as new file mode 100644 index 000..f8b3517 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/model/DocumentData.as @@ -0,0 +1,807 @@ + +// +// 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 com.flexcapacitor.model { + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.services.IServiceEvent; + import com.flexcapacitor.services.IWPService; + import com.flexcapacitor.services.IWPServiceEvent; + import com.flexcapacitor.services.WPService; + import com.flexcapacitor.services.WPServiceBase; + import com.flexcapacitor.services.WPServiceEvent; + import com.flexcapacitor.utils.MXMLDocumentExporter; + + import flash.events.IEventDispatcher; + import flash.net.FileReference; + import flash.net.URLVariables; + import flash.system.ApplicationDomain; + + /** +* Event dispatched when the save results are returned. +* SaveResultsEvent +* */ + [Event(name=saveResults, type=com.flexcapacitor.model.SaveResultsEvent)] + + /** +* Event dispatched when the document data is retrieved. +* LoadResultsEvent +* */ + [Event(name=loadResults, type=com.flexcapacitor.model.LoadResultsEvent)] + + /** +* Holds document data. +* */ + [RemoteClass(alias=DocumentData)] + public class DocumentData extends DocumentMetaData implements IDocumentData { + + /** +* Constructor +* */ + public function DocumentData(target:IEventDispatcher = null) { + super(); + } + + /** +* Default class that exports the document +* */ + [Transient] + public static var internalExporter:IDocumentExporter = new MXMLDocumentExporter(); + + private var _exporter:IDocumentExporter = internalExporter; + + /** +* Exports the document to string +* */ + [Transient] + public function get exporter():IDocumentExporter { + return _exporter; + } + + /** +* @private +*/ + public function set exporter(value:IDocumentExporter):void { + _exporter = value; + } + + /** +* Constant used to save locally to a shared object +* */ + [Transient] + public static const LOCAL_LOCATION:String = local; + + /** +* Constant used to open from internal references +* */ + [Transient] + public static const INTERNAL_LOCATION:String = internal; + + /** +* Constant used to save to the local file system +* */ + [Transient] + public static const FILE_LOCATION:String = file; + + /** +* Constant used to save to a database +* */ + [Transient] + public static const DATABASE_LOCATION:String = database; + + /** +* Constant used to save to the server +* */ + [Transient] + public static const REMOTE_LOCATION:String = remote; + + /** +* Constant used to save to the server +* */ + [Transient] +
[12/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/Snapshot.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/Snapshot.mxml b/Radii8Library/src/com/flexcapacitor/views/Snapshot.mxml new file mode 100644 index 000..66834bb --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/Snapshot.mxml @@ -0,0 +1,200 @@ +?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:Group xmlns:fx=http://ns.adobe.com/mxml/2009; +xmlns:s=library://ns.adobe.com/flex/spark +xmlns:handlers=com.flexcapacitor.handlers.* +xmlns:display=com.flexcapacitor.effects.display.* +xmlns:bitmap=com.flexcapacitor.effects.bitmap.* +xmlns:file=com.flexcapacitor.effects.file.* +xmlns:core=com.flexcapacitor.effects.core.* +xmlns:status=com.flexcapacitor.effects.status.* +xmlns:popup=com.flexcapacitor.effects.popup.* +xmlns:controls=com.flexcapacitor.controls.* + +creationComplete=group1_creationCompleteHandler(event) +width=400 +height=300 + + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.RadiateEvent; + import com.flexcapacitor.utils.ClassUtils; + + import mx.events.FlexEvent; + public var radiate:Radiate = Radiate.instance; + + private var _target:DisplayObject; + + [Bindable] + public function get target():DisplayObject { + return _target; + } + + public function set target(value:DisplayObject):void { + _target = value as DisplayObject; + + if (rasterize.bitmapData) { + rasterize.bitmapData.dispose(); + rasterize.bitmapData = null; + } + + if (target) { + fileName = ClassUtils.getClassNameOrID(target); + } + else { + fileName = Screenshot; + } + + } + + + protected function group1_creationCompleteHandler(event:FlexEvent):void { + radiate.addEventListener(RadiateEvent.TARGET_CHANGE, targetChangeHandler); + + if (radiate.target) { + target = radiate.target as DisplayObject; + } + + + } + + + protected function targetChangeHandler(event:RadiateEvent):void { + target = event.selectedItem as DisplayObject; + } + + protected function group1_pasteHandler(event:Event):void { + /*var clipboard:Clipboard = Clipboard.generalClipboard; + Radiate.log.info(Formats: + clipboard.formats.join(,)); + Radiate.log.info(PASTED: + clipboard.getData(ClipboardFormats.TEXT_FORMAT));*/ + /*var value:* = clipboard.getData(ClipboardFormats.BITMAP_FORMAT, ClipboardTransferMode.CLONE_ONLY); + var value1:* = clipboard.getData(ClipboardFormats.BITMAP_FORMAT, ClipboardTransferMode.CLONE_PREFERRED); +
[03/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/Arrow.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/Arrow.png b/Radii8LibraryAssets/src/assets/icons/general/Arrow.png new file mode 100644 index 000..e090a67 Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/Arrow.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/Cancel.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/Cancel.png b/Radii8LibraryAssets/src/assets/icons/general/Cancel.png new file mode 100644 index 000..083a123 Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/Cancel.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment.png b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment.png new file mode 100644 index 000..e23e32b Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment2.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment2.png b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment2.png new file mode 100644 index 000..e23e32b Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment2.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment3.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment3.png b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment3.png new file mode 100644 index 000..e23e32b Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment3.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment4.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment4.png b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment4.png new file mode 100644 index 000..e23e32b Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment4.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment5.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment5.png b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment5.png new file mode 100644 index 000..e23e32b Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/CenterAlignment5.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/Clear.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/Clear.png b/Radii8LibraryAssets/src/assets/icons/general/Clear.png new file mode 100644 index 000..87133fd Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/Clear.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/ClosedFolder.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/ClosedFolder.png b/Radii8LibraryAssets/src/assets/icons/general/ClosedFolder.png new file mode 100644 index 000..0b54bf6 Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/ClosedFolder.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/Cloud.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/general/Cloud.png b/Radii8LibraryAssets/src/assets/icons/general/Cloud.png new file mode 100644 index 000..df939df Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/general/Cloud.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/general/CloudDown.png -- diff --git
[09/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/panels/EffectsInspector.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/panels/EffectsInspector.mxml b/Radii8Library/src/com/flexcapacitor/views/panels/EffectsInspector.mxml new file mode 100644 index 000..7922a41 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/EffectsInspector.mxml @@ -0,0 +1,951 @@ +?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:Group 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:controls=com.flexcapacitor.controls.* + +width=400 +height=200 + + + fx:Script + ![CDATA[ + import mx.core.mx_internal; + + use namespace mx_internal; + + [Bindable] + public var openAllBranchesAtStart:Boolean = true; + + + public function set targets(value:Array):void { + + effectsCollection.source = value; + effectsCollection.refresh(); + + if (openAllBranchesAtStart) { + callLater(openAllBranches); + } + + } + + public function openAllBranches():void { + var items:Array = effectsCollection.toArray(); + + effectsTree.validateNow(); + effectsTree.collectionLength; + + if (items) { + var length:int = items.length; + + for (var i:int; i length; i++) { + effectsTree.expandItem(items[i], true); + // effectsTree.expandChildrenOf(items[i], true); + effectsTree.validateNow(); + } + } + } + + protected function effectsTree_enterFrameHandler(event:Event):void { + var newTreeHeight:int = effectsTree.collectionLength*effectsTree.rowHeight; + newTreeHeight = Math.max(newTreeHeight, effectsTree.minHeight); + //trace(new tree height= + newTreeHeight); + + if (newTreeHeight!=treeHeight) { + treeHeight = Math.max(newTreeHeight, effectsTree.minHeight); + trace(updating tree height); + } + } + + ]] + /fx:Script + + + fx:Declarations + s:ArrayCollection id=effectsCollection/ + fx:int id=treeHeight200/fx:int + /fx:Declarations + + + s:VGroup width=100% height=100% + + !--s:HGroup verticalAlign=middle width=100% + s:Spacer width=100%/ + s:Label text=Total ({effectsCollection.length})/ + /s:HGroup-- + + mx:Tree id=effectsTree +width=100% +minHeight=100 +height={treeHeight} +borderVisible=false +borderColor=#CC +
[28/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/JSONAPI.mxml -- diff --git a/Radii8Designer/src/JSONAPI.mxml b/Radii8Designer/src/JSONAPI.mxml new file mode 100644 index 000..63c4828 --- /dev/null +++ b/Radii8Designer/src/JSONAPI.mxml @@ -0,0 +1,1795 @@ +?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:Application 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:ns=http://ak33m.com/mxml; + xmlns:fc=com.flexcapacitor.utils.* + xmlns:controls=com.flexcapacitor.controls.* + + minWidth=800 + minHeight=600 + + applicationComplete=applicationCompleteHandler(event) + + + + fx:Script + ![CDATA[ + import com.flexcapacitor.services.WPService; + import com.flexcapacitor.services.WPServiceEvent; + + import flash.net.FileReference; + import flash.net.URLLoader; + import flash.net.URLLoaderDataFormat; + import flash.net.URLRequest; + import flash.net.URLRequestMethod; + import flash.net.URLVariables; + import flash.net.navigateToURL; + import flash.utils.getTimer; + + import mx.collections.ItemResponder; + import mx.events.FlexEvent; + import mx.rpc.AsyncToken; + import mx.utils.ObjectUtil; + + import spark.events.IndexChangeEvent; + import spark.events.TextOperationEvent; + + import ru.inspirit.net.MultipartURLLoader; + import ru.inspirit.net.events.MultipartURLLoaderEvent; + + public var host:String = ; + + [Bindable] + public var urlregexp:String = ^[A-Za-z]+://[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%\?\/.=]+$; + [Bindable] + public var endpointregexp:String = /[A-Za-z0-9-_%\?\/.=]; + + public var time:int; + + [Bindable] + public var currentUserID:int; + + private var uploadPending:Boolean; + private var updatePending:Boolean; + private var updateCreatePost:Boolean; + + public var uploadRequest:URLRequest; + + private var fileToUpload:FileReference; + + private var multipartURLLoader:MultipartURLLoader; + + private var testTextFileByteArray:ByteArray; + + private var testBitmap:BitmapData; + + private var testBitmapJPEGByteArray:ByteArray; + + public var service:WPService; + + /** +* Login user +* */ + public function loginUser():void { + log(Login user); + service.loginUser(usernameInput.text, passwordInput.text); + destinationURL.text = service.url; + updateTimeMatrixField(service.call); + } + + /** +* Logout user +* */ + public function logoutUser():void { + log(Logout
[16/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/utils/HTMLDocumentExporter.as -- diff --git a/Radii8Library/src/com/flexcapacitor/utils/HTMLDocumentExporter.as b/Radii8Library/src/com/flexcapacitor/utils/HTMLDocumentExporter.as new file mode 100644 index 000..c179e86 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/utils/HTMLDocumentExporter.as @@ -0,0 +1,1370 @@ + +// +// 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 com.flexcapacitor.utils { + import com.flexcapacitor.model.IDocument; + import com.flexcapacitor.utils.supportClasses.ComponentDescription; + import com.flexcapacitor.views.supportClasses.Styles; + + import flash.display.BitmapData; + import flash.display.DisplayObject; + import flash.display.JPEGEncoderOptions; + import flash.display.PNGEncoderOptions; + import flash.geom.Rectangle; + import flash.utils.ByteArray; + import flash.utils.Dictionary; + import flash.utils.getTimer; + + import mx.core.IUIComponent; + import mx.core.IVisualElement; + import mx.core.IVisualElementContainer; + import mx.graphics.codec.JPEGEncoder; + import mx.graphics.codec.PNGEncoder; + import mx.styles.IStyleClient; + import mx.utils.Base64Encoder; + + import spark.components.BorderContainer; + import spark.components.HGroup; + import spark.components.supportClasses.GroupBase; + import spark.layouts.BasicLayout; + import spark.layouts.HorizontalLayout; + import spark.layouts.TileLayout; + import spark.layouts.VerticalLayout; + import spark.utils.BitmapUtil; + + /** +* Exports a document to HTML +* */ + public class HTMLDocumentExporter extends DocumentExporter { + + public function HTMLDocumentExporter() { + + } + + /** +* Sets explicit size regardless if size is explicit +* */ + public var setExplicitSize:Boolean = true; + + /** +* Sets styles inline +* */ + public var useInlineStyles:Boolean; + + /** +* Name of token in the template that is replaced by the +* */ + public var contentToken:String = !--template_content--; + + /** +* CSS to add to +* */ + public var css:String; + + /** +* Adds border box CSS +* */ + public var borderBoxCSS:String; + + /** +* Show outline +* */ + public var showBordersCSS:String; + + /** +* Zoom CSS +* */ + public var zoomCSS:String; + + /** +* Page zoom level +* */ + public var scaleLevel:Number; + + /** +* CSS for SVG button +* */ + public var buttonCSS:String; + + public var buttonCSS2:String; + + public var stylesheets:String; + + public var template:String; + + /** +* Creates a snapshot of the application and sets it as the background image +* */ + public var showScreenshotBackground:Boolean = false; + + /** +* Alpha of the background image +* */ + public var backgroundImageAlpha:Number = .5; + + /** +* Used to
[20/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/model/Project.as -- diff --git a/Radii8Library/src/com/flexcapacitor/model/Project.as b/Radii8Library/src/com/flexcapacitor/model/Project.as new file mode 100644 index 000..29c87a1 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/model/Project.as @@ -0,0 +1,1035 @@ + +// +// 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 com.flexcapacitor.model { + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.services.IServiceEvent; + import com.flexcapacitor.services.IWPServiceEvent; + + import flash.events.Event; + import flash.events.IEventDispatcher; + import flash.net.URLVariables; + + import mx.utils.UIDUtil; + + /** +* Dispatched when project is saved +* */ + [Event(name=saveResults, type=flash.events.Event)] + + /** +* Dispatched when project is opened +* */ + [Event(name=projectOpened, type=flash.events.Event)] + + /** +* Project model +* */ + public class Project extends ProjectData implements IProject, ISavable { + + /** +* Constructor +* */ + public function Project() { + nodeName = project; + nameIndex++; + uid = UIDUtil.createUID(); + } + + public static var PROJECT_OPENED:String = projectOpened; + + /** +* Used when creating incremental project names +* */ + public static var nameIndex:int; + + /** +* Used when creating incremental document names +* */ + public var documentNameIndex:int; + + /** +* Default name for new documents +* */ + public var defaultDocumentName:String = Document; + + /** +* Set to true when saving because we need to wait until we get IDs for the documents +* */ + private var deferSave:Boolean; + + /** +* Set to true when saving because we need to wait until we get IDs for the documents +* */ + private var deferSaveLocations:String; + + + private var _documentsMetaData:Array = []; + + /** +* Array of documents meta data +* */ + public function get documentsMetaData():Array { + return _documentsMetaData; + } + + public function set documentsMetaData(value:Array):void { + _documentsMetaData = value; + } + + + private var _projectData:IProjectData; + + /** +* Defines the last restored saved project data object +* */ + public function get projectData():IProjectData { + return _projectData; + } + + /** +* @private +*/ + public function set projectData(value:IProjectData):void { + _projectData = value; + } + + /** +* Create unique document name +* */ + public function createDocumentName(document:IDocument = null):String { + var name:String; + + if (document) { + name = document.name ? document.name : defaultDocumentName; + } + + var length:int =
[26/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/TextInput.png -- diff --git a/Radii8Designer/src/assets/images/components/TextInput.png b/Radii8Designer/src/assets/images/components/TextInput.png new file mode 100644 index 000..1bf63c3 Binary files /dev/null and b/Radii8Designer/src/assets/images/components/TextInput.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/TileGroup.png -- diff --git a/Radii8Designer/src/assets/images/components/TileGroup.png b/Radii8Designer/src/assets/images/components/TileGroup.png new file mode 100644 index 000..1bf63c3 Binary files /dev/null and b/Radii8Designer/src/assets/images/components/TileGroup.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/TitleWindow.png -- diff --git a/Radii8Designer/src/assets/images/components/TitleWindow.png b/Radii8Designer/src/assets/images/components/TitleWindow.png new file mode 100644 index 000..21fb8d8 Binary files /dev/null and b/Radii8Designer/src/assets/images/components/TitleWindow.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/ToggleButton.png -- diff --git a/Radii8Designer/src/assets/images/components/ToggleButton.png b/Radii8Designer/src/assets/images/components/ToggleButton.png new file mode 100644 index 000..d5e8a8f Binary files /dev/null and b/Radii8Designer/src/assets/images/components/ToggleButton.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/VGroup.png -- diff --git a/Radii8Designer/src/assets/images/components/VGroup.png b/Radii8Designer/src/assets/images/components/VGroup.png new file mode 100644 index 000..21fb8d8 Binary files /dev/null and b/Radii8Designer/src/assets/images/components/VGroup.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/VScrollBar.png -- diff --git a/Radii8Designer/src/assets/images/components/VScrollBar.png b/Radii8Designer/src/assets/images/components/VScrollBar.png new file mode 100644 index 000..1bf63c3 Binary files /dev/null and b/Radii8Designer/src/assets/images/components/VScrollBar.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/VSlider.png -- diff --git a/Radii8Designer/src/assets/images/components/VSlider.png b/Radii8Designer/src/assets/images/components/VSlider.png new file mode 100644 index 000..49ab36c Binary files /dev/null and b/Radii8Designer/src/assets/images/components/VSlider.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/VideoDisplay.png -- diff --git a/Radii8Designer/src/assets/images/components/VideoDisplay.png b/Radii8Designer/src/assets/images/components/VideoDisplay.png new file mode 100644 index 000..1bf63c3 Binary files /dev/null and b/Radii8Designer/src/assets/images/components/VideoDisplay.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/VideoPlayer.png -- diff --git a/Radii8Designer/src/assets/images/components/VideoPlayer.png b/Radii8Designer/src/assets/images/components/VideoPlayer.png new file mode 100644 index 000..1bf63c3 Binary files /dev/null and b/Radii8Designer/src/assets/images/components/VideoPlayer.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/components/application.png -- diff --git a/Radii8Designer/src/assets/images/components/application.png b/Radii8Designer/src/assets/images/components/application.png new file mode 100644 index 000..49ab36c Binary files /dev/null and b/Radii8Designer/src/assets/images/components/application.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Designer/src/assets/images/logo.png -- diff --git a/Radii8Designer/src/assets/images/logo.png b/Radii8Designer/src/assets/images/logo.png new file mode 100644 index
[07/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/panels/PropertyInspector.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/panels/PropertyInspector.mxml b/Radii8Library/src/com/flexcapacitor/views/panels/PropertyInspector.mxml new file mode 100644 index 000..7fac6a2 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/PropertyInspector.mxml @@ -0,0 +1,1629 @@ +?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:Group 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:c=com.flexcapacitor.controls.* +xmlns:handlers=com.flexcapacitor.handlers.* +xmlns:collections=com.flexcapacitor.effects.collections.* +xmlns:components=com.flexcapacitor.components.* + +minWidth=100 +minHeight=100 +creationComplete=creationCompleteHandler(event) + + + + !-- + This is a standard properties grid that is showing property and value + except that the editor (color picker, text input, etc) is + in the footer rather than next to the view. + + There is a second view that attempts to put the editor next to the + property. This sort of works but is CPU intensive and causes slow + down. This may be because it has hundreds of properties or + another cause. The idea then would be to specify the properties + in the spark or inspectors manifest file and only show those. + Or it would show only the properties defined on it's self. + For example, if it's a Button it will show only the Button + class properties but not ButtonBase, UIComponent and so on. + This has its limitations though. What about size and position? + In that case, the common properties from the inherited classes + would have to be specified. So Button would show all of it's + properties, then any properties on ButtonBase that were specified + as useful would be shown and then add any properties on UIComponent + that were specified as useful would be shown. + + For Button this would look like this: + - + Label - Part of Button base + - + Width - Part of UIComponent + Height + X + Y + + Unfortunately there is the order and grouping to keep in mind. + + The third view would be custom property inspectors based on type or class. + This is defined in the inspectors manifest file. It specifies the views to + display by class name or URL. + + + One of the current problems is that the component or class and it's + description is in XML still in some locations and not stored anywhere else. + We use describeType to get the properties, styles, events and inheritence. + Using XML is relatively heavy, slow and is not typed. We use this + information to dynamically build the inspectors for color, numbers, boolean + and enumerated values. + + It should be refactored. For example, class information should be globally accessable, + and return a strong data type. It should have look up for getting the + inspector type (color, boolean, text inspector etc) and for setting it's value. + + + + TODO: + - do not update if not visible or is not active tab + - add refresh button + - display read only property + - filter to show only the properties that we specify + - show custom views when defined + - add better way to switch between views + -- + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.RadiateEvent; + import com.flexcapacitor.model.AccessorMetaData; + import
[11/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/panels/CodeInspector.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/panels/CodeInspector.mxml b/Radii8Library/src/com/flexcapacitor/views/panels/CodeInspector.mxml new file mode 100644 index 000..77f80b8 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/CodeInspector.mxml @@ -0,0 +1,1480 @@ +?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:Group 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:c=com.flexcapacitor.controls.* +xmlns:handlers=com.flexcapacitor.handlers.* +xmlns:clipboard=com.flexcapacitor.effects.clipboard.* +xmlns:status=com.flexcapacitor.effects.status.* +xmlns:flexiframe=com.google.code.flexiframe.* +xmlns:controls=com.riaspace.controls.* + +minWidth=200 +minHeight=100 +implements=com.flexcapacitor.views.IInspector +resize=editor_resizeHandler(event) + + + + !-- + Notes: + + It may be worth investigating Moonshine project. + + *** + Code highlighting + *** + Currently there are 3 editors, a spark textarea with no + syntax highlighting, a mx text area with syntax highlighting + but some redraw issues and no undo or redo support and + an html based editor called ace editor that is awesome + but has a bug in firefox where the code cannot be edited. + when it becomes uneditable you have to click on the flex + application and then click back into the editor. + it also does not resize correctly but that may be a + flex issue. it also is being erased when hidden and revealed. + + + + *** + Writing code + *** + the code editor only shows the code of the selection or document. + it is not yet tied to the component to allow the user to enter + code and have it be retained. + + in the future there may be a second code window to show or edit the + code of the selected event. this would listen for an event like + the property or style selected event that the metadata panel uses. + and / or there may be a option to show all document code or + only event code. + + what most likely will happen is that this panel will be used to show + the selected objects generated code and or the event code. + then there would be full sized editors that open up in new + tabs that show the complete document code. or for purposes of + split view this would continue to server both purposes. + + + *** + Generating Code: + *** + this is the second or third iteration of generating source code + but it is inadequate. + there is code already started in the ComponentDecription class that + should be better. the component description would have a static + property called exporter. this would be a class that would be + used to generate the code. it would return the correct code through + the componentDescription.toString() method. + + There would be a HTML exporter, MXML exporter and so on. + + Currently the properties and the styles are not set on the + componentDescription instance. This is why we are using the current + method. + -- + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.RadiateEvent; + import com.flexcapacitor.model.IDocument; +
[01/30] Radii8 code base as accepted by IP Clearance
Repository: flex-radii8 Updated Branches: refs/heads/master [created] f370bfcf4 http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Remote/src/modules/InspectorContainer.mxml -- diff --git a/Radii8Remote/src/modules/InspectorContainer.mxml b/Radii8Remote/src/modules/InspectorContainer.mxml new file mode 100644 index 000..7cd3deb --- /dev/null +++ b/Radii8Remote/src/modules/InspectorContainer.mxml @@ -0,0 +1,724 @@ +?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:Group xmlns:fx=http://ns.adobe.com/mxml/2009; + xmlns:s=library://ns.adobe.com/flex/spark + xmlns:mx=library://ns.adobe.com/flex/mx + width=400 height=100% + minHeight=250 + styleName=shadow + creationComplete=init(event) + stateChangeComplete=module1_stateChangeCompleteHandler(event) + + + fx:Style + @namespace s library://ns.adobe.com/flex/spark; + @namespace mx library://ns.adobe.com/flex/mx; + .shadow { + textShadowColor:red; + } + /fx:Style + fx:Script + ![CDATA[ + import flash.utils.flash_proxy; + + import mx.collections.ArrayList; + import mx.events.FlexEvent; + import mx.events.MenuEvent; + + import data.Perspective; + + import managers.RemoteManager; + + import renderers.OnlineViewRenderer;OnlineViewRenderer; + import renderers.PerspectivesViewRenderer;PerspectivesViewRenderer; + import renderers.ViewRenderer; + + import spark.events.IndexChangeEvent; + + / + /// CONSTANTS + / + public const HOME_STATE:String = home; + public const ONLINE_STATE:String= online; + public const VIEWS_STATE:String = views; + public const SETTINGS_STATE:String = settings; + public const PERSPECTIVES_STATE:String = perspectives; + public const LOADING_STATE:String = loading; + + public const SHARED_OBJECT_NAME:String = save; + public const ITEMS_UPDATED:String = itemsUpdated; + public const ITEMS_UPDATE_FAULT:String = itemsUpdateFault; + public const SETTINGS_CHANGE:String = settingChange; + + / + /// Variables + / + + /** +* +* */ + [Bindable] + public var itemRenderer:ClassFactory = new ClassFactory(ViewRenderer); + + + / + /// Methods + / + + /** +* +* */ + public var clearSharedObject:Boolean = true; + + /** +* +* */ + public var remoteManager:RemoteManager = RemoteManager.getInstance(); + +
[04/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/Radii8LibraryEffectsAssets.as -- diff --git a/Radii8LibraryAssets/src/Radii8LibraryEffectsAssets.as b/Radii8LibraryAssets/src/Radii8LibraryEffectsAssets.as new file mode 100644 index 000..cc820a7 --- /dev/null +++ b/Radii8LibraryAssets/src/Radii8LibraryEffectsAssets.as @@ -0,0 +1,78 @@ + +// +// 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 { + + public class Radii8LibraryEffectsAssets { + + public function Radii8LibraryEffectsAssets() { + + } + + + /// + // EDIT + /// + + [Embed(source=assets/icons/effects/pause.png)] + public static const pause:Class; + + [Embed(source=assets/icons/effects/play.png)] + public static const play:Class; + + [Embed(source=assets/icons/effects/playpause.png)] + public static const playpause:Class; + + [Embed(source=assets/icons/effects/reverse.png)] + public static const reverse:Class; + + [Embed(source=assets/icons/effects/refresh.png)] + public static const refresh:Class; + + [Embed(source=assets/icons/effects/stop.png)] + public static const stop:Class; + + [Embed(source=assets/icons/effects/clear.png)] + public static const clear:Class; + + [Embed(source=assets/icons/effects/playhead.png)] + public static const playhead:Class; + + [Embed(source=assets/icons/effects/playhead_light.png)] + public static const playheadLight:Class; + + [Embed(source=assets/icons/effects/end.png)] + public static const end:Class; + + [Embed(source=assets/icons/effects/close_16.png)] + public static const close:Class; + + [Embed(source=assets/icons/effects/loop_off.png)] + public static const loopOff:Class; + + [Embed(source=assets/icons/effects/loop_on.png)] + public static const loopOn:Class; + + [Embed(source=assets/icons/effects/selected.png)] + public static const selected:Class; + + + + + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/Radii8LibraryInspectorAssets.as -- diff --git a/Radii8LibraryAssets/src/Radii8LibraryInspectorAssets.as b/Radii8LibraryAssets/src/Radii8LibraryInspectorAssets.as new file mode 100644 index 000..4200fbe --- /dev/null +++ b/Radii8LibraryAssets/src/Radii8LibraryInspectorAssets.as @@ -0,0 +1,62 @@ + +// +// 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
[17/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/utils/DragManagerUtil.as -- diff --git a/Radii8Library/src/com/flexcapacitor/utils/DragManagerUtil.as b/Radii8Library/src/com/flexcapacitor/utils/DragManagerUtil.as new file mode 100644 index 000..09209cd --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/utils/DragManagerUtil.as @@ -0,0 +1,1794 @@ + +// +// 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 com.flexcapacitor.utils { + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.DragDropEvent; + import com.flexcapacitor.model.IDocument; + import com.flexcapacitor.utils.supportClasses.ComponentDescription; + import com.flexcapacitor.utils.supportClasses.DragData; + import com.flexcapacitor.utils.supportClasses.TargetSelectionGroup; + + import flash.display.DisplayObject; + import flash.display.DisplayObjectContainer; + import flash.display.Sprite; + import flash.events.Event; + import flash.events.EventDispatcher; + import flash.events.MouseEvent; + import flash.filters.DropShadowFilter; + import flash.geom.Point; + import flash.geom.Rectangle; + import flash.utils.Dictionary; + + import mx.collections.ArrayCollection; + import mx.core.BitmapAsset; + import mx.core.DragSource; + import mx.core.FlexGlobals; + import mx.core.FlexSprite; + import mx.core.IFactory; + import mx.core.IFlexDisplayObject; + import mx.core.IUIComponent; + import mx.core.IVisualElement; + import mx.core.IVisualElementContainer; + import mx.events.DragEvent; + import mx.managers.DragManager; + import mx.managers.ISystemManager; + import mx.managers.PopUpManager; + import mx.utils.NameUtil; + + import spark.components.Application; + import spark.components.Image; + import spark.components.SkinnableContainer; + import spark.components.supportClasses.GroupBase; + import spark.components.supportClasses.ItemRenderer; + import spark.components.supportClasses.Skin; + import spark.layouts.BasicLayout; + import spark.layouts.HorizontalLayout; + import spark.layouts.TileLayout; + import spark.layouts.VerticalLayout; + import spark.layouts.supportClasses.DropLocation; + import spark.layouts.supportClasses.LayoutBase; + import spark.skins.spark.ApplicationSkin; + import spark.skins.spark.ListDropIndicator; + + /** +* Drag over +* */ + [Event(name=dragOver, type=com.flexcapacitor.radiate.events.DragDropEvent)] + + /** +* Drop event +* */ + [Event(name=dragDrop, type=com.flexcapacitor.radiate.events.DragDropEvent)] + + /** +* Drop complete event +* */ + [Event(name=dragDropComplete, type=com.flexcapacitor.radiate.events.DragDropEvent)] + + /** +* Enables drag and drop of UIComponent. +* I don't know if this has a drag cancel event. +* That is, if you don't find a place to drop then what happens? +* Could listen for stage mouse up or mouse up outside. +* */ + public class DragManagerUtil extends EventDispatcher { + + + public function DragManagerUtil():void { + + } + + /** +* Used during drag and drop to indicate the target destination for the dragged element +* */ + public var dropIndicator:IFactory; + + /** +* The distance of the mouse pointer location from the edge of the dragged element +* */ + private var offset:Point = new Point; + + [Bindable] + public
[08/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/panels/LibraryInspector.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/panels/LibraryInspector.mxml b/Radii8Library/src/com/flexcapacitor/views/panels/LibraryInspector.mxml new file mode 100644 index 000..e707044 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/LibraryInspector.mxml @@ -0,0 +1,941 @@ +?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:Group 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:c=com.flexcapacitor.controls.* +xmlns:handlers=com.flexcapacitor.handlers.* +xmlns:collections=com.flexcapacitor.effects.collections.* +xmlns:status=com.flexcapacitor.effects.status.* +xmlns:clipboard=com.flexcapacitor.effects.clipboard.* +xmlns:file=com.flexcapacitor.effects.file.* +xmlns:fc=com.flexcapacitor.effects.popup.* + +implements=com.flexcapacitor.views.IInspector + +width=400 height=300 + + + !-- + + The list of components to include come from spark-manifest-defaults.xml + in Radii8LibrarySparkAssets. The include attribute must be set to true for them to be visible. + + The component classes are included by creating a reference to them in Radii8LibrarySparkAssets. + + We create an instance of the class in the mouse down handler. + + + -- + + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.DragDropEvent; + import com.flexcapacitor.events.RadiateEvent; + import com.flexcapacitor.managers.layoutClasses.LayoutDebugHelper; + import com.flexcapacitor.model.AttachmentData; + import com.flexcapacitor.model.DocumentData; + import com.flexcapacitor.model.IDocument; + import com.flexcapacitor.model.ImageData; + import com.flexcapacitor.services.WPAttachmentService; + import com.flexcapacitor.utils.DisplayObjectUtils; + import com.flexcapacitor.utils.DragManagerUtil; + import com.flexcapacitor.utils.supportClasses.ComponentDefinition; + import com.flexcapacitor.utils.supportClasses.ComponentDescription; + import com.flexcapacitor.views.IInspector; + import com.flexcapacitor.views.windows.DeleteDocumentWindow; + + import mx.core.ClassFactory; + import mx.events.DragEvent; + import mx.events.FlexEvent; + import mx.managers.ISystemManager; + import mx.managers.SystemManagerGlobals; + + import spark.components.Application; + import spark.components.Group; + import spark.components.Image; + import spark.components.Label; + import spark.events.IndexChangeEvent; + import spark.primitives.BitmapImage; + + [Bindable] + private var radiate:Radiate; + + private var target:Object; + + private var dragManagerInstance:DragManagerUtil; + + public var selectedItem:Object; + + public var fileReference:FileReference; + + + /** +* +
[02/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/tools/Zoom24.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/tools/Zoom24.png b/Radii8LibraryAssets/src/assets/icons/tools/Zoom24.png new file mode 100644 index 000..c49677f Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/tools/Zoom24.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/tools/ZoomDisabled.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/tools/ZoomDisabled.png b/Radii8LibraryAssets/src/assets/icons/tools/ZoomDisabled.png new file mode 100644 index 000..4f70b5c Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/tools/ZoomDisabled.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/tools/ZoomIn.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/tools/ZoomIn.png b/Radii8LibraryAssets/src/assets/icons/tools/ZoomIn.png new file mode 100644 index 000..4f70b5c Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/tools/ZoomIn.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/tools/ZoomOut.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/tools/ZoomOut.png b/Radii8LibraryAssets/src/assets/icons/tools/ZoomOut.png new file mode 100644 index 000..4f70b5c Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/tools/ZoomOut.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8LibraryAssets/src/assets/icons/tools/dragStripIcon.png -- diff --git a/Radii8LibraryAssets/src/assets/icons/tools/dragStripIcon.png b/Radii8LibraryAssets/src/assets/icons/tools/dragStripIcon.png new file mode 100644 index 000..a41854b Binary files /dev/null and b/Radii8LibraryAssets/src/assets/icons/tools/dragStripIcon.png differ http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Remote/.actionScriptProperties -- diff --git a/Radii8Remote/.actionScriptProperties b/Radii8Remote/.actionScriptProperties new file mode 100644 index 000..5c3a3e7 --- /dev/null +++ b/Radii8Remote/.actionScriptProperties @@ -0,0 +1,49 @@ +?xml version=1.0 encoding=UTF-8 standalone=no? +!-- + +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. + +-- +actionScriptProperties analytics=false mainApplicationPath=Radii8Remote.mxml projectUUID=13a56b92-38a6-4a48-a772-efccfe7b6f49 version=10 + compiler additionalCompilerArguments=-locale en_US autoRSLOrdering=true copyDependentFiles=true fteInMXComponents=false generateAccessible=true htmlExpressInstall=true htmlGenerate=true htmlHistoryManagement=true htmlPlayerVersionCheck=true includeNetmonSwc=false outputFolderPath=bin-debug removeUnusedRSL=true sourceFolderPath=src strict=true targetPlayerVersion=0.0.0 useApolloConfig=false useDebugRSLSwfs=true 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 + libraryPathEntry kind=1 linkType=1 path=libs/ + libraryPathEntry kind=3 linkType=1 path=/Radii8Library/bin/Radii8Library.swc useDefaultLinkType=false/ + libraryPathEntry kind=3 linkType=1 path=/MyLibrary/bin/MyLibrary.swc useDefaultLinkType=false/ + libraryPathEntry kind=3 linkType=1 path=/Radii8LibraryAssets/bin/Radii8LibraryAssets.swc useDefaultLinkType=false/ + libraryPathEntry kind=3 linkType=1 path=/FCLibrary/bin/FCLibrary.swc useDefaultLinkType=false/ +
[13/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/LayersInspector.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/LayersInspector.mxml b/Radii8Library/src/com/flexcapacitor/views/LayersInspector.mxml new file mode 100644 index 000..c06f9e3 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/LayersInspector.mxml @@ -0,0 +1,693 @@ +?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:Group 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:views=com.flexcapacitor.views.* +xmlns:c=com.flexcapacitor.controls.* + +width=200 height=100% +creationComplete=creationCompleteHandler(event) +implements=com.flexcapacitor.views.IInspector + + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.RadiateEvent; + import com.flexcapacitor.model.IDocument; + import com.flexcapacitor.utils.DisplayObjectUtils; + import com.flexcapacitor.utils.supportClasses.ComponentDescription; + import com.flexcapacitor.views.renderers.LayersRenderer; + import com.flexcapacitor.views.supportClasses.LayersDataDescriptor; + + import mx.collections.ArrayCollection; + import mx.core.mx_internal; + import mx.events.DragEvent; + import mx.events.FlexEvent; + import mx.events.ListEvent; + import mx.events.TreeEvent; + import mx.states.AddItems; + + import spark.components.Application; + + private var rootDisplayObject:DisplayObject; + private var displayList:Array = []; + private var radiate:Radiate; + private var designDocument:IEventDispatcher; + + [Bindable] + public var components:ArrayCollection = new ArrayCollection(); + + private var _target:*; + + public function get target():* { + return _target; + } + + [Bindable] + public function set target(value:*):void { + _target = value; + } + + public function activate():void { + radiate = Radiate.instance; + updateComponentDisplayList(); + + radiate.addEventListener(RadiateEvent.TARGET_CHANGE, targetChangeHandler, false, 0, true); + radiate.addEventListener(RadiateEvent.DOCUMENT_CHANGE, documentChangeHandler, false, 0, true); + radiate.addEventListener(RadiateEvent.ADD_ITEM, addItemChangeHandler, false, 0, true); + radiate.addEventListener(RadiateEvent.MOVE_ITEM, addItemChangeHandler, false, 0, true); + radiate.addEventListener(RadiateEvent.REMOVE_ITEM, addItemChangeHandler, false, 0, true); + + if (radiate.target) { + updateTarget(radiate.target); + } + } + + public function deactivate():void { + if (radiate) { + +
[05/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/windows/ExportDocumentWindow.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/windows/ExportDocumentWindow.mxml b/Radii8Library/src/com/flexcapacitor/views/windows/ExportDocumentWindow.mxml new file mode 100644 index 000..45a5673 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/windows/ExportDocumentWindow.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. + +-- +windows:AnimatedPanelWindow 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:handlers=com.flexcapacitor.handlers.* + xmlns:fc=com.flexcapacitor.effects.popup.* + xmlns:views=com.flexcapacitor.views.* + xmlns:panels=com.flexcapacitor.views.panels.* + xmlns:windows=com.flexcapacitor.views.windows.* + + title=Save As... + creationComplete=panel1_creationCompleteHandler(event) + + + fx:Script + ![CDATA[ + import com.flexcapacitor.controller.Radiate; + import com.flexcapacitor.events.RadiateEvent; + + import mx.events.EffectEvent; + import mx.events.FlexEvent; + + public static const NEW_DOCUMENT:String = newDocument; + public static const CURRENT_DOCUMENT:String = currentDocument; + public static const CURRENT_SELECTION:String = currentSelection; + + + protected function panel1_creationCompleteHandler(event:FlexEvent):void { + codeInspector.exportWindow = true; + codeInspector.activate(); + } + + protected function eventhandler1_effectEndHandler(event:EffectEvent):void { + codeInspector.deactivate(); + } + + protected function saveButton_clickHandler(event:MouseEvent):void { + var radiate:Radiate = Radiate.getInstance(); + var codeType:String = codeInspector.codeType.selectedItem as String; + var extension:String = (codeType==CodeInspector.HTML) ? html : (codeType==CodeInspector.MXML) ? mxml : xml; + + radiate.saveFileAs(codeInspector.sourceCode, radiate.selectedDocument.name, extension); + radiate.addEventListener(RadiateEvent.DOCUMENT_SAVE_COMPLETE, completeHandler, false, 0, true); + radiate.addEventListener(RadiateEvent.DOCUMENT_SAVE_AS_CANCEL, cancelHandler, false, 0, true); + } + + protected function completeHandler(event:Event):void { + codeInspector.deactivate(); + closePopUp.startDelay = closePanelDelay; + closePopUp.play(); + } + + protected function cancelHandler(event:Event):void { + //Radiate.log.info(Canceled Save); + } + + ]] + /fx:Script + + fx:Declarations + + !--- hide about popup -- + handlers:EventHandler targets={cancelButton} eventName=click + s:SetAction property=action target={this} value=cancel/ + fc:ClosePopUp id=closePopUp popUp={this}
[30/30] git commit: Radii8 code base as accepted by IP Clearance
Radii8 code base as accepted by IP Clearance Project: http://git-wip-us.apache.org/repos/asf/flex-radii8/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-radii8/commit/f370bfcf Tree: http://git-wip-us.apache.org/repos/asf/flex-radii8/tree/f370bfcf Diff: http://git-wip-us.apache.org/repos/asf/flex-radii8/diff/f370bfcf Branch: refs/heads/master Commit: f370bfcf49a2753277e787ce5b906285786a4bc2 Parents: Author: Alex Harui aha...@apache.org Authored: Tue Sep 2 17:17:14 2014 -0700 Committer: Alex Harui aha...@apache.org Committed: Tue Sep 2 17:17:14 2014 -0700 -- LICENSE | 222 + NOTICE |8 + README | 33 + Radii8Designer/.actionScriptProperties | 62 + .../UpdateVersionNumber.launch | 30 + Radii8Designer/.flexProperties | 20 + Radii8Designer/.project | 53 + .../.settings/org.eclipse.core.resources.prefs |3 + Radii8Designer/build.number |3 + .../html-template/history/history.css | 24 + Radii8Designer/html-template/history/history.js | 696 ++ .../html-template/history/historyFrame.html | 45 + .../html-template/index.template.html | 158 + Radii8Designer/html-template/swfobject.js |4 + Radii8Designer/readme.txt | 193 + Radii8Designer/src/JSONAPI.mxml | 1795 Radii8Designer/src/Main.mxml| 1228 +++ Radii8Designer/src/Remote.mxml | 683 ++ Radii8Designer/src/TestingAceEditor.mxml| 181 + Radii8Designer/src/application.mxml | 33 + .../images/components/BorderContainer.png | Bin 0 - 2811 bytes .../src/assets/images/components/Button.png | Bin 0 - 2811 bytes .../src/assets/images/components/ButtonBar.png | Bin 0 - 2811 bytes .../src/assets/images/components/CheckBox.png | Bin 0 - 2811 bytes .../src/assets/images/components/ComboBox.png | Bin 0 - 2811 bytes .../src/assets/images/components/DataGrid.png | Bin 0 - 2811 bytes .../src/assets/images/components/DataGroup.png | Bin 0 - 2811 bytes .../assets/images/components/DropDownList.png | Bin 0 - 2811 bytes .../src/assets/images/components/Form.png | Bin 0 - 2811 bytes .../assets/images/components/FormHeading.png| Bin 0 - 2811 bytes .../images/components/GridColumnHeaderGroup.png | Bin 0 - 2811 bytes .../src/assets/images/components/Group.png | Bin 0 - 2811 bytes .../src/assets/images/components/HGroup.png | Bin 0 - 2811 bytes .../src/assets/images/components/HScrollBar.png | Bin 0 - 2811 bytes .../src/assets/images/components/HSlider.png| Bin 0 - 2811 bytes .../src/assets/images/components/Image.png | Bin 0 - 2811 bytes .../src/assets/images/components/Label.png | Bin 0 - 2811 bytes .../src/assets/images/components/LinkButton.png | Bin 0 - 2811 bytes .../src/assets/images/components/List.png | Bin 0 - 2811 bytes .../assets/images/components/NumericStepper.png | Bin 0 - 2811 bytes .../src/assets/images/components/Panel.png | Bin 0 - 2811 bytes .../assets/images/components/RadioButton.png| Bin 0 - 2811 bytes .../images/components/RadioButtonGroup.png | Bin 0 - 2811 bytes .../images/components/RichEditableText.png | Bin 0 - 900 bytes .../src/assets/images/components/RichText.png | Bin 0 - 2811 bytes .../src/assets/images/components/Scroller.png | Bin 0 - 900 bytes .../images/components/SkinnableContainer.png| Bin 0 - 900 bytes .../components/SkinnableDataContainer.png | Bin 0 - 2811 bytes .../src/assets/images/components/Spacer.png | Bin 0 - 2811 bytes .../src/assets/images/components/Spinner.png| Bin 0 - 900 bytes .../src/assets/images/components/TabBar.png | Bin 0 - 2811 bytes .../src/assets/images/components/TextArea.png | Bin 0 - 2811 bytes .../src/assets/images/components/TextInput.png | Bin 0 - 2811 bytes .../src/assets/images/components/TileGroup.png | Bin 0 - 2811 bytes .../assets/images/components/TitleWindow.png| Bin 0 - 2811 bytes .../assets/images/components/ToggleButton.png | Bin 0 - 900 bytes .../src/assets/images/components/VGroup.png | Bin 0 - 2811 bytes .../src/assets/images/components/VScrollBar.png | Bin 0 - 2811 bytes .../src/assets/images/components/VSlider.png| Bin 0 - 2811 bytes .../assets/images/components/VideoDisplay.png | Bin 0 - 2811 bytes .../assets/images/components/VideoPlayer.png| Bin 0 - 2811 bytes .../assets/images/components/application.png| Bin 0 - 2811 bytes Radii8Designer/src/assets/images/logo.png | Bin 0 - 1487 bytes Radii8Designer/src/assets/images/logo128.png| Bin 0 - 3315 bytes Radii8Designer/src/assets/images/logo2.png | Bin 0 - 3140
[06/30] Radii8 code base as accepted by IP Clearance
http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/renderers/ItemRendererButton.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/renderers/ItemRendererButton.mxml b/Radii8Library/src/com/flexcapacitor/views/renderers/ItemRendererButton.mxml new file mode 100644 index 000..cb37c38 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/renderers/ItemRendererButton.mxml @@ -0,0 +1,79 @@ +?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:ItemRenderer xmlns:fx=http://ns.adobe.com/mxml/2009; + xmlns:s=library://ns.adobe.com/flex/spark + xmlns:mx=library://ns.adobe.com/flex/halo + autoDrawBackground=true + useHandCursor=true + buttonMode=true + height=22 + + + fx:Metadata + [HostComponent(spark.components.List)] + /fx:Metadata + + fx:Script + ![CDATA[ + import spark.components.List; + + + [Bindable] + public var iconSource:Object; + ]] + /fx:Script + + s:states + s:State name=normal / + s:State name=hovered / + s:State name=selected / + s:State name=disabled / + /s:states + + !--s:Rect height=100% width=100% + s:fill + s:SolidColor color=0xEE + alpha=0 + alpha.hovered=0.1 + alpha.selected=0.4 / + /s:fill + /s:Rect-- + + s:BitmapImage id=icon + source={iconSource} + verticalCenter=0 + left=5 + + /s:BitmapImage + + + + s:Label id=labelDisplay +height=100% +width=100% +left=20 +top=3 +verticalAlign=middle +itemCreationPolicy=immediate +paddingLeft=5 +paddingRight=5 +includeIn=hovered, normal, selected, disabled/ + +/s:ItemRenderer http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/renderers/LayersRenderer.mxml -- diff --git a/Radii8Library/src/com/flexcapacitor/views/renderers/LayersRenderer.mxml b/Radii8Library/src/com/flexcapacitor/views/renderers/LayersRenderer.mxml new file mode 100644 index 000..146b2a1 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/renderers/LayersRenderer.mxml @@ -0,0 +1,227 @@ +?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:MXTreeItemRenderer xmlns:fx=http://ns.adobe.com/mxml/2009; + xmlns:s=library://ns.adobe.com/flex/spark + xmlns:mx=library://ns.adobe.com/flex/mx + width=100%