Changeset 118

Show
Ignore:
Timestamp:
11/17/07 21:30:41 (9 months ago)
Author:
daboo
Message:

Tweak display.

Location:
Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/Calendar_Window
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/Calendar_Window/CCalendarEventBase.cp

    r111 r118  
    6161        mNextLink = NULL; 
    6262        mColour = 0; 
     63        mIsInbox = false; 
    6364} 
    6465 
     
    141142                mColour = calstore::CCalendarStoreManager::sCalendarStoreManager->GetCalendarColour(cal); 
    142143        } 
     144         
     145        // Check for inbox 
     146        const calstore::CCalendarStoreNode* node = calstore::CCalendarStoreManager::sCalendarStoreManager->GetNode(cal); 
     147        mIsInbox = node->IsInbox(); 
     148 
    143149} 
    144150 
     
    371377         
    372378        ::CGContextSetLineWidth(inContext, 0.75); 
     379        if (mIsInbox) 
     380        { 
     381                // Dashed line 
     382                float dashes[2] = { 6.0, 6.0 }; 
     383                ::CGContextSetLineDash(inContext, 0.0, dashes, 2); 
     384        } 
     385 
    373386        if (!mAllDay) 
    374387                ::CGContextSetShouldAntialias(inContext, false); 
     
    379392         
    380393        ::CGContextSetLineWidth(inContext, 1.0); 
     394        if (mIsInbox) 
     395        { 
     396                // Continuous line 
     397                ::CGContextSetLineDash(inContext, 0.0, NULL, 0); 
     398        } 
    381399 
    382400        // Check for now marker 
     
    542560        else 
    543561                ::CGContextSetLineWidth(inContext, 0.5); 
     562        if (mIsInbox) 
     563        { 
     564                // Dashed line 
     565                float dashes[2] = { 6.0, 6.0 }; 
     566                ::CGContextSetLineDash(inContext, 0.0, dashes, 2); 
     567        } 
    544568         
    545569        ::CGContextAddPath(inContext, path); 
     
    547571 
    548572        ::CGContextSetLineWidth(inContext, 1.0); 
     573        if (mIsInbox) 
     574        { 
     575                // Continuous line 
     576                ::CGContextSetLineDash(inContext, 0.0, NULL, 0); 
     577        } 
    549578 
    550579        // Check for now marker 
  • Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/Calendar_Window/CCalendarEventBase.h

    r97 r118  
    143143        uint32_t                                mColour; 
    144144        iCal::CICalendarPeriod  mPeriod; 
     145        bool                                    mIsInbox; 
    145146 
    146147        virtual void            FinishCreateSelf();