Changeset 51 for gssim_ui


Ignore:
Timestamp:
08/31/11 14:47:55 (14 years ago)
Author:
mcichenski
Message:

layout changes, PNG -> Save as PNG

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/ExperimentComparisonChart.mxml

    r15 r51  
    265265        <mx:VBox width="100%" height="100%"> 
    266266                <mx:Canvas  width="100%"> 
    267                         <mx:HBox width="100%" id="configPanel" includeInLayout="{configPanel.visible}"> 
    268                                 <mx:VBox width="200"> 
    269                                         <mx:Label text="{resourceManager.getString('Charts', 'AvailableExperiments')}" width="100%" /> 
    270                                         <mx:List id="availableList" dragEnabled="true" dragMoveEnabled="true" width="100%" /> 
    271                                 </mx:VBox> 
    272                                 <mx:VBox width="200"> 
    273                                         <mx:Label text="{resourceManager.getString('Charts', 'IncludedExperiments')}" width="100%" /> 
    274                                         <mx:List dataProvider="{experiments}" id="expList" dropEnabled="true" width="100%" /> 
    275                                         <mx:Button label="Remove item" click="removeItem(expList.selectedIndex)"/> 
    276                                 </mx:VBox> 
    277                                 <mx:VBox width="100%"> 
    278                                         <mx:List id="parameterList" dataProvider="{parameterTypes}" labelField="parameter"> 
    279                                                 <mx:itemRenderer> 
    280                                                         <fx:Component> 
    281                                                                 <mx:CheckBox selectedField="selected" label="{data.parameter}" 
    282                                                                                          change="onChange(event);"> 
    283                                                                         <fx:Script> 
    284                                                                                 <![CDATA[ 
    285                                                                                         private function onChange(evt:Event):void { 
    286                                                                                                 data.selected = !data.selected; 
    287                                                                                         } 
    288                                                                                 ]]> 
    289                                                                         </fx:Script> 
    290                                                                 </mx:CheckBox> 
    291                                                         </fx:Component> 
    292                                                 </mx:itemRenderer> 
    293                                         </mx:List> 
    294                                 </mx:VBox> 
    295                         </mx:HBox> 
    296                         <mx:VBox right="0"> 
    297                                 <mx:HBox> 
    298                                         <mx:Button label="{resourceManager.getString('Charts', 'Collapse')}" click="collapse(false);" visible="{configPanel.visible}" includeInLayout="{configPanel.visible}"/> 
    299                                         <mx:Button label="{resourceManager.getString('Charts', 'UnCollapse')}" click="collapse(true);" visible="{!configPanel.visible}" includeInLayout="{!configPanel.visible}"/> 
    300                                         <mx:Button label="PNG" click="saveAsPNG();"/> 
    301                                 </mx:HBox> 
    302                                 <mx:VBox visible="{configPanel.visible}" includeInLayout="{configPanel.visible}"> 
    303                                         <mx:HBox> 
    304                                                 <mx:Label text="{resourceManager.getString('Charts', 'XAxisParameterLabel')}"/>                                  
    305                                                 <mx:ComboBox dataProvider="{xAxisTypeAC}" id="xAxisTypeComboBox"/>       
     267                        <s:Group width="100%"> 
     268                                <s:Rect width="100%" height="100%"> 
     269                                        <s:stroke> 
     270                                                <s:SolidColorStroke color="0x999999" weight="1"/> 
     271                                        </s:stroke> 
     272                                </s:Rect> 
     273                                <mx:Canvas  width="100%"> 
     274                                        <mx:HBox width="100%" id="configPanel" includeInLayout="{configPanel.visible}"> 
     275                                                <mx:VBox width="200"> 
     276                                                        <mx:Label text="{resourceManager.getString('Charts', 'AvailableExperiments')}" width="100%" /> 
     277                                                        <mx:List id="availableList" dragEnabled="true" dragMoveEnabled="true" width="100%" /> 
     278                                                </mx:VBox> 
     279                                                <mx:VBox width="200"> 
     280                                                        <mx:Label text="{resourceManager.getString('Charts', 'IncludedExperiments')}" width="100%" /> 
     281                                                        <mx:List dataProvider="{experiments}" id="expList" dropEnabled="true" width="100%" /> 
     282                                                        <mx:Button label="Remove item" click="removeItem(expList.selectedIndex)"/> 
     283                                                </mx:VBox> 
     284                                                <mx:VBox width="100%"> 
     285                                                        <mx:List id="parameterList" dataProvider="{parameterTypes}" labelField="parameter"> 
     286                                                                <mx:itemRenderer> 
     287                                                                        <fx:Component> 
     288                                                                                <mx:CheckBox selectedField="selected" label="{data.parameter}" 
     289                                                                                                         change="onChange(event);"> 
     290                                                                                        <fx:Script> 
     291                                                                                                <![CDATA[ 
     292                                                                                                        private function onChange(evt:Event):void { 
     293                                                                                                                data.selected = !data.selected; 
     294                                                                                                        } 
     295                                                                                                ]]> 
     296                                                                                        </fx:Script> 
     297                                                                                </mx:CheckBox> 
     298                                                                        </fx:Component> 
     299                                                                </mx:itemRenderer> 
     300                                                        </mx:List> 
     301                                                </mx:VBox> 
    306302                                        </mx:HBox> 
    307                                         <mx:HBox visible="{xAxisTypeComboBox.selectedItem.type == 'experiment'}" 
    308                                                          includeInLayout="{xAxisTypeComboBox.selectedItem.type == 'experiment'}"> 
    309                                                 <mx:Label text="{resourceManager.getString('Charts', 'ChartTypeLabel')}"/> 
    310                                                 <mx:ComboBox dataProvider="{chartTypeAC}" id="chartTypeComboBox"/> 
     303                                        <mx:VBox right="0"> 
     304                                                <mx:VBox visible="{configPanel.visible}" includeInLayout="{configPanel.visible}"> 
     305                                                        <mx:HBox> 
     306                                                                <mx:Label text="{resourceManager.getString('Charts', 'XAxisParameterLabel')}"/>                                  
     307                                                                <mx:ComboBox dataProvider="{xAxisTypeAC}" id="xAxisTypeComboBox"/>       
     308                                                        </mx:HBox> 
     309                                                        <mx:HBox visible="{xAxisTypeComboBox.selectedItem.type == 'experiment'}" 
     310                                                                         includeInLayout="{xAxisTypeComboBox.selectedItem.type == 'experiment'}"> 
     311                                                                <mx:Label text="{resourceManager.getString('Charts', 'ChartTypeLabel')}"/> 
     312                                                                <mx:ComboBox dataProvider="{chartTypeAC}" id="chartTypeComboBox"/> 
     313                                                        </mx:HBox> 
     314                                                        <mx:HBox> 
     315                                                                <mx:Label text="{resourceManager.getString('Charts', 'CharacteristicType')}"/> 
     316                                                                <mx:ComboBox dataProvider="{metricTypeAC}" id="metricTypeComboBox"/>     
     317                                                        </mx:HBox> 
     318                                                        <mx:Button label="{resourceManager.getString('Charts', 'Plot')}" click="plot();"/> 
     319                                                </mx:VBox> 
     320                                        </mx:VBox> 
     321                                        <mx:HBox bottom="0" right="0"> 
     322                                                <mx:Button label="{resourceManager.getString('Charts', 'ToPNG')}" click="saveAsPNG();"/> 
     323                                                <mx:Button label="{resourceManager.getString('Charts', 'Collapse')}" click="collapse(false);" visible="{configPanel.visible}" includeInLayout="{configPanel.visible}"/> 
     324                                                <mx:Button label="{resourceManager.getString('Charts', 'UnCollapse')}" click="collapse(true);" visible="{!configPanel.visible}" includeInLayout="{!configPanel.visible}"/> 
    311325                                        </mx:HBox> 
    312                                         <mx:HBox> 
    313                                                 <mx:Label text="{resourceManager.getString('Charts', 'CharacteristicType')}"/> 
    314                                                 <mx:ComboBox dataProvider="{metricTypeAC}" id="metricTypeComboBox"/>     
    315                                         </mx:HBox> 
    316                                         <mx:Button label="{resourceManager.getString('Charts', 'Plot')}" click="plot();"/> 
    317                                 </mx:VBox> 
    318                         </mx:VBox> 
     326                                </mx:Canvas> 
     327                        </s:Group> 
    319328                </mx:Canvas> 
    320329                <mx:Canvas width="100%" height="100%" id="chartCanvas"> 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/charts/GanntChart.mxml

    r50 r51  
    365365        <mx:VBox width="100%" height="100%"> 
    366366                <mx:HBox> 
    367                         <mx:Button label="PNG" click="saveAsPNG();"/> 
     367                        <mx:Button label="{resourceManager.getString('Charts', 'ToPNG')}" click="saveAsPNG();"/> 
    368368                </mx:HBox> 
    369369                <mx:VBox width="100%" height="100%" verticalGap="1" id="fullChart"> 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/charts/ResourceChart.mxml

    r47 r51  
    256256                        <mx:ComboBox dataProvider="{chartTypeAC}" id="chartTypeComboBox" change="onServerComboChange(event)"/> 
    257257                        <mx:Button label="{resourceManager.getString('Charts', 'Clone')}" click="cloneChart()"/> 
    258                         <mx:Button label="PNG" click="saveAsPNG();"/> 
     258                        <mx:Button label="{resourceManager.getString('Charts', 'ToPNG')}" click="saveAsPNG();"/> 
    259259                </mx:HBox> 
    260260                <mx:VBox width="100%" height="100%" verticalGap="1" id="fullChart"> 
     
    291291                                                maximumLabelPrecision="1"  
    292292                                                autoAdjust="false"  
    293                                                 title="{resourceManager.getString('Charts', 'CPU')}" 
     293                                                title="{(chartTypeComboBox.selectedItem.type == 'allocation' ? resourceManager.getString('Charts', 'CPU') : resourceManager.getString('Charts', 'Energy'))}" 
    294294                                            /> 
    295295                                        </mx:verticalAxis> 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/en_US/Charts.properties

    r22 r51  
    3333Aggregate=Aggregated 
    3434GanntChartTitle=Task Allocation Chart for Grid Scheduling Simulator 
     35Energy=Energy usage 
     36ToPNG=Save as PNG 
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/pl_PL/Charts.properties

    r22 r51  
    3333Aggregate=Sumaryczny 
    3434GanntChartTitle=Wykres alokacji zadań dla Grid Scheduling Simulator 
     35Energy=ZuÅŒycie energii 
     36ToPNG=Zapisz jako PNG 
Note: See TracChangeset for help on using the changeset viewer.