Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58B19119C0 for ; Wed, 3 Sep 2014 00:17:35 +0000 (UTC) Received: (qmail 36447 invoked by uid 500); 3 Sep 2014 00:17:35 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 36367 invoked by uid 500); 3 Sep 2014 00:17:35 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 36226 invoked by uid 99); 3 Sep 2014 00:17:35 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2014 00:17:35 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id C9162A05028; Wed, 3 Sep 2014 00:17:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: aharui@apache.org To: commits@flex.apache.org Date: Wed, 03 Sep 2014 00:17:41 -0000 Message-Id: <8bac1e60a3aa49c996b06d47b0236ef2@git.apache.org> In-Reply-To: <122dfe147f634c11af20cd756e3dd86d@git.apache.org> References: <122dfe147f634c11af20cd756e3dd86d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [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 0000000..e707044 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/LibraryInspector.mxml @@ -0,0 +1,941 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/panels/MetaDataInspector.mxml ---------------------------------------------------------------------- diff --git a/Radii8Library/src/com/flexcapacitor/views/panels/MetaDataInspector.mxml b/Radii8Library/src/com/flexcapacitor/views/panels/MetaDataInspector.mxml new file mode 100644 index 0000000..d773260 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/MetaDataInspector.mxml @@ -0,0 +1,191 @@ + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/panels/Profiling.mxml ---------------------------------------------------------------------- diff --git a/Radii8Library/src/com/flexcapacitor/views/panels/Profiling.mxml b/Radii8Library/src/com/flexcapacitor/views/panels/Profiling.mxml new file mode 100644 index 0000000..d3c191f --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/Profiling.mxml @@ -0,0 +1,660 @@ + + + + + + = new Vector.(1000000); + var usePush:Boolean = false; + var result:Array = []; + var length:uint = vector.length; + + PerformanceMeter.start("Test1"); + var time:int = getTimer(); + + for(var i:int = 0; i < length; i++){ + result[i] = vector[i]; + } + + time = getTimer() - time; + PerformanceMeter.stop("Test1"); + var profileTest:ProfileTest = PerformanceMeter.getTest("Test1"); + timestamps.source = profileTest.timestampsArray; + timestamps.refresh(); + //trace("time = ", time); + } + + /** + * Generates data + * */ + private function generateData():void { + //trace("generating Data"); + + /*if (currentState==LINE_STATE) { + if (lastCount <8) { + lastCount = 8; + } + + generateLineData(); + } + else {*/ + generateChartData(); + //} + } + + /** + * Generates generic chart data + * */ + public function generateChartData():void { + var newData:Array = []; + + var X:Number = Math.random()*100 - 50; + var Y:Number = X - Math.random() * 10; + var V:Number = Math.random()*100; + + + for (var i:int = 0;iaddRemoveLastTime+addRemoveInterval) { + //trace("adding new items"); + addRemoveLastTime = time; + lastCount = Math.random() * maxCount+3; + } + + // prevents data changes when animations are already running + if (chartSeriesEffect.isPlaying || pieChartSeriesEffect.isPlaying) { + scheduleDataChange = true; + } + else { + generateData(); + } + + if (timer.currentCount>15) { + dispatchEvent(new Event(ANALYSIS_COMPLETE)); + } + + initializing = false; + + lastUpdateTime = getTimer(); + } + + protected function chartSeriesEffect_effectEndHandler(event:EffectEvent):void { + + /* if (checkMe) { + trace("checking"); + } */ + if (chartSeriesDurationChanged) { + //trace('effect ended duration changed:' + getTimer()); + + chartSeriesEffect.duration = chartSeriesDuration; + pieChartSeriesEffect.duration = chartSeriesDuration; + chartSeriesDurationChanged = false; + } + else { + //trace('chart effect ended:' + getTimer()); + } + + // disable + if (scheduleDisableChange) { + //clearDataSet(dataSet); + //trace('scheduleDisableChange:' + getTimer()); + scheduleDisableChange = false; + enable = false;// try again + return; + } + + // change data + if (scheduleDataChange) { + //trace('scheduleDataChange:' + getTimer()); + generateData(); + scheduleDataChange = false; + } + + } + + + public function axisLabelFunction(labelValue:Object, previousValue:Object, axis:IAxis):String { + var characters:int = String(labelValue).length; + + if (!showLabels) { + return " "; + } + + if (characters<2) { + //trace("value"); + return "AB" + String(labelValue); + } + else if (characters<3) { + return "A" + String(labelValue); + } + + return String(labelValue); + } + + public function verticalAxisLabelFunction(labelValue:Object, previousValue:Object, axis:IAxis):String { + var characters:int = String(labelValue).length; + + + if (!showLabels) { + return " "; + } + + + //return "•"; + if (characters<2) { + //trace("value"); + return " " + String(labelValue); + } + else if (characters<3) { + return " " + String(labelValue); + } + + return String(labelValue); + } + + private function clearDataSet(dataSet:Array):void { + dataSet = null; return; + for (var i:int;i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + http://git-wip-us.apache.org/repos/asf/flex-radii8/blob/f370bfcf/Radii8Library/src/com/flexcapacitor/views/panels/ProjectInspector.mxml ---------------------------------------------------------------------- diff --git a/Radii8Library/src/com/flexcapacitor/views/panels/ProjectInspector.mxml b/Radii8Library/src/com/flexcapacitor/views/panels/ProjectInspector.mxml new file mode 100644 index 0000000..7361e35 --- /dev/null +++ b/Radii8Library/src/com/flexcapacitor/views/panels/ProjectInspector.mxml @@ -0,0 +1,336 @@ + + + + + + 0) { + radiate.setProject(radiate.projects[0], true); + } + } + + protected function closeProjectIcon_clickHandler(event:MouseEvent):void { + var project:IProject = list.selectedItem ? IProject(list.selectedItem) : null; + + if (project) { + radiate.closeProject(project); + } + } + + protected function openProjectsIcon_clickHandler(event:MouseEvent):void { + var project:IProject = list.selectedItem ? IProject(list.selectedItem) : null; + + if (project) { + radiate.openProject(project, DocumentData.INTERNAL_LOCATION); + } + } + + // HACK TO Mark project needs saved + protected function documentChangedHandler(event:RadiateEvent):void { + + if (radiate.selectedProject) { + radiate.selectedProject.checkProjectHasChanged(); + } + } + + + // HACK TO Mark project needs saved + protected function projectSavedHandler(event:Event):void { + + if (radiate.selectedProject) { + radiate.selectedProject.checkProjectHasChanged(); + } + } + + protected function autoSaveToggle_clickHandler(event:MouseEvent):void { + radiate.enableAutoSave = autoSaveToggle.selected; + } + + ]]> + + + + + + + All Projects + Open Projects + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +