Index: lams_flex/LamsAuthor/src/assets/css/propertyInspector.css =================================================================== diff -u -rfa44eb30e5b2d91538b2915a3b3dcfc6b039dae3 -rb59f524fb51096a8d3e8341a2dbb14b6b061bab7 --- lams_flex/LamsAuthor/src/assets/css/propertyInspector.css (.../propertyInspector.css) (revision fa44eb30e5b2d91538b2915a3b3dcfc6b039dae3) +++ lams_flex/LamsAuthor/src/assets/css/propertyInspector.css (.../propertyInspector.css) (revision b59f524fb51096a8d3e8341a2dbb14b6b061bab7) @@ -49,7 +49,13 @@ font-weight:bold; } +.firstInGroup { + border-style: solid; + border-sides: top; + padding-top: 3px; +} + Index: lams_flex/LamsAuthor/src/assets/icons/maximise.png =================================================================== diff -u Binary files differ Index: lams_flex/LamsAuthor/src/assets/icons/minimise.png =================================================================== diff -u Binary files differ Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml =================================================================== diff -u -r0d708f58ed65f8cfce869f3aee815cea0d4c3f14 -rb59f524fb51096a8d3e8341a2dbb14b6b061bab7 --- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml (.../PropertyInspector.mxml) (revision 0d708f58ed65f8cfce869f3aee815cea0d4c3f14) +++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml (.../PropertyInspector.mxml) (revision b59f524fb51096a8d3e8341a2dbb14b6b061bab7) @@ -1,16 +1,20 @@ - + > - + - - - - - - - - - - - - - - + + + + + + + + + + + - + - - + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + - - + + + + + + + + - - - - - - - + + + + + + - - - + + - - + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + - + - + Index: lams_flex/LamsFlexCommon/.flexLibProperties =================================================================== diff -u -r407ed0318f79527ec2ae2220411380d708d6d9e6 -rb59f524fb51096a8d3e8341a2dbb14b6b061bab7 --- lams_flex/LamsFlexCommon/.flexLibProperties (.../.flexLibProperties) (revision 407ed0318f79527ec2ae2220411380d708d6d9e6) +++ lams_flex/LamsFlexCommon/.flexLibProperties (.../.flexLibProperties) (revision b59f524fb51096a8d3e8341a2dbb14b6b061bab7) @@ -2,26 +2,26 @@ - + - - + + - - + + - + @@ -35,24 +35,25 @@ + - - + + - - - - + + + + - + @@ -64,32 +65,32 @@ + - - - + - + + - - + + - - - + + + @@ -137,34 +138,34 @@ - + - - + + - + - - - + + + - + @@ -179,33 +180,33 @@ - + - - + - + + - - + + - + - + @@ -219,17 +220,17 @@ - + - + - + @@ -430,53 +431,53 @@ - + - + - + - + - + - + - - + + - - + + - + - + - - + + @@ -485,8 +486,8 @@ - + @@ -497,88 +498,88 @@ - + - - + + - + - + - + - + - - + + - - - - + + + + - - + + - - + + - - + + - - + + @@ -587,26 +588,26 @@ - - + + - - + + - + - + @@ -615,42 +616,42 @@ - + - - + + - + - + - - + + - + - + @@ -660,39 +661,39 @@ - + - + - - - + + + - + - + - - + + - + @@ -709,8 +710,8 @@ - + @@ -721,88 +722,88 @@ - + - - + + - - + + - + - + - + - + - + - + - + - - + - - + + + - - - + + + - + - + - + Index: lams_flex/LamsFlexCommon/src/org/lamsfoundation/lams/common/ui/components/ButtonPanel.as =================================================================== diff -u --- lams_flex/LamsFlexCommon/src/org/lamsfoundation/lams/common/ui/components/ButtonPanel.as (revision 0) +++ lams_flex/LamsFlexCommon/src/org/lamsfoundation/lams/common/ui/components/ButtonPanel.as (revision b59f524fb51096a8d3e8341a2dbb14b6b061bab7) @@ -0,0 +1,67 @@ +package org.lamsfoundation.lams.common.ui.components +{ + import flash.events.MouseEvent; + + import mx.binding.utils.BindingUtils; + import mx.containers.Panel; + import mx.controls.Button; + + [Event(name="buttonClick", type="flash.events.Event")] + + /** + * This is a panel with a button inserted into the header + * @author lfoxton + * + */ + public class ButtonPanel extends Panel + { + [Bindable] public var buttonLabel:String = " "; + [Bindable] public var buttonPadding:Number = 10; + [Bindable] public var buttonWidth:Number = 20; + [Bindable] public var buttonHeight:Number = 20; + [Bindable] public var buttonIcon:Class; + + public var mybtn:Button; + + public function ButtonPanel() + { + super(); + } + + protected override function createChildren():void + { + super.createChildren(); + + if( ! buttonLabel ) return; + + mybtn = new Button(); + mybtn.label = buttonLabel; + mybtn.width = buttonWidth; + mybtn.height = buttonHeight; + mybtn.visible = true; + mybtn.includeInLayout = true; + mybtn.setStyle("icon", buttonIcon); + mybtn.addEventListener( MouseEvent.CLICK, buttonClickHandler ); + rawChildren.addChild( mybtn ); + + } + + protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void + { + super.updateDisplayList(unscaledWidth,unscaledHeight); + var x:int = width - ( mybtn.width + buttonPadding ); + //mybtn.width = mybtn.measuredWidth; + //mybtn.height = mybtn.measuredHeight; + var headerHeight:int = this.getStyle("headerHeight"); + mybtn.width = headerHeight - 2; + mybtn.height = headerHeight - 2; + mybtn.move( x, 1 ); + } + + private function buttonClickHandler(event:MouseEvent):void + { + this.dispatchEvent( new Event( 'buttonClick', false ) ); + } + + } +} \ No newline at end of file