equal
deleted
inserted
replaced
176 |
176 |
177 CESMRField::LockL(); |
177 CESMRField::LockL(); |
178 |
178 |
179 delete iLockIcon; |
179 delete iLockIcon; |
180 iLockIcon = NULL; |
180 iLockIcon = NULL; |
181 iLockIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapLockField, ETrue ); |
181 iLockIcon = CMRImage::NewL( |
182 iIcon->SetParent( this ); |
182 NMRBitmapManager::EMRBitmapLockField, |
|
183 this, |
|
184 ETrue ); |
183 } |
185 } |
184 |
186 |
185 // --------------------------------------------------------------------------- |
187 // --------------------------------------------------------------------------- |
186 // CMRMultiCalenField::ExecuteTypeQueryL |
188 // CMRMultiCalenField::ExecuteTypeQueryL |
187 // --------------------------------------------------------------------------- |
189 // --------------------------------------------------------------------------- |
226 // |
228 // |
227 void CMRMultiCalenField::ConstructL( ) |
229 void CMRMultiCalenField::ConstructL( ) |
228 { |
230 { |
229 FUNC_LOG; |
231 FUNC_LOG; |
230 |
232 |
231 iCalenName = CMRLabel::NewL(); |
233 iCalenName = CMRLabel::NewL( this ); |
232 CESMRField::ConstructL( iCalenName ); |
234 CESMRField::ConstructL( iCalenName ); |
233 iCalenName->SetTextL( KNullDesC() ); |
235 iCalenName->SetTextL( KNullDesC() ); |
234 |
236 |
235 TGulAlignment align; |
237 iIcon = CMRImage::NewL( |
236 align.SetHAlignment( EHLeft ); |
238 NMRBitmapManager::EMRBitmapCalendarSelection, |
237 align.SetVAlignment( EVCenter ); |
239 this ); |
238 iCalenName->SetAlignment( align ); |
|
239 |
|
240 iIcon = CMRImage::NewL( NMRBitmapManager::EMRBitmapCalendarSelection ); |
|
241 |
240 |
242 } |
241 } |
243 |
242 |
244 // --------------------------------------------------------------------------- |
243 // --------------------------------------------------------------------------- |
245 // CMRMultiCalenField::UpdateLabelL |
244 // CMRMultiCalenField::UpdateLabelL |
289 CCoeControl* control = NULL; |
288 CCoeControl* control = NULL; |
290 switch( aIndex ) |
289 switch( aIndex ) |
291 { |
290 { |
292 case 0: |
291 case 0: |
293 { |
292 { |
294 control = iCalenName; |
293 control = iIcon; |
295 break; |
294 break; |
296 } |
295 } |
297 case 1: |
296 case 1: |
298 { |
297 { |
299 control = iIcon; |
298 control = iCalenName; |
300 break; |
299 break; |
301 } |
300 } |
302 case 2: |
301 case 2: |
303 { |
302 { |
304 control = iLockIcon; |
303 control = iLockIcon; |
366 |
365 |
367 // Move focus rect so that it's relative to field's position. |
366 // Move focus rect so that it's relative to field's position. |
368 bgRect.Move( -Position() ); |
367 bgRect.Move( -Position() ); |
369 |
368 |
370 SetFocusRect( bgRect ); |
369 SetFocusRect( bgRect ); |
371 } |
|
372 |
|
373 // --------------------------------------------------------------------------- |
|
374 // CMRMultiCalenField::SetContainerWindowL |
|
375 // --------------------------------------------------------------------------- |
|
376 // |
|
377 void CMRMultiCalenField::SetContainerWindowL( |
|
378 const CCoeControl& aContainer ) |
|
379 { |
|
380 FUNC_LOG; |
|
381 CCoeControl::SetContainerWindowL( aContainer ); |
|
382 iCalenName->SetContainerWindowL( aContainer ); |
|
383 iCalenName->SetParent( this ); |
|
384 iIcon->SetContainerWindowL( aContainer ); |
|
385 iIcon->SetParent( this ); |
|
386 } |
370 } |
387 |
371 |
388 // --------------------------------------------------------------------------- |
372 // --------------------------------------------------------------------------- |
389 // CMRMultiCalenField::SetTextDimmed |
373 // CMRMultiCalenField::SetTextDimmed |
390 // --------------------------------------------------------------------------- |
374 // --------------------------------------------------------------------------- |