equal
deleted
inserted
replaced
29 #include <bautils.h> |
29 #include <bautils.h> |
30 #include <AknBidiTextUtils.h> |
30 #include <AknBidiTextUtils.h> |
31 #include <CalenLunarVietnamesePluginData.rsg> |
31 #include <CalenLunarVietnamesePluginData.rsg> |
32 #include <layoutmetadata.cdl.h> |
32 #include <layoutmetadata.cdl.h> |
33 #include <mcalenpreview.h> |
33 #include <mcalenpreview.h> |
|
34 |
|
35 #include <AknsSkinInstance.h> |
|
36 #include <AknsUtils.h> |
|
37 #include <gulcolor.h> |
34 |
38 |
35 #include "calendarui_debug.h" |
39 #include "calendarui_debug.h" |
36 #include "calenlunarvietnameseplugin.h" |
40 #include "calenlunarvietnameseplugin.h" |
37 #include "calenlunarvietnameselocalizer.h" |
41 #include "calenlunarvietnameselocalizer.h" |
38 #include "calenlunarpanic.h" |
42 #include "calenlunarpanic.h" |
201 |
205 |
202 aLabel.UseLogicalToVisualConversion(ETrue); |
206 aLabel.UseLogicalToVisualConversion(ETrue); |
203 aLabel.SetLabelAlignment(ELayoutAlignCenter); |
207 aLabel.SetLabelAlignment(ELayoutAlignCenter); |
204 aLabel.SetTextL( *newLinedText); |
208 aLabel.SetTextL( *newLinedText); |
205 |
209 |
|
210 // Query the text colour based on the theme and update the label text |
|
211 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
|
212 TRgb color; |
|
213 TInt error = AknsUtils::GetCachedColor(skin, color, |
|
214 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6); |
|
215 if (error == KErrNone) |
|
216 { |
|
217 aLabel.OverrideColorL(EColorLabelText, color); |
|
218 } |
|
219 |
206 CleanupStack::PopAndDestroy( newLinedText ); |
220 CleanupStack::PopAndDestroy( newLinedText ); |
207 CleanupStack::PopAndDestroy( lineWidths ); |
221 CleanupStack::PopAndDestroy( lineWidths ); |
208 CleanupStack::PopAndDestroy( textLines ); |
222 CleanupStack::PopAndDestroy( textLines ); |
209 delete visualText; |
223 delete visualText; |
210 |
224 |
224 |
238 |
225 FormatExtraRowStringL( aLabel, EFalse ); |
239 FormatExtraRowStringL( aLabel, EFalse ); |
226 aLabel.UseLogicalToVisualConversion(ETrue); |
240 aLabel.UseLogicalToVisualConversion(ETrue); |
227 aLabel.SetLabelAlignment(ELayoutAlignCenter); |
241 aLabel.SetLabelAlignment(ELayoutAlignCenter); |
228 aLabel.SetTextL( iExtraRowText ); |
242 aLabel.SetTextL( iExtraRowText ); |
|
243 |
|
244 // Query the text colour based on the theme and update the label text |
|
245 MAknsSkinInstance* skin = AknsUtils::SkinInstance(); |
|
246 TRgb color; |
|
247 TInt error = AknsUtils::GetCachedColor(skin, color, |
|
248 KAknsIIDQsnTextColors, EAknsCIQsnTextColorsCG6); |
|
249 if (error == KErrNone) |
|
250 { |
|
251 aLabel.OverrideColorL(EColorLabelText, color); |
|
252 } |
229 |
253 |
230 TRACE_EXIT_POINT; |
254 TRACE_EXIT_POINT; |
231 } |
255 } |
232 |
256 |
233 |
257 |
671 // ----------------------------------------------------------------------------- |
695 // ----------------------------------------------------------------------------- |
672 // CCalenPluginLabel::HandlePointerEventL |
696 // CCalenPluginLabel::HandlePointerEventL |
673 // ----------------------------------------------------------------------------- |
697 // ----------------------------------------------------------------------------- |
674 // |
698 // |
675 void CCalenPluginLabel::HandlePointerEventL(const TPointerEvent& |
699 void CCalenPluginLabel::HandlePointerEventL(const TPointerEvent& |
676 /*aPointerEvent*/) |
700 aPointerEvent) |
677 { |
701 { |
678 TRACE_ENTRY_POINT; |
702 TRACE_ENTRY_POINT; |
679 iPlugin.ShowDetailsL(); |
703 |
|
704 if ( aPointerEvent.iType == TPointerEvent::EButton1Up ) |
|
705 { |
|
706 iPlugin.ShowDetailsL(); |
|
707 } |
|
708 |
680 TRACE_EXIT_POINT; |
709 TRACE_EXIT_POINT; |
681 } |
710 } |
682 |
711 |
683 |
712 |
684 //EOF |
713 //EOF |