Show
Ignore:
Timestamp:
08/11/10 12:55:02 (22 months ago)
Author:
mszopinski
Message:

calendar, one-day display

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ssme/trunk/flex/Calendar/src/Calendar.mxml

    r4037 r4040  
    155155                        width="100%" height="100%" minHeight="400" 
    156156                        outerBorderColor="0x000000" outerBorderAlpha="1.0" outerBorderThickness="1" 
    157                         innerBorderColors="[ 0x000000, 0x444444, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3, 0.3 ]" innerBorderThicknesses="[ 2, 1, 1 ]" 
    158                         backgroundColor="0xffffff" backgroundAlpha="0" 
    159                         rows="[ 24, 48, 96 ]" columns="[ 1 ]" 
     157                        innerBorderColors="[ 0x000000, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3 ]" innerBorderThicknesses="[ 2, 1 ]" 
     158                        backgroundColor="0xffffff" backgroundAlpha="0" 
     159                        rows="[ 24, 96 ]" columns="[ 1 ]" 
    160160                        visible="true" includeInLayout="true" 
    161161                        cornerRadius="0"> 
     
    166166                        width="100%" height="100%" minHeight="400" 
    167167                        outerBorderColor="0x000000" outerBorderAlpha="1.0" outerBorderThickness="1" 
    168                         innerBorderColors="[ 0x000000, 0x444444, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3, 0.3 ]" innerBorderThicknesses="[ 2, 1, 1 ]" 
    169                         backgroundColor="0xffffff" backgroundAlpha="0" 
    170                         rows="[ 24, 48, 96 ]" columns="[ 1 ]" 
     168                        innerBorderColors="[ 0x000000, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3 ]" innerBorderThicknesses="[ 2, 1 ]" 
     169                        backgroundColor="0xffffff" backgroundAlpha="0" 
     170                        rows="[ 24, 96 ]" columns="[ 1 ]" 
    171171                        showEffect="{ fadeIn }" hideEffect="{ fadeOut }" 
    172172                        cornerRadius="0"> 
     
    177177                        width="100%" height="100%" minHeight="400" 
    178178                        outerBorderColor="0x000000" outerBorderAlpha="1.0" outerBorderThickness="1" 
    179                         innerBorderColors="[ 0x000000, 0x444444, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3, 0.3 ]" innerBorderThicknesses="[ 2, 1, 1 ]" 
    180                         backgroundColor="0xffffff" backgroundAlpha="0" 
    181                         rows="[ 24, 48, 96 ]" columns="[ 1 ]" 
     179                        innerBorderColors="[ 0x000000, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3 ]" innerBorderThicknesses="[ 2, 1 ]" 
     180                        backgroundColor="0xffffff" backgroundAlpha="0" 
     181                        rows="[ 24, 96 ]" columns="[ 1 ]" 
    182182                        showEffect="{ fadeIn }" hideEffect="{ fadeOut }" 
    183183                        cornerRadius="0"> 
     
    188188                        width="100%" height="100%" minHeight="400" 
    189189                        outerBorderColor="0x000000" outerBorderAlpha="1.0" outerBorderThickness="1" 
    190                         innerBorderColors="[ 0x000000, 0x444444, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3, 0.3 ]" innerBorderThicknesses="[ 2, 1, 1 ]" 
    191                         backgroundColor="0xffffff" backgroundAlpha="0" 
    192                         rows="[ 24, 48, 96 ]" columns="[ 1 ]" 
     190                        innerBorderColors="[ 0x000000, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3 ]" innerBorderThicknesses="[ 2, 1 ]" 
     191                        backgroundColor="0xffffff" backgroundAlpha="0" 
     192                        rows="[ 24, 96 ]" columns="[ 1 ]" 
    193193                        showEffect="{ fadeIn }" hideEffect="{ fadeOut }" 
    194194                        cornerRadius="0"> 
     
    199199                        width="100%" height="100%" minHeight="400" 
    200200                        outerBorderColor="0x000000" outerBorderAlpha="1.0" outerBorderThickness="1" 
    201                         innerBorderColors="[ 0x000000, 0x444444, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3, 0.3 ]" innerBorderThicknesses="[ 2, 1, 1 ]" 
    202                         backgroundColor="0xffffff" backgroundAlpha="0" 
    203                         rows="[ 24, 48, 96 ]" columns="[ 1 ]" 
     201                        innerBorderColors="[ 0x000000, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3 ]" innerBorderThicknesses="[ 2, 1 ]" 
     202                        backgroundColor="0xffffff" backgroundAlpha="0" 
     203                        rows="[ 24, 96 ]" columns="[ 1 ]" 
    204204                        showEffect="{ fadeIn }" hideEffect="{ fadeOut }" 
    205205                        cornerRadius="0"> 
     
    210210                        width="100%" height="100%" minHeight="400" 
    211211                        outerBorderColor="0x000000" outerBorderAlpha="1.0" outerBorderThickness="1" 
    212                         innerBorderColors="[ 0x000000, 0x444444, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3, 0.3 ]" innerBorderThicknesses="[ 2, 1, 1 ]" 
    213                         backgroundColor="0xffffff" backgroundAlpha="0" 
    214                         rows="[ 24, 48, 96 ]" columns="[ 1 ]" 
     212                        innerBorderColors="[ 0x000000, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3 ]" innerBorderThicknesses="[ 2, 1 ]" 
     213                        backgroundColor="0xffffff" backgroundAlpha="0" 
     214                        rows="[ 24, 96 ]" columns="[ 1 ]" 
    215215                        showEffect="{ fadeIn }" hideEffect="{ fadeOut }" 
    216216                        cornerRadius="0"> 
     
    221221                        width="100%" height="100%" minHeight="400" 
    222222                        outerBorderColor="0x000000" outerBorderAlpha="1.0" outerBorderThickness="1" 
    223                         innerBorderColors="[ 0x000000, 0x444444, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3, 0.3 ]" innerBorderThicknesses="[ 2, 1, 1 ]" 
    224                         backgroundColor="0xffffff" backgroundAlpha="0" 
    225                         rows="[ 24, 48, 96 ]" columns="[ 1 ]" 
     223                        innerBorderColors="[ 0x000000, 0x888888 ]" innerBorderAlphas="[ 0.5, 0.3 ]" innerBorderThicknesses="[ 2, 1 ]" 
     224                        backgroundColor="0xffffff" backgroundAlpha="0" 
     225                        rows="[ 24, 96 ]" columns="[ 1 ]" 
    226226                        showEffect="{ fadeIn }" hideEffect="{ fadeOut }"                         
    227227                        cornerRadius="0"> 
     
    301301                calendarsList.push( { uuid:key, name:loggedUserEntity.calendarsNames[key] } ); 
    302302            } 
     303            calendarsList.sort( sortCalendars ); 
    303304            calendarsList.push( { uuid:null, name: "All" } ); 
    304             calendarCombo.selectedIndex = -1; 
     305            calendarCombo.selectedIndex = -1;                    
     306        } 
     307        private function sortCalendars(a:Object, b:Object):int { 
     308            return ( a.name < b.name ) ? -1 : (( a.name > b.name ) ? 1 : 0 ); 
    305309        } 
    306310 
     
    387391        private var dayCanvas:Array = [ canvas_1, canvas_2, canvas_3, canvas_4, canvas_5, canvas_6, canvas_7 ]; 
    388392        private function showDayEvents():void { 
     393            canvas_1.currentDay = chosenDate.selectedDate;  
    389394            canvas_1.dataProvider = calendarEntity.timeFramesEntitites; 
    390395        }