Ignore:
Timestamp:
08/15/12 13:08:27 (12 years ago)
Author:
twagoo
Message:

Moved the public/workspace switch out of Browse into a separate class and added it to both Browse and BrowserOverviewList?, it being optional (off by default) in the latter. Also made the action buttons bar optional. Now the browser panel in Editor can have different controls than the main browser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml

    r2094 r2095  
    3434                        [Bindable]
    3535                        public var viewStack:RegistryViewStack;
     36                       
     37                        [Bindable]
     38                        public var buttonsEnabled:Boolean = true;
     39                       
     40                        [Bindable]
     41                        public var spaceSwitchEnabled:Boolean = false;
    3642                       
    3743                        public function set browserDataProvider(dataProvider:ArrayCollection):void {
     
    104110                         paddingRight="5"
    105111                         width="100%">
    106        
     112               
     113                <mx:Box paddingTop="5" paddingLeft="5"
     114                                visible="{spaceSwitchEnabled}"
     115                                includeInLayout="{spaceSwitchEnabled}">
     116                        <comp:SpaceSwitch id="userSpaceCB" />
     117                </mx:Box>
     118               
    107119                <mx:HBox horizontalAlign="left"
    108120                                 verticalAlign="middle"
    109                                  width="70%">
     121                                 width="70%"
     122                                 visible="{buttonsEnabled}"
     123                                 >
    110124                       
    111125                        <mx:Button label="Create new"
Note: See TracChangeset for help on using the changeset viewer.