|
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 |
|
|
|
19 |
#ifndef C_TESTSDKSCROLLERCONTROL_H
|
|
|
20 |
#define C_TESTSDKSCROLLERCONTROL_H
|
|
|
21 |
|
|
|
22 |
#include <coecntrl.h>
|
|
|
23 |
#include <eiksbobs.h>
|
|
|
24 |
|
|
|
25 |
class CEikScrollBarFrame;
|
|
|
26 |
|
|
|
27 |
/**
|
|
|
28 |
* CTestScrollerControl is used to add setting page control in its window
|
|
|
29 |
*/
|
|
|
30 |
class CTestScrollerControl : public CCoeControl, public MEikScrollBarObserver
|
|
|
31 |
{
|
|
|
32 |
public: //constructor and destructor
|
|
|
33 |
|
|
|
34 |
/**
|
|
|
35 |
* Two-phased constructor.
|
|
|
36 |
*/
|
|
|
37 |
static CTestScrollerControl* NewL();
|
|
|
38 |
|
|
|
39 |
/**
|
|
|
40 |
* Destructor.
|
|
|
41 |
*/
|
|
|
42 |
~CTestScrollerControl();
|
|
|
43 |
|
|
|
44 |
private: // constructor
|
|
|
45 |
|
|
|
46 |
/**
|
|
|
47 |
* Constructor.
|
|
|
48 |
*/
|
|
|
49 |
CTestScrollerControl();
|
|
|
50 |
|
|
|
51 |
/**
|
|
|
52 |
* By default Symbian 2nd phase constructor is private.
|
|
|
53 |
*/
|
|
|
54 |
void ConstructL();
|
|
|
55 |
|
|
|
56 |
private: // from CCoeControl class
|
|
|
57 |
|
|
|
58 |
/**
|
|
|
59 |
* Receive key events.
|
|
|
60 |
*/
|
|
|
61 |
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Draw control.
|
|
|
65 |
*/
|
|
|
66 |
void Draw(const TRect& aRect) const;
|
|
|
67 |
|
|
|
68 |
/**
|
|
|
69 |
* Return number of controls in its window.
|
|
|
70 |
*/
|
|
|
71 |
TInt CountComponentControls() const;
|
|
|
72 |
|
|
|
73 |
/**
|
|
|
74 |
* Controls in its window.
|
|
|
75 |
*/
|
|
|
76 |
CCoeControl* ComponentControl(TInt aIndex) const;
|
|
|
77 |
|
|
|
78 |
/**
|
|
|
79 |
* Resize screen.
|
|
|
80 |
*/
|
|
|
81 |
void SizeChanged();
|
|
|
82 |
|
|
|
83 |
public: // Functions from MEikScrollBarObserver class
|
|
|
84 |
|
|
|
85 |
/**
|
|
|
86 |
* Callback method for scroll bar events
|
|
|
87 |
*
|
|
|
88 |
* Scroll bar observer should implement this method to get scroll bar events.
|
|
|
89 |
*
|
|
|
90 |
* @since S60 0.9
|
|
|
91 |
* @param aScrollBar A pointer to scrollbar which created the event
|
|
|
92 |
* @param aEventType The event occured on the scroll bar
|
|
|
93 |
*/
|
|
|
94 |
virtual void HandleScrollEventL( CEikScrollBar* aScrollBar,
|
|
|
95 |
TEikScrollEvent aEventType );
|
|
|
96 |
|
|
|
97 |
};
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
#endif // C_TESTSDKSCROLLERCONTROL_H
|