Changeset 272


Ignore:
Timestamp:
03/22/10 14:47:58 (14 years ago)
Author:
patdui
Message:
  • added contextmenu to info panel, removed rollover functionality (confuses too much)
Location:
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/Browse.mxml

    r252 r272  
    111111                                                                                 profile="{profileSrv.profile}"
    112112                                                                                 width="100%"
    113                                                                                  height="50%"/>
     113                                                                                 height="50%"
     114                                                                                 contextMenu="{profilesMenu.cm}"/>
    114115                        </mx:VDividedBox>
    115116
     
    127128                                                                                   component="{componentSrv.component}"
    128129                                                                                   width="100%"
    129                                                                                    height="50%"/>
     130                                                                                   height="50%"
     131                                                                                   contextMenu="{componentsMenu.cm}"/>
    130132
    131133                        </mx:VDividedBox>
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/BrowserOverviewList.mxml

    r259 r272  
    101101                                                        allowMultipleSelection="true"
    102102                                                        searchInput="{searchBox}"
    103                                                         keyUp="handleKeyUp(event)">
     103                                                        keyUp="handleKeyUp(event)"
     104                                                        useRollOver="false">
    104105        </comp:FilteringDataGrid>
    105106</mx:VBox>
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/common/components/BrowseContextMenu.as

    r249 r272  
    2727                private var _dataGrid:DataGrid;
    2828
    29                 private var rollOverIndex:int;
    3029                private var saveItemDialog:SaveItemDialog = new SaveItemDialog();
    3130
     
    3433                        cm.hideBuiltInItems();
    3534                        cm.customItems = createMenuItems();
    36                         cm.addEventListener(ContextMenuEvent.MENU_SELECT, menuSelect);
    3735                }
    3836
     
    5755                public function set dataGrid(dataGrid:DataGrid):void {
    5856                        _dataGrid = dataGrid;
    59                         _dataGrid.addEventListener(ListEvent.ITEM_ROLL_OVER, setRollOverIndex);
    60                 }
    61 
    62                 private function setRollOverIndex(event:ListEvent):void {
    63                         rollOverIndex = event.rowIndex;
    64                 }
    65 
    66                 private function menuSelect(event:ContextMenuEvent):void {
    67                         _dataGrid.selectedIndex = rollOverIndex;
    68                         _dataGrid.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
    6957                }
    7058
Note: See TracChangeset for help on using the changeset viewer.