equal
deleted
inserted
replaced
23 #include <eikappui.h> |
23 #include <eikappui.h> |
24 #include <AknUtils.h> |
24 #include <AknUtils.h> |
25 #include <calendar.mbg> |
25 #include <calendar.mbg> |
26 #include <AknIconUtils.h> |
26 #include <AknIconUtils.h> |
27 #include <debug.h> |
27 #include <debug.h> |
28 #include <aknsutils.h> |
28 #include <AknsUtils.h> |
29 |
29 |
30 |
30 |
31 // ---------------------------------------------------------------------------- |
31 // ---------------------------------------------------------------------------- |
32 // CCustomNaviControl::NewL |
32 // CCustomNaviControl::NewL |
33 // First stage construction |
33 // First stage construction |
70 |
70 |
71 // ---------------------------------------------------------------------------- |
71 // ---------------------------------------------------------------------------- |
72 // CCustomNaviControl::SetCalendarNameAndColor |
72 // CCustomNaviControl::SetCalendarNameAndColor |
73 // Sets the Calendar name and Color. |
73 // Sets the Calendar name and Color. |
74 // ---------------------------------------------------------------------------- |
74 // ---------------------------------------------------------------------------- |
75 void CCustomNaviControl::SetCalendarNameAndColor(const TDesC& aName, const TRgb aColor) |
75 void CCustomNaviControl::SetCalendarNameAndColorL(const TDesC& aName, const TRgb aColor) |
76 { |
76 { |
77 TRACE_ENTRY_POINT; |
77 TRACE_ENTRY_POINT; |
78 delete iCalendarName; |
78 delete iCalendarName; |
79 iCalendarColor = aColor; |
79 iCalendarColor = aColor; |
80 iCalendarName = aName.AllocL(); |
80 iCalendarName = aName.AllocL(); |
99 { |
99 { |
100 TRACE_ENTRY_POINT; |
100 TRACE_ENTRY_POINT; |
101 iCalendarColor = aColor; |
101 iCalendarColor = aColor; |
102 iCalendarName = aName.AllocL(); |
102 iCalendarName = aName.AllocL(); |
103 CreateWindowL(); |
103 CreateWindowL(); |
104 iBgContext = CAknsBasicBackgroundControlContext::NewL( KAknsIIDQsnBgNavipaneSolid, |
|
105 Rect(), |
|
106 ETrue ); |
|
107 // Create an icon |
104 // Create an icon |
108 TFileName IconFile; |
105 TFileName IconFile; |
109 IconFile = ((CEikAppUi*)CCoeEnv::Static()->AppUi())->Application()->BitmapStoreName(); |
106 IconFile = ((CEikAppUi*)CCoeEnv::Static()->AppUi())->Application()->BitmapStoreName(); |
110 AknIconUtils::CreateIconL(iBitmap, iMask,IconFile, |
107 AknIconUtils::CreateIconL(iBitmap, iMask,IconFile, |
111 EMbmCalendarQgn_indi_navi_color, |
108 EMbmCalendarQgn_indi_navi_color, |