equal
deleted
inserted
replaced
291 { |
291 { |
292 CCoeControl::HandlePointerEventL(aPointerEvent); |
292 CCoeControl::HandlePointerEventL(aPointerEvent); |
293 } |
293 } |
294 |
294 |
295 if (pressed != iPressed) |
295 if (pressed != iPressed) |
|
296 { |
296 Redraw(); |
297 Redraw(); |
|
298 } |
|
299 |
|
300 PostMouseEventL(aPointerEvent); |
297 } |
301 } |
298 #endif //RD_SCALABLE_UI_V2 |
302 #endif //RD_SCALABLE_UI_V2 |
299 |
303 |
300 // --------------------------------------------------------------------------- |
304 // --------------------------------------------------------------------------- |
301 // CSwtCombo::HandleResourceChange |
305 // CSwtCombo::HandleResourceChange |
312 // From CCoeControl |
316 // From CCoeControl |
313 // --------------------------------------------------------------------------- |
317 // --------------------------------------------------------------------------- |
314 // |
318 // |
315 void CSwtCombo::Draw(const TRect& /*aRect*/) const |
319 void CSwtCombo::Draw(const TRect& /*aRect*/) const |
316 { |
320 { |
317 DrawContainedComboBorder(); |
321 CWindowGc& gc = SystemGc(); |
|
322 TRect rect(iCombo->Rect()); |
|
323 TAknLayoutRect topLeft = CSwtLafFacade::GetLayoutRect( |
|
324 CSwtLafFacade::EListHighlightSkinPlacingGeneralLine2, rect); |
|
325 |
|
326 TAknLayoutRect bottomRight = CSwtLafFacade::GetLayoutRect( |
|
327 CSwtLafFacade::EListHighlightSkinPlacingGeneralLine5, rect); |
|
328 |
|
329 TRect innerRect(topLeft.Rect().iBr, bottomRight.Rect().iTl); |
|
330 |
|
331 // "Connect" the label and the button with a toolbar frame. |
|
332 AknsDrawUtils::DrawFrame(AknsUtils::SkinInstance(), |
|
333 gc, |
|
334 rect, |
|
335 innerRect, |
|
336 iPressed || iOpen ? KAknsIIDQsnFrButtonTbPressed : KAknsIIDQsnFrButtonTb, |
|
337 iPressed || iOpen ? KAknsIIDQsnFrButtonTbCenterPressed : KAknsIIDQsnFrButtonTbCenter); |
318 } |
338 } |
319 |
339 |
320 // --------------------------------------------------------------------------- |
340 // --------------------------------------------------------------------------- |
321 // CSwtCombo::MopSupplyObject |
341 // CSwtCombo::MopSupplyObject |
322 // From CCoeControl |
342 // From CCoeControl |
1450 } |
1470 } |
1451 } |
1471 } |
1452 #endif //RD_TACTILE_FEEDBACK |
1472 #endif //RD_TACTILE_FEEDBACK |
1453 } |
1473 } |
1454 |
1474 |
1455 // --------------------------------------------------------------------------- |
|
1456 // CSwtCombo::DrawContainedComboBorder() |
|
1457 // --------------------------------------------------------------------------- |
|
1458 // |
|
1459 void CSwtCombo::DrawContainedComboBorder() const |
|
1460 { |
|
1461 CWindowGc& gc = SystemGc(); |
|
1462 gc.SetBrushStyle(CGraphicsContext::ENullBrush); |
|
1463 gc.SetPenColor(iDisplay.UiUtils().GetSystemColor(ESwtColorWidgetBorder)); |
|
1464 gc.SetPenStyle(CGraphicsContext::ESolidPen); |
|
1465 gc.SetPenSize(TSize(1, 1)); |
|
1466 gc.DrawRect(iCombo->Rect()); |
|
1467 } |
|
1468 |
|