equal
deleted
inserted
replaced
18 |
18 |
19 // INCLUDE FILES |
19 // INCLUDE FILES |
20 #include "TestAppContainer.h" |
20 #include "TestAppContainer.h" |
21 #include <aknlists.h> |
21 #include <aknlists.h> |
22 #include <AknsUtils.h> |
22 #include <AknsUtils.h> |
23 #include <AppLayout.cdl.h> |
23 #include <applayout.cdl.h> |
24 #include <AknIconUtils.h> |
24 #include <AknIconUtils.h> |
25 #include <AknsConstants.h> |
25 #include <AknsConstants.h> |
26 #include <AknsDrawUtils.h> |
26 #include <AknsDrawUtils.h> |
27 #include <AknsBasicBackgroundControlContext.h> |
27 #include <AknsBasicBackgroundControlContext.h> |
28 |
28 |
36 void CTestAppContainer::ConstructL(const TRect& aRect) |
36 void CTestAppContainer::ConstructL(const TRect& aRect) |
37 { |
37 { |
38 CreateWindowL(); |
38 CreateWindowL(); |
39 |
39 |
40 // Get the skin instance |
40 // Get the skin instance |
41 iSkinInstance = AknsUtils::SkinInstance(); |
41 iSkinInstance = AknsUtils::SkinInstance(); |
42 |
42 |
43 // Create background control context for skinning the background |
43 // Create background control context for skinning the background |
44 iBackgroundSkinContext = CAknsBasicBackgroundControlContext::NewL( |
44 iBackgroundSkinContext = CAknsBasicBackgroundControlContext::NewL( |
45 KAknsIIDSkinBmpMainPaneUsual, aRect, ETrue ); |
45 KAknsIIDSkinBmpMainPaneUsual, aRect, ETrue ); |
46 |
46 |
47 iListBox = new (ELeave) CEikTextListBox; |
47 iListBox = new (ELeave) CEikTextListBox; |
48 iListBox->SetContainerWindowL( *this ); |
48 iListBox->SetContainerWindowL( *this ); |
49 iListBox->ConstructL( this ); |
49 iListBox->ConstructL( this ); |
50 |
50 |
117 // --------------------------------------------------------- |
117 // --------------------------------------------------------- |
118 // |
118 // |
119 void CTestAppContainer::Draw(const TRect& /*aRect*/) const |
119 void CTestAppContainer::Draw(const TRect& /*aRect*/) const |
120 { |
120 { |
121 CWindowGc& gc = SystemGc(); |
121 CWindowGc& gc = SystemGc(); |
122 |
122 |
123 AknsDrawUtils::Background( iSkinInstance, |
123 AknsDrawUtils::Background( iSkinInstance, |
124 iBackgroundSkinContext, this, gc, Rect() ); |
124 iBackgroundSkinContext, this, gc, Rect() ); |
125 } |
125 } |
126 |
126 |
127 // --------------------------------------------------------- |
127 // --------------------------------------------------------- |