Changeset 80 for gssim_ui/branches/vine/gssimstudio/src/web/ui
- Timestamp:
- 09/13/11 14:34:04 (14 years ago)
- Location:
- gssim_ui/branches/vine/gssimstudio/src/web/ui/flex
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/charts/ResourceChart.mxml
r51 r80 128 128 static.resName = resourceComboBox.selectedItem.name; 129 129 static.dataProvider = ObjectUtil.copy(resourceViewer.dataProvider) as ArrayCollection; 130 static.type = chartTypeComboBox.selectedItem.type; 130 131 ViewsHelper.ArchiveCanvas.windowManager.add(static); 131 132 } -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/charts/StaticResourceChart.mxml
r79 r80 41 41 [Bindable] 42 42 public var resName : String; 43 [Bindable] 44 public var type : String = "allocation"; 43 45 44 46 [Bindable] … … 151 153 <mx:VBox width="100%" height="100%" verticalGap="1" id="fullChart"> 152 154 <mx:Label text="{resourceManager.getString('Charts', 'ResourceAllocationTitle')}" width="100%" styleName="title" 153 /> 155 includeInLayout="{type == 'allocation'}" 156 visible="{type == 'allocation'}"/> 157 <mx:Label text="{resourceManager.getString('Charts', 'ResourceEnergyTitle')}" width="100%" styleName="title" 158 includeInLayout="{type == 'energy'}" 159 visible="{type == 'energy'}"/> 154 160 <mx:Label text="{resourceManager.getString('Charts', 'CreatedFor')} {expName} {resourceManager.getString('Charts', 'Day')} {date}" width="100%" styleName="subtitle"/> 155 161 <mx:HBox width="100%" height="100%"> -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/editors/topology/ObjectPropertiesWindow.mxml
r78 r80 104 104 } 105 105 106 public function loadEnergyChart() : void 107 { 108 parentApplication.addModelUpdatedSingleCallbacks(parentApplication.service.getResourceTimelineFromDb(_object.nodeName,parentApplication.experimentModel.experimentConfiguration['pk'],'energy'), createEnergyChart); 109 } 110 106 111 protected function createChart(event : ResultEvent) 107 112 { … … 110 115 static.resName = _object.nodeName; 111 116 static.dataProvider = ObjectUtil.copy(parentApplication.gsSimStudioModel.resourceTimelineList) as ArrayCollection; 117 ViewsHelper.TopologyCanvas.windowManager.add(static); 118 //ViewsHelper.ArchiveCanvas.windowManager.add(static); 119 } 120 121 protected function createEnergyChart(event : ResultEvent) 122 { 123 var static : StaticResourceChart = new StaticResourceChart(); 124 static.expName = parentApplication.experimentModel.experimentConfiguration['name']; 125 static.resName = _object.nodeName; 126 static.dataProvider = ObjectUtil.copy(parentApplication.gsSimStudioModel.resourceTimelineList) as ArrayCollection; 127 static.type = "energy"; 112 128 ViewsHelper.TopologyCanvas.windowManager.add(static); 113 129 //ViewsHelper.ArchiveCanvas.windowManager.add(static); … … 171 187 <mx:HBox> 172 188 <mx:Button id="EditResourceButton" label="{resourceManager.getString('ResourceEditor', 'EditResource')}" click="editFrontend()" /> 173 <mx:Button label="KABOOM" click="loadAllocationChart()" /> 189 <mx:Button label="{resourceManager.getString('ResourceEditor', 'AllocationChart')}" click="loadAllocationChart()" /> 190 <mx:Button label="{resourceManager.getString('ResourceEditor', 'EnergyChart')}" click="loadEnergyChart()" /> 174 191 </mx:HBox> 175 192 <mx:Button label="{resourceManager.getString('TopologyEditor', 'Close')}" click="close();"/> -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/en_US/ResourceEditor.properties
r15 r80 18 18 EditResource=Edit resource 19 19 QueueParameter=Queue parameter 20 AllocationChart=Allocations 21 EnergyChart=Energy usage -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/pl_PL/ResourceEditor.properties
r15 r80 19 19 EditResource=Edytuj zasób 20 20 QueueParameter=Parametr kolejki 21 AllocationChart=Alokacje 22 EnergyChart=ZuŌycie energii
Note: See TracChangeset
for help on using the changeset viewer.