equal
deleted
inserted
replaced
45 */ |
45 */ |
46 IMPORT_C static CBubbleCtrl* NewL(const TRect& aRect, |
46 IMPORT_C static CBubbleCtrl* NewL(const TRect& aRect, |
47 CFepUiLayout* aUiLayout, |
47 CFepUiLayout* aUiLayout, |
48 TInt aCtrlId); |
48 TInt aCtrlId); |
49 |
49 |
|
50 inline void SetIconOffsetAndSize( |
|
51 const TSize& aOffset, const TSize& aSize ); |
50 IMPORT_C virtual void Draw(); |
52 IMPORT_C virtual void Draw(); |
51 |
53 |
52 IMPORT_C virtual void Hide(TBool aShowFlag); |
54 IMPORT_C virtual void Hide(TBool aShowFlag); |
53 |
55 |
54 IMPORT_C void SetBitmapParam(CFbsBitmap* aBmpId, |
56 IMPORT_C void SetBitmapParam(CFbsBitmap* aBmpId, |
82 IMPORT_C void Close(); |
84 IMPORT_C void Close(); |
83 |
85 |
84 IMPORT_C TBool IsShowing(); |
86 IMPORT_C TBool IsShowing(); |
85 |
87 |
86 IMPORT_C void SetFrameDiff(TInt aLeftDiff,TInt aTopDiff,TInt aRightDiff,TInt aBottomDiff); |
88 IMPORT_C void SetFrameDiff(TInt aLeftDiff,TInt aTopDiff,TInt aRightDiff,TInt aBottomDiff); |
|
89 inline void GetText( TDes& aText ); |
87 |
90 |
88 void Freeze(); |
91 void Freeze(); |
89 |
92 |
90 void UnFreeze( TBool aUpdate = ETrue ); |
93 void UnFreeze( TBool aUpdate = ETrue ); |
91 inline void SetTextColorIndex( TInt aTxtClrIndex ); |
94 inline void SetTextColorIndex( TInt aTxtClrIndex ); |
120 TBool iFreeze; |
123 TBool iFreeze; |
121 TRect iInvalidRect; |
124 TRect iInvalidRect; |
122 |
125 |
123 TBool iNeedRedraw; // redraw flag after text changed. |
126 TBool iNeedRedraw; // redraw flag after text changed. |
124 TInt iTextColorIndex; |
127 TInt iTextColorIndex; |
|
128 TSize iIconOffset; |
|
129 TSize iIconSize; |
125 }; |
130 }; |
126 |
131 |
127 inline void CBubbleCtrl::SetTextColorIndex( TInt aTxtClrIndex ) |
132 inline void CBubbleCtrl::SetTextColorIndex( TInt aTxtClrIndex ) |
128 { |
133 { |
129 iTextColorIndex = aTxtClrIndex; |
134 iTextColorIndex = aTxtClrIndex; |
131 |
136 |
132 inline TInt CBubbleCtrl::TextColorIndex() const |
137 inline TInt CBubbleCtrl::TextColorIndex() const |
133 { |
138 { |
134 return iTextColorIndex; |
139 return iTextColorIndex; |
135 } |
140 } |
|
141 inline void CBubbleCtrl::SetIconOffsetAndSize( |
|
142 const TSize& aOffset, const TSize& aSize ) |
|
143 { |
|
144 iIconOffset = aOffset; |
|
145 iIconSize = aSize; |
|
146 } |
|
147 |
|
148 inline void CBubbleCtrl::GetText( TDes& aText ) |
|
149 { |
|
150 aText.Copy( *iText ); |
|
151 } |
136 |
152 |
137 class CTooltipBubbleCtrl: public CBubbleCtrl |
153 class CTooltipBubbleCtrl: public CBubbleCtrl |
138 { |
154 { |
139 public: |
155 public: |
140 //constructor and destructor |
156 //constructor and destructor |