Changeset 2126 for ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml
- Timestamp:
- 08/22/12 07:31:04 (12 years ago)
- Location:
- ComponentRegistry/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk
- Property svn:mergeinfo changed
/ComponentRegistry/branches/ComponentRegistry-1.12.0 (added) merged: 2071,2076,2079-2080,2082,2084,2090,2093-2096,2108-2113,2115-2119
- Property svn:mergeinfo changed
-
ComponentRegistry/trunk/ComponentBrowserGui
- Property svn:mergeinfo changed
/ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui (added) merged: 2071,2076,2079-2080,2082,2084,2090,2093-2096,2108-2113,2115-2116,2118-2119
- Property svn:mergeinfo changed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml
r1946 r2126 34 34 [Bindable] 35 35 public var viewStack:RegistryViewStack; 36 37 [Bindable] 38 public var buttonsEnabled:Boolean = true; 39 40 [Bindable] 41 public var spaceSwitchEnabled:Boolean = false; 36 42 37 43 public function set browserDataProvider(dataProvider:ArrayCollection):void { … … 91 97 } 92 98 99 private function importItem():void{ 100 viewStack.switchToImport(); 101 } 102 93 103 private function dispatchCreateNewEvent():void{ 94 104 dispatchEvent(new CreateNewComponentEvent()); … … 100 110 paddingRight="5" 101 111 width="100%"> 102 112 113 <mx:Box paddingTop="5" paddingLeft="5" 114 visible="{spaceSwitchEnabled}" 115 includeInLayout="{spaceSwitchEnabled}"> 116 <comp:SpaceSwitch id="userSpaceCB" /> 117 </mx:Box> 118 103 119 <mx:HBox horizontalAlign="left" 104 120 verticalAlign="middle" 105 width="50%"> 121 width="70%" 122 visible="{buttonsEnabled}" 123 > 106 124 107 <!-- public space --> 125 <mx:Button label="Create new" 126 toolTip="Create a new item in the private workspace" 127 click="dispatchCreateNewEvent()" 128 /> 129 <mx:Button label="Edit" 130 toolTip="Edit the selected item in the editor" 131 visible="{Config.instance.userSpace}" 132 includeInLayout="{Config.instance.userSpace}" 133 enabled="{Config.instance.userSpace && dataGrid.selectedItem != null}" 134 click="editItem()" /> 108 135 <mx:Button label="Edit as new" 109 136 toolTip="Edit the selected item as a new item in the private workspace" 110 includeInLayout="{!Config.instance.userSpace}"111 visible="{!Config.instance.userSpace}"112 enabled="{ (dataGrid.selectedItem != null) && Credentials.instance.isLoggedIn()}"137 visible="{!Config.instance.userSpace}" 138 includeInLayout="{!Config.instance.userSpace}" 139 enabled="{!Config.instance.userSpace && dataGrid.selectedItem != null}" 113 140 click="editItem()" /> 114 <!-- private space --> 115 <mx:Button label="Create new" includeInLayout="{Config.instance.userSpace}" 116 toolTip="Create a new item in the private workspace" 117 visible="{Config.instance.userSpace}" 118 enabled="{Credentials.instance.isLoggedIn()}" 119 click="dispatchCreateNewEvent()" 120 /> 121 <mx:Button label="Edit" includeInLayout="{Config.instance.userSpace}" 122 toolTip="Edit the selected item in the editor" 123 visible="{Config.instance.userSpace}" 124 enabled="{dataGrid.selectedItem != null && Credentials.instance.isLoggedIn()}" 125 click="editItem()" /> 141 <mx:Button label="Import" 142 toolTip="Import an item from a local file" 143 click="importItem()" /> 126 144 </mx:HBox> 127 145 128 146 <mx:HBox horizontalAlign="right" 129 147 verticalAlign="middle" 130 width=" 50%">148 width="30%"> 131 149 132 150 <rictus:SearchBox id="searchBox"
Note: See TracChangeset
for help on using the changeset viewer.