|
45
|
1 |
/*
|
|
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
3 |
* All rights reserved.
|
|
|
4 |
* This component and the accompanying materials are made available
|
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
|
6 |
* which accompanies this distribution, and is available
|
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
|
8 |
*
|
|
|
9 |
* Initial Contributors:
|
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
|
11 |
*
|
|
|
12 |
* Contributors:
|
|
|
13 |
*
|
|
|
14 |
* Description: test aknscbut.h, eiksbfrm.h, eikscbut.h and eikscrlb.h
|
|
|
15 |
*
|
|
|
16 |
*/
|
|
|
17 |
|
|
|
18 |
#include <eiksbfrm.h>
|
|
|
19 |
|
|
|
20 |
#include "testsdkscrollercontrol.h"
|
|
|
21 |
|
|
|
22 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
|
23 |
|
|
|
24 |
// -----------------------------------------------------------------------------
|
|
|
25 |
// CTestScrollerControl::NewL
|
|
|
26 |
// -----------------------------------------------------------------------------
|
|
|
27 |
//
|
|
|
28 |
CTestScrollerControl* CTestScrollerControl::NewL()
|
|
|
29 |
{
|
|
|
30 |
CTestScrollerControl* self = new (ELeave) CTestScrollerControl;
|
|
|
31 |
CleanupStack::PushL(self);
|
|
|
32 |
self->ConstructL();
|
|
|
33 |
CleanupStack::Pop(self);
|
|
|
34 |
return self;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
// -----------------------------------------------------------------------------
|
|
|
38 |
// CTestScrollerControl::~CTestScrollerControl
|
|
|
39 |
// -----------------------------------------------------------------------------
|
|
|
40 |
//
|
|
|
41 |
CTestScrollerControl::~CTestScrollerControl()
|
|
|
42 |
{
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
// -----------------------------------------------------------------------------
|
|
|
46 |
// CTestScrollerControl::CTestScrollerControl
|
|
|
47 |
// -----------------------------------------------------------------------------
|
|
|
48 |
//
|
|
|
49 |
CTestScrollerControl::CTestScrollerControl()
|
|
|
50 |
{
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
// -----------------------------------------------------------------------------
|
|
|
54 |
// CTestScrollerControl::ConstructL
|
|
|
55 |
// -----------------------------------------------------------------------------
|
|
|
56 |
//
|
|
|
57 |
void CTestScrollerControl::ConstructL()
|
|
|
58 |
{
|
|
|
59 |
CreateWindowL();
|
|
|
60 |
//add controls
|
|
|
61 |
SetRect( Rect() );
|
|
|
62 |
ActivateL();
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
// -----------------------------------------------------------------------------
|
|
|
66 |
// CTestScrollerControl::OfferKeyEventL
|
|
|
67 |
// -----------------------------------------------------------------------------
|
|
|
68 |
//
|
|
|
69 |
TKeyResponse CTestScrollerControl::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/,
|
|
|
70 |
TEventCode /*aType*/)
|
|
|
71 |
{
|
|
|
72 |
return EKeyWasConsumed;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
// -----------------------------------------------------------------------------
|
|
|
76 |
// CTestScrollerControl::Draw
|
|
|
77 |
// -----------------------------------------------------------------------------
|
|
|
78 |
//
|
|
|
79 |
void CTestScrollerControl::Draw(const TRect& /*aRect*/) const
|
|
|
80 |
{
|
|
|
81 |
}
|
|
|
82 |
|
|
|
83 |
// -----------------------------------------------------------------------------
|
|
|
84 |
// CTestScrollerControl::CountComponentControls
|
|
|
85 |
// -----------------------------------------------------------------------------
|
|
|
86 |
//
|
|
|
87 |
TInt CTestScrollerControl::CountComponentControls() const
|
|
|
88 |
{
|
|
|
89 |
return 0;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
// -----------------------------------------------------------------------------
|
|
|
93 |
// CTestScrollerControl::ComponentControl
|
|
|
94 |
// -----------------------------------------------------------------------------
|
|
|
95 |
//
|
|
|
96 |
CCoeControl* CTestScrollerControl::ComponentControl(TInt /*aIndex*/) const
|
|
|
97 |
{
|
|
|
98 |
return NULL;
|
|
|
99 |
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
// -----------------------------------------------------------------------------
|
|
|
103 |
// CTestScrollerControl::SizeChanged
|
|
|
104 |
// -----------------------------------------------------------------------------
|
|
|
105 |
//
|
|
|
106 |
void CTestScrollerControl::SizeChanged()
|
|
|
107 |
{
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
//------------------------------------------------------------------------------
|
|
|
111 |
// CTestSDKScroller::HandleScrollEventL
|
|
|
112 |
//------------------------------------------------------------------------------
|
|
|
113 |
void CTestScrollerControl::HandleScrollEventL( CEikScrollBar* /*aScrollBar*/,
|
|
|
114 |
TEikScrollEvent /*aEventType*/ )
|
|
|
115 |
{
|
|
|
116 |
}
|
|
|
117 |
|
|
|
118 |
|