Changeset 4156
- Timestamp:
- 12/06/13 14:09:54 (10 years ago)
- Location:
- ComponentRegistry/trunk/ComponentBrowserGui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui
- Property svn:mergeinfo changed
/ComponentRegistry/branches/ComponentRegistry-1.14.0/ComponentBrowserGui merged: 4145,4155
- Property svn:mergeinfo changed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/Browse.mxml
r4141 r4156 28 28 29 29 import mx.controls.Alert; 30 import mx.events.IndexChangedEvent; 30 31 31 32 public static const START_ITEM_LOADED:String = "startItemLoaded"; … … 242 243 243 244 245 246 protected function tabnav_changeHandler(event:IndexChangedEvent):void 247 { 248 Config.instance.activeFlavour = (event.newIndex==0?Config.FLAVOUR_PROFILES:Config.FLAVOUR_COMPONENTS); 249 } 244 250 245 251 ]]> … … 283 289 borderStyle="outset" 284 290 creationPolicy="all" 291 change="tabnav_changeHandler(event)" 285 292 > 286 293 <mx:VDividedBox label="Profiles" … … 296 303 height="70%" 297 304 browseMenu="{profilesMenu}" 298 typeOfDescription = " profiles"305 typeOfDescription = "{Config.FLAVOUR_PROFILES}" 299 306 createNew="createNewProfile(event)" 300 307 /> … … 318 325 height="70%" 319 326 browseMenu="{componentsMenu}" 320 typeOfDescription= " components"327 typeOfDescription= "{Config.FLAVOUR_COMPONENTS}" 321 328 createNew="createNewComponent(event)" 322 329 /> -
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml
r4099 r4156 166 166 167 167 private function onGroupSelected(event:GroupSelectionEvent):void { 168 //we're responsible only for either components or profiles 169 if (typeOfDescription!=Config.instance.activeFlavour) 170 return; 168 171 //Some handler already moved the group for us 169 172 if (event.groupWasMoved) -
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/ItemDescription.as
r3660 r4156 48 48 create(itemDescription, Config.instance.componentInfoUrl, false, space); 49 49 } 50 51 public function toString():String{ 52 return (isProfile?"profile":"component")+" id:"+id+" name:"+name+" url:"+dataUrl; 53 } 50 54 51 55 } -
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/services/Config.as
r4131 r4156 37 37 public static const VIEW_EDIT:String = "edit"; 38 38 public static const VIEW_IMPORT:String = "import"; 39 public static const FLAVOUR_PROFILES = "profiles"; 40 public static const FLAVOUR_COMPONENTS = "components"; 39 41 //Possible browser views to start with 40 42 public static const BROWSER_PANEL_VIEW:String = "view"; … … 74 76 private var _selectedGroup:String = ""; 75 77 private var _debug:Boolean = false; 78 private var _activeFlavour = FLAVOUR_PROFILES; 76 79 77 80 private var publicComponentsSrv:ComponentListService; … … 86 89 throw new Error("Config can only be accessed through Config.instance"); 87 90 } 91 } 92 93 public function get activeFlavour():String{ 94 return _activeFlavour; 95 } 96 97 public function set activeFlavour(value:String):void{ 98 _activeFlavour = value; 88 99 } 89 100
Note: See TracChangeset
for help on using the changeset viewer.