equal
deleted
inserted
replaced
55 TInt MinimumHeight() const; |
55 TInt MinimumHeight() const; |
56 TInt MinimumHeight(TInt aLineCount) const; |
56 TInt MinimumHeight(TInt aLineCount) const; |
57 void DoSetFontL(const CFont* aFont); |
57 void DoSetFontL(const CFont* aFont); |
58 void SwtHandleResourceChangeL(TInt aType); |
58 void SwtHandleResourceChangeL(TInt aType); |
59 TInt GetFontHeight(const CFont* aFont) const; |
59 TInt GetFontHeight(const CFont* aFont) const; |
|
60 void UpdateTextColor(); |
60 |
61 |
61 // From CCoeControl |
62 // From CCoeControl |
62 public: |
63 public: |
63 void SetDimmed(TBool aDimmed); |
64 void SetDimmed(TBool aDimmed); |
64 CCoeControl* ComponentControl(TInt aIndex) const; |
65 CCoeControl* ComponentControl(TInt aIndex) const; |
82 TBool IsFocusable(TInt aReason = KSwtFocusByApi) const; |
83 TBool IsFocusable(TInt aReason = KSwtFocusByApi) const; |
83 void ProcessKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
84 void ProcessKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
84 void SetForegroundL(const MSwtColor* aColor); |
85 void SetForegroundL(const MSwtColor* aColor); |
85 TSize ComputeSizeL(TInt aWHint, TInt aHHint); |
86 TSize ComputeSizeL(TInt aWHint, TInt aHHint); |
86 void SetFontL(const MSwtFont* aFont); |
87 void SetFontL(const MSwtFont* aFont); |
|
88 void HandleHighlightChange(); |
87 |
89 |
88 // From ASwtControlbase |
90 // From ASwtControlbase |
89 protected: |
91 protected: |
90 const MSwtFont& DefaultFont() const; |
92 const MSwtFont& DefaultFont() const; |
91 |
93 |
112 CEikLabel* iEikLabel; // Symbian label, owned, may be NULL |
114 CEikLabel* iEikLabel; // Symbian label, owned, may be NULL |
113 HBufC* iOriginalText; // The original text set with the method SetText(). |
115 HBufC* iOriginalText; // The original text set with the method SetText(). |
114 TInt iOriginalTextLineCount;// Count how many lines are in the text ('\n') |
116 TInt iOriginalTextLineCount;// Count how many lines are in the text ('\n') |
115 MSwtFont* iDefaultFont; // The text's default font, owned, NULL only if iText is NULL |
117 MSwtFont* iDefaultFont; // The text's default font, owned, NULL only if iText is NULL |
116 const MSwtImage* iImage; // The image to draw, may be NULL, ref counted |
118 const MSwtImage* iImage; // The image to draw, may be NULL, ref counted |
117 const MSwtColor* iForegroundColor; // The set foreground color |
119 const MSwtColor* iCustomFg; |
118 TBool iDashedLineSeparatorInUse; |
120 TBool iDashedLineSeparatorInUse; |
119 }; |
121 }; |
120 |
122 |
121 |
123 |
122 #endif // SWTLABEL_H |
124 #endif // SWTLABEL_H |