Index: lams_flex/LamsAuthor/src/assets/css/propertyInspector.css =================================================================== RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/assets/css/propertyInspector.css,v diff -u -r1.2 -r1.3 --- lams_flex/LamsAuthor/src/assets/css/propertyInspector.css 3 Feb 2010 04:04:39 -0000 1.2 +++ lams_flex/LamsAuthor/src/assets/css/propertyInspector.css 4 Feb 2010 03:15:49 -0000 1.3 @@ -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 =================================================================== RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/assets/icons/maximise.png,v diff -u Binary files differ Index: lams_flex/LamsAuthor/src/assets/icons/minimise.png =================================================================== RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/assets/icons/minimise.png,v diff -u Binary files differ Index: lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml =================================================================== RCS file: /usr/local/cvsroot/lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml,v diff -u -r1.4 -r1.5 --- lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml 3 Feb 2010 05:23:50 -0000 1.4 +++ lams_flex/LamsAuthor/src/org/lamsfoundation/lams/author/components/PropertyInspector.mxml 4 Feb 2010 03:15:49 -0000 1.5 @@ -1,16 +1,20 @@ - + > - + - - - - - - - - - - - - - - + + + + + + + + + + + - + - - + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + - - + + + + + + + + - - - - - - - + + + + + + - - - + + - - + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + - + - + Index: lams_flex/LamsFlexCommon/.flexLibProperties =================================================================== RCS file: /usr/local/cvsroot/lams_flex/LamsFlexCommon/.flexLibProperties,v diff -u -r1.2 -r1.3 --- lams_flex/LamsFlexCommon/.flexLibProperties 15 Jan 2010 03:39:06 -0000 1.2 +++ lams_flex/LamsFlexCommon/.flexLibProperties 4 Feb 2010 03:15:48 -0000 1.3 @@ -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 =================================================================== RCS file: /usr/local/cvsroot/lams_flex/LamsFlexCommon/src/org/lamsfoundation/lams/common/ui/components/ButtonPanel.as,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ lams_flex/LamsFlexCommon/src/org/lamsfoundation/lams/common/ui/components/ButtonPanel.as 4 Feb 2010 03:15:48 -0000 1.1 @@ -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