Changeset 144 for trunk/buddypub

Show
Ignore:
Timestamp:
05/06/08 01:21:56 (8 months ago)
Author:
silver
Message:
 
Location:
trunk/buddypub/bpclientflex/src
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/buddypub/bpclientflex/src/assets/css/buddypub_style.css

    r143 r144  
    1515        titleStyleName: panelControlBar; 
    1616        backgroundColor: #FFFFFF; 
     17        backgroundAlpha: 0.9; 
    1718        /*borderStyle: solid;*/ 
    1819} 
     
    4950        color:#1D1D1D; 
    5051        buttonStyleName: Button; 
     52        titleStyleName: panelControlBar; 
    5153        themeColor: #FF690A; 
    5254} 
     
    5759        barColor: #180C0C; 
    5860    fontSize: 14; 
     61    color: #FFFFFF; 
    5962} 
    6063 
     
    6568CheckBox 
    6669{ 
    67         color: #1B1B1B; 
     70        color: #009DFF; 
    6871        textRollOverColor: #1B1B1B; 
    6972        textSelectedColor: #1B1B1B; 
     73        fillColors: #FFFFFF,#FFFFFF; 
     74        fillAlphas: 1,1; 
     75        themeColor: #FF690A; 
    7076} 
    7177ScrollBar 
  • trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/view/container/ContentBoxCanvas.as

    r143 r144  
    5353                private var currentDropIndex:Number;// 当前拖动Panel放置的位置    
    5454                 
    55                 private var fullScreen:Boolean; 
     55                private var fullScreenMode:Boolean = false; 
    5656                         
    5757                public function ContentBoxCanvas() 
     
    6363                } 
    6464                 
     65                //fullview就是只最大化一个窗口,其余窗口最小化 
    6566                public function set fullview(tobeFull:Boolean):void{ 
    66                         Alert.show("全屏模式:"+tobeFull,"改变现实布局");   
    67                         fullScreen = tobeFull;           
     67                        //Alert.show("全屏模式:"+tobeFull,"改变布局");   
     68                        fullScreenMode = tobeFull;               
     69                        if(!fullScreenMode){ 
     70                                maximizedPanel.dispatchEvent(new ContentBoxStateChangeEvent(ContentBoxStateChangeEvent.RESTORE)); 
     71                                return; 
     72                        } 
     73                         
     74                        var len:Number = items.length; 
     75                        var panel:ContentBoxPanel; 
     76                        var orginalMaxPanel:ContentBoxPanel = null; 
     77                        var needToMinimize:Array = new Array(); 
     78                                                                                                         
     79                        for (var i:Number = 0; i < len; i++){ 
     80                                panel = items[i]; 
     81                                if(orginalMaxPanel==null){ 
     82                                        if (panel.windowState == ContentBoxPanel.WINDOW_STATE_MAXIMIZED || len == 1){ 
     83                                                orginalMaxPanel = panel; 
     84                                                //Alert.show("Get it!"); 
     85                                                continue; 
     86                                        }                                        
     87                                } 
     88                                if(panel.windowState != ContentBoxPanel.WINDOW_STATE_MINIMIZED){ 
     89                                        needToMinimize.push(panel);                                      
     90                                } 
     91                        } 
     92                         
     93                        if(orginalMaxPanel == null){ 
     94                                orginalMaxPanel = needToMinimize.shift(); 
     95                        } 
     96                         
     97                        for(var j:Number =0; j<needToMinimize.length;j++){ 
     98                                panel = needToMinimize[j]; 
     99                                panel.showControls = false; 
     100                                panel.dispatchEvent(new ContentBoxStateChangeEvent(ContentBoxStateChangeEvent.MINIMIZE)); 
     101                        } 
     102                        orginalMaxPanel.dispatchEvent(new ContentBoxStateChangeEvent(ContentBoxStateChangeEvent.MAXIMIZE)); 
     103                                         
    68104                } 
    69105                 
     
    117153                        } 
    118154                        updateLayout(false); 
     155                         
    119156                        //dispatchEvent(new ContentBoxStateChangeEvent(ContentBoxStateChangeEvent.DATA_CHANGE)); 
    120157                } 
     
    183220                                        //不太理解这里为什么tween 
    184221                                        if (tween){ 
    185                                                         addResizeAndMoveToParallel(panel, parallel, availablePanelWidth, availableMaximizedPanelHeight, 0, 0); 
     222                                                        //addResizeAndMoveToParallel(panel, parallel, availablePanelWidth, availableMaximizedPanelHeight, 0, 0); 
     223                                                        addResizeAndMoveToParallel(panel, parallel, availablePanelWidth, availableMaximizedPanelHeight, 0, TASKBAR_HEIGHT); 
    186224                                                } 
    187225                                                else{ 
     
    385423                                                items.addItem(panel); 
    386424                                //设置为默认状态 
    387                                 panel.windowState = ContentBoxPanel.WINDOW_STATE_DEFAULT; 
     425                                if(!fullScreenMode){ 
     426                                        panel.windowState = ContentBoxPanel.WINDOW_STATE_DEFAULT; 
     427                                }else{ 
     428                                        if(maximizedPanel!=null){ 
     429                                                maximizedPanel.showControls = false; 
     430                                                maximizedPanel.dispatchEvent(new ContentBoxStateChangeEvent(ContentBoxStateChangeEvent.MINIMIZE)); 
     431                                        } 
     432                                        panel.showControls = true; 
     433                                        panel.dispatchEvent(new ContentBoxStateChangeEvent(ContentBoxStateChangeEvent.MAXIMIZE));                        
     434                                } 
    388435                                //更新容器 
    389436                                updateLayout(true); 
     
    408455                        panel.windowState = ContentBoxPanel.WINDOW_STATE_MINIMIZED; 
    409456                        minimizedItems.addItem(panel); 
     457                        //minimizedItems.addItemAt(panel,0); 
    410458                         
    411459                        //更新布局 
     
    565613                } 
    566614                private function get availableMaximizedPanelHeight():Number{ 
    567                         return this.height; 
     615                        //return this.height; 
     616                        return this.height - TASKBAR_HEIGHT; 
    568617                } 
    569618                 
  • trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/view/container/Main.mxml

    r143 r144  
    2222                <mx:LinkButton label="登陆" click="requestLogin()" /> 
    2323                <mx:Spacer width="100%"/> 
    24                 <mx:CheckBox id="fullScreenCbx" label="独占模式" click="layoutCanvas.fullview=fullScreenCbx.selected"/> 
    25                 <mx:LinkButton label="添加功能面板" /> 
     24                <mx:LinkButton label="功能选择" /> 
     25                <mx:CheckBox id="fullScreenCbx" label="最大化" horizontalGap="2"  
     26                        click="layoutCanvas.fullview=fullScreenCbx.selected"/> 
     27                 
    2628        </mx:HBox> 
    2729        <mx:HBox paddingBottom="0" paddingTop="5" width="100%" height="100%" paddingLeft="10" paddingRight="10">                 
  • trunk/buddypub/bpclientflex/src/org/cnflex/buddypub/mvc/view/popup/UserLoginPopup.mxml

    r140 r144  
    3030                id="closeBtn" label="关闭" buttonMode="true" useHandCursor="true"  
    3131                click="PopUpManager.removePopUp(this)"/> 
     32                 
    3233        <mx:CheckBox label="记住我" selected="true" x="70" y="162"/> 
     34         
    3335</mx:Panel>