equal
deleted
inserted
replaced
118 |
118 |
119 public: |
119 public: |
120 inline TBool GetVisibilityInForm(); |
120 inline TBool GetVisibilityInForm(); |
121 inline void SetVisibilityInForm(const TBool aVisibility); |
121 inline void SetVisibilityInForm(const TBool aVisibility); |
122 |
122 |
|
123 /** |
|
124 * Sets the iHighlighted flag. Used by CMIDForm. |
|
125 */ |
|
126 inline void SetHighlight(const TBool aHighlight); |
|
127 |
|
128 /** |
|
129 * Returns ETrue, if item is highlighted on Form. |
|
130 */ |
|
131 inline TBool IsHighlighted(); |
|
132 |
123 protected: |
133 protected: |
124 CCoeEnv* iCoeEnv; |
134 CCoeEnv* iCoeEnv; |
125 CMIDItemLabel* iLabelControl; // The label for the control |
135 CMIDItemLabel* iLabelControl; // The label for the control |
126 |
136 |
127 //The background control context for when the item is highlighted |
137 // The background control context for when the item is highlighted |
128 CAknsFrameBackgroundControlContext* iHighlightedBackgroundCc; |
138 CAknsFrameBackgroundControlContext* iHighlightedBackgroundCc; |
129 |
139 |
130 TBool iVisibilityInForm; |
140 TBool iVisibilityInForm; |
|
141 |
|
142 // This flag is true, if item on Form is currently highlighted. |
|
143 // Flag is used for returning correct background content |
|
144 // (see MopSupplyObject). |
|
145 TBool iHighlighted; |
131 }; |
146 }; |
132 |
147 |
133 inline void CMIDControlItem::SetSizeQuiet(const TSize& aSize) |
148 inline void CMIDControlItem::SetSizeQuiet(const TSize& aSize) |
134 { |
149 { |
135 iSize = aSize; |
150 iSize = aSize; |
153 inline void CMIDControlItem::SetVisibilityInForm(const TBool aVisibility) |
168 inline void CMIDControlItem::SetVisibilityInForm(const TBool aVisibility) |
154 { |
169 { |
155 iVisibilityInForm = aVisibility; |
170 iVisibilityInForm = aVisibility; |
156 } |
171 } |
157 |
172 |
|
173 inline void CMIDControlItem::SetHighlight(const TBool aHighlight) |
|
174 { |
|
175 iHighlighted = aHighlight; |
|
176 } |
|
177 |
|
178 inline TBool CMIDControlItem::IsHighlighted() |
|
179 { |
|
180 return iHighlighted; |
|
181 } |
|
182 |
158 #endif // CMIDCONTROLITEM_H |
183 #endif // CMIDCONTROLITEM_H |