author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 15 Sep 2010 12:34:44 +0300 | |
branch | RCL_3 |
changeset 50 | 5a1685599b76 |
parent 44 | ecbabf52600f |
child 56 | 8152b1f1763a |
permissions | -rw-r--r-- |
44 | 1 |
/* |
2 |
* Copyright (c) 2002-2004 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: |
|
15 |
* Provides the CAknFepUICtrlCandidatePane definition. |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
||
20 |
||
21 |
||
22 |
||
23 |
||
24 |
||
25 |
||
26 |
||
27 |
||
28 |
||
29 |
||
30 |
#ifndef __AKN_FEP_AVKON_CANDIDATE_PANE_H__ |
|
31 |
#define __AKN_FEP_AVKON_CANDIDATE_PANE_H__ |
|
32 |
||
33 |
#include <e32std.h> |
|
34 |
#include <coecntrl.h> |
|
35 |
||
36 |
#include "AknFepUICtrlCandidatePane.h" |
|
37 |
#include "AknFepUIAvkonCtrlContainerChinese.h" |
|
38 |
||
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
39 |
class CAknFepUICtrlCandidateCharacter; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
40 |
class MAknFepUIEventObserver; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
41 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
42 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
43 |
* Pane which displays the preview character. |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
44 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
45 |
NONSHARABLE_CLASS(CAknFepPreview) : public CCoeControl |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
46 |
{ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
47 |
public: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
48 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
49 |
* first phase construction |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
50 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
51 |
static CAknFepPreview* NewL( RWindowTreeNode& aParent ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
52 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
53 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
54 |
* Destruction function |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
55 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
56 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
57 |
~CAknFepPreview(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
58 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
59 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
60 |
* draw |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
61 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
62 |
* @param aRect rectangle |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
63 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
64 |
virtual void Draw( const TRect& aRect ) const; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
65 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
66 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
67 |
* size changed |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
68 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
69 |
virtual void SizeChanged(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
70 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
71 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
72 |
* Show preview lable |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
73 |
* @param aRect rectangle |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
74 |
* @param aCharacter preview text |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
75 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
76 |
void ShowL( TRect& aRect, const TDesC& aCharacter ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
77 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
78 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
79 |
* Hide preview lable |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
80 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
81 |
void HideL(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
82 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
83 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
84 |
* count component controls |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
85 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
86 |
* @return number of contained controls |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
87 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
88 |
TInt CountComponentControls() const; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
89 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
90 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
91 |
* Component control |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
92 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
93 |
* @param aIndex the control to return, must be between 0 and the number of controls |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
94 |
* @return pointer to contained control, ownership is not passed |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
95 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
96 |
CCoeControl* ComponentControl(TInt aIndex) const; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
97 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
98 |
protected: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
99 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
100 |
* Construction function |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
101 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
102 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
103 |
CAknFepPreview(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
104 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
105 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
106 |
* second phase construction |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
107 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
108 |
void ConstructL( RWindowTreeNode& aParent ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
109 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
110 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
111 |
* layout the background frames |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
112 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
113 |
* @param aOuterRect filled with outer rect coords |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
114 |
* @param aInnerRect filled with inner rect coords |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
115 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
116 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
117 |
void CalculateFrameRects(TRect& aOuterRect, TRect& aInnerRect) const; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
118 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
119 |
private: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
120 |
// Preview lable |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
121 |
CEikLabel* iPreviewLabel; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
122 |
}; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
123 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
124 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
125 |
* Pane which displays the Up arrow & Down arrow & close. |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
126 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
127 |
NONSHARABLE_CLASS(CAknFepUICtrlCandidateScroll) : public CCoeControl |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
128 |
{ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
129 |
public: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
130 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
131 |
* first phase construction |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
132 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
133 |
static CAknFepUICtrlCandidateScroll* NewL( RWindowTreeNode& aParent, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
134 |
MAknFepUIEventObserver* aObserver ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
135 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
136 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
137 |
* destructor |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
138 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
139 |
~CAknFepUICtrlCandidateScroll(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
140 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
141 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
142 |
* size changed |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
143 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
144 |
virtual void SizeChanged(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
145 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
146 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
147 |
* draw |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
148 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
149 |
* @param aRect rectangle |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
150 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
151 |
virtual void Draw( const TRect& aRect ) const; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
152 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
153 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
154 |
* Handle pointer event |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
155 |
* @param aPointerEvent pointer event |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
156 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
157 |
void HandlePointerEventL( const TPointerEvent & aPointerEvent ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
158 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
159 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
160 |
* enable/disable the rendering of the Up Scroll Arrows. |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
161 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
162 |
* @param aValue if ETrue, enable the arrows |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
163 |
* if EFalse, disable the arrrows |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
164 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
165 |
void ShowUpScrollArrows( TBool aValue ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
166 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
167 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
168 |
* enable/disable the rendering of the down Scroll Arrows. |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
169 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
170 |
* @param aValue if ETrue, enable the arrows |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
171 |
* if EFalse, disable the arrrows |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
172 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
173 |
void ShowDownScrollArrows( TBool aValue ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
174 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
175 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
176 |
* enable/disable the rendering of the Vertical Scroll Arrows. |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
177 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
178 |
* @param aValue if ETrue, enable the arrows |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
179 |
* if EFalse, disable the arrrows |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
180 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
181 |
void ShowVerticalScrollArrows( TBool aValue ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
182 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
183 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
184 |
* are the Vertical Scroll Arrows enabled |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
185 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
186 |
* @return if arrows not enabled, returns EFalse |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
187 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
188 |
TBool IsShowVerticalScrollArrows() const; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
189 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
190 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
191 |
protected: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
192 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
193 |
* second phase construction |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
194 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
195 |
void ConstructL( RWindowTreeNode& aParent, MAknFepUIEventObserver* aObserver ); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
196 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
197 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
198 |
* Construct all the bitmap classes |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
199 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
200 |
void ConstructBitmapsL(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
201 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
202 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
203 |
* constructor |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
204 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
205 |
CAknFepUICtrlCandidateScroll(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
206 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
207 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
208 |
* layout contained controls |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
209 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
210 |
void LayoutIcon(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
211 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
212 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
213 |
* Calculate the close rect |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
214 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
215 |
* @param aOuterRect filled with outer rect coords |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
216 |
* @param aInnerRect filled with inner rect coords |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
217 |
* |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
218 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
219 |
void CalculateCloseRects(TRect& aOuterRect, TRect& aInnerRect) const; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
220 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
221 |
private: |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
222 |
CFbsBitmap* iScrollCloseBitmap; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
223 |
CFbsBitmap* iScrollCloseBitmapMask; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
224 |
CFbsBitmap* iNaviArrowBitmapUp; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
225 |
CFbsBitmap* iNaviArrowBitmapUpMask; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
226 |
CFbsBitmap* iNaviArrowBitmapDown; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
227 |
CFbsBitmap* iNaviArrowBitmapDownMask; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
228 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
229 |
TAknLayoutRect iIndiFepClose; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
230 |
TAknLayoutRect iIndiFepArrowUp; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
231 |
TAknLayoutRect iIndiFepArrowDown; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
232 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
233 |
TBool iShowVerticalScrollArrows; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
234 |
TBool iShowUpScrollArrows; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
235 |
TBool iShowDownScrollArrows; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
236 |
TBool iShowClose; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
237 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
238 |
MAknFepUIEventObserver* iObServer; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
239 |
}; |
44 | 240 |
|
241 |
/** |
|
242 |
* Pane which displays the Chinese Candidates. |
|
243 |
*/ |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
244 |
NONSHARABLE_CLASS(CAknFepUICtrlCandidatePane) : |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
245 |
public CCoeControl, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
246 |
public MAknFepUICtrlCandidatePane, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
247 |
public MAknFepUIEventObserver |
44 | 248 |
{ |
249 |
public: |
|
250 |
/** |
|
251 |
* first phase construction |
|
252 |
*/ |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
253 |
static CAknFepUICtrlCandidatePane* NewL( RWindow& aParent, CAknFepUiLayoutDataMgr* aLafDataMgr, |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
254 |
MAknFepChineseUiMgr* aMgr ); |
44 | 255 |
/** |
256 |
* destructor |
|
257 |
*/ |
|
258 |
~CAknFepUICtrlCandidatePane(); |
|
259 |
public: |
|
260 |
/** |
|
261 |
* Get a buffer that can be filled with candidate characters, |
|
262 |
* which will subsequently be displayed. |
|
263 |
* |
|
264 |
* @output the text buffer of the Pane |
|
265 |
*/ |
|
266 |
const TDesC& TextBuffer() const; |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
267 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
268 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
269 |
* Handle pointer event |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
270 |
* @param aPointerEvent pointer event |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
271 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
272 |
void HandlePointerEventL( const TPointerEvent & aPointerEvent ); |
44 | 273 |
|
274 |
/** |
|
275 |
* Allows the client to set a descriptor pointer into an existing buffer of |
|
276 |
* data, avoiding unnecessary copying of data. |
|
277 |
* <p> Note that if the buffer contains less characters than the current |
|
278 |
* visible count, then the remaining characters will not be displayed. |
|
279 |
* <p> Note also that if the current selection falls outside the range |
|
280 |
* of the size of the new buffer, it will be made not visible. |
|
281 |
* However, the current highlighted state remains, so if the selection |
|
282 |
* is set once more to a valid entry (or if the buffer is set to a length that |
|
283 |
* includes the currently selected position), and the highlight is still enabled, |
|
284 |
* the highlight will reappear. |
|
285 |
* |
|
286 |
* @param aBufferPtr descriptor that contains the candidates for display, |
|
287 |
* could be a pointer into a subset of a larger descriptor |
|
288 |
* that contains all the candidates. Note that only the |
|
289 |
* first EMaxCandidates of aBuffer will be used. |
|
290 |
* Length must be > 0. |
|
291 |
*/ |
|
292 |
void SetCandidateBuffer(const TDesC& aBuffer); |
|
293 |
||
294 |
/** |
|
295 |
* This function sets the highlighted status of the pane for rendering purposes. |
|
296 |
* If the Pane is highlighted it displays the current selected Candidate, |
|
297 |
* plus numbers with each of the other Candidates. |
|
298 |
* |
|
299 |
* @param aHighlighted ETrue if the highlight is to be set |
|
300 |
* EFalse if the highlight is to be removed |
|
301 |
*/ |
|
302 |
void SetHighlighted(TBool aHighlighted); |
|
303 |
||
304 |
/** |
|
305 |
* This function returns the highlighted status of the Pane. |
|
306 |
* |
|
307 |
* @return ETrue if highlight was set |
|
308 |
* EFalse if highlight was not set |
|
309 |
* |
|
310 |
*/ |
|
311 |
TBool Highlighted() const; |
|
312 |
||
313 |
/** |
|
314 |
* Set the candidate mode for the specified candidate. This is used for |
|
315 |
* setting the colour of the font for components in stroke mode |
|
316 |
* |
|
317 |
* @param aMode the new mode |
|
318 |
*/ |
|
319 |
void SetCandidateMode(TInt aIndex, TCandidateMode aMode); |
|
320 |
||
321 |
/** |
|
322 |
* Get the candidate mode for the specified candidate. |
|
323 |
* |
|
324 |
* @return aMode the new mode |
|
325 |
*/ |
|
326 |
TCandidateMode CandidateMode(TInt aIndex); |
|
327 |
||
328 |
/** |
|
329 |
* are the Horizontal Scroll Arrows enabled? |
|
330 |
* |
|
331 |
* @return if arrows not enabled, returns EFalse |
|
332 |
*/ |
|
333 |
TBool IsShowHorizontalScrollArrows() const; |
|
334 |
||
335 |
/** |
|
336 |
* enable/disable the rendering of the Horizontal Scroll Arrows. |
|
337 |
* |
|
338 |
* @param aValue if ETrue, enable the arrows |
|
339 |
* if EFalse, disable the arrrows |
|
340 |
*/ |
|
341 |
void ShowHorizontalScrollArrows(TBool aValue); |
|
342 |
||
343 |
||
344 |
/** |
|
345 |
* enable/disable the rendering of the up Scroll Arrows. |
|
346 |
* |
|
347 |
* @param aValue if ETrue, enable the arrows |
|
348 |
* if EFalse, disable the arrrows |
|
349 |
*/ |
|
350 |
void ShowUpScrollArrows(TBool aValue); |
|
351 |
||
352 |
/** |
|
353 |
* enable/disable the rendering of the down Scroll Arrows. |
|
354 |
* |
|
355 |
* @param aValue if ETrue, enable the arrows |
|
356 |
* if EFalse, disable the arrrows |
|
357 |
*/ |
|
358 |
void ShowDownScrollArrows(TBool aValue); |
|
359 |
||
360 |
/** |
|
361 |
* enable/disable the rendering of the left Scroll Arrows. |
|
362 |
* |
|
363 |
* @param aValue if ETrue, enable the arrows |
|
364 |
* if EFalse, disable the arrrows |
|
365 |
*/ |
|
366 |
void ShowLeftScrollArrows(TBool aValue); |
|
367 |
||
368 |
/** |
|
369 |
* enable/disable the rendering of the right Scroll Arrows. |
|
370 |
* |
|
371 |
* @param aValue if ETrue, enable the arrows |
|
372 |
* if EFalse, disable the arrrows |
|
373 |
*/ |
|
374 |
void ShowRightScrollArrows(TBool aValue); |
|
375 |
||
376 |
/** |
|
377 |
* are the Vertical Scroll Arrows enabled? |
|
378 |
* |
|
379 |
* @return if arrows not enabled, returns EFalse |
|
380 |
*/ |
|
381 |
TBool IsShowVerticalScrollArrows() const; |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
382 |
|
44 | 383 |
/** |
384 |
* enable/disable the rendering of the Vertical Scroll Arrows. |
|
385 |
* |
|
386 |
* @param aValue if ETrue, enable the arrows |
|
387 |
* if EFalse, disable the arrrows |
|
388 |
*/ |
|
389 |
void ShowVerticalScrollArrows(TBool aValue); |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
390 |
|
44 | 391 |
/** |
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
392 |
* This function is not needed. |
44 | 393 |
* |
394 |
* @param aValue if ETrue, enable the ordinals |
|
395 |
* if EFalse, disable the ordinals |
|
396 |
* |
|
397 |
*/ |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
398 |
void ShowCandidateOrdinals(TBool /*aValue*/){}; |
44 | 399 |
|
400 |
/** |
|
401 |
* This function returns the number of Candidates that are visible in the pane |
|
402 |
* in its current configuration. |
|
403 |
* |
|
404 |
* @return number of candidates that are currently visible |
|
405 |
*/ |
|
406 |
TInt VisibleCandidateCount() const; |
|
407 |
||
408 |
/** |
|
409 |
* This function sets the number of candidates that are visible. |
|
410 |
* This will affect the size of the control as determined by the layout. |
|
411 |
* |
|
412 |
* @param aCount the new visible count, |
|
413 |
* must be 1 <= aCount <= EMaxCandidates |
|
414 |
*/ |
|
415 |
void SetVisibleCandidateCount(TInt aCount); |
|
416 |
||
417 |
/** |
|
418 |
* Select the first visible item in the candidate buffer |
|
419 |
* |
|
420 |
* @return ETrue if success, EFalse if no items visible |
|
421 |
* |
|
422 |
*/ |
|
423 |
TBool SelectFirst(); |
|
424 |
||
425 |
/** |
|
426 |
* Select the first visible phrase item in the candidate buffer |
|
427 |
* |
|
428 |
* @return ETrue if success, EFalse if no items visible |
|
429 |
* |
|
430 |
*/ |
|
431 |
TBool SelectFirstPhrase(); |
|
432 |
||
433 |
/** |
|
434 |
* Select the last visible item in the candidate buffer |
|
435 |
* |
|
436 |
* @return ETrue if success, EFalse if no items visible |
|
437 |
* |
|
438 |
*/ |
|
439 |
TBool SelectLast(); |
|
440 |
||
441 |
/** |
|
442 |
* Select the last visible phrase item in the candidate buffer |
|
443 |
* |
|
444 |
* @return ETrue if success, EFalse if no items visible |
|
445 |
* |
|
446 |
*/ |
|
447 |
TBool SelectLastPhrase(); |
|
448 |
||
449 |
/** |
|
450 |
* Select the next visible item |
|
451 |
* |
|
452 |
* @return ETrue if success, |
|
453 |
* EFalse if no items visible, or if already on last visible item |
|
454 |
*/ |
|
455 |
TBool SelectNext(); |
|
456 |
/** |
|
457 |
* Select the previous visible item |
|
458 |
* |
|
459 |
* @return ETrue if success, |
|
460 |
* EFalse if no items visible, or if already on first visible item |
|
461 |
*/ |
|
462 |
TBool SelectPrev(); |
|
463 |
||
464 |
/** |
|
465 |
* This function selects the given index. |
|
466 |
* <p> Note that if the new selected index is within the visible count, |
|
467 |
* but falls on a candidate that is not valid (i.e. if it falls outside the |
|
468 |
* length of the candidate buffer) then nothing happens and EFalse is returned |
|
469 |
* |
|
470 |
* @param aIndex If aIndex falls outside length of candidate buffer, |
|
471 |
* then return EFalse to indicate failure. |
|
472 |
* @return ETrue if index was valid, EFalse if index not valid |
|
473 |
*/ |
|
474 |
TBool SelectIndex(TInt aIndex, TBool selected = ETrue); |
|
475 |
||
476 |
/** |
|
477 |
* This function returns the selected index of the Candidate Pane. |
|
478 |
* |
|
479 |
* @return the index of the selected item. If the Pane is not highlighted it returns 0. |
|
480 |
* |
|
481 |
*/ |
|
482 |
TInt SelectedIndex() const; |
|
483 |
||
484 |
/** |
|
485 |
* This function returns the character at index of the current selection |
|
486 |
* |
|
487 |
* @return a descrptor containing the character that is currently selected. |
|
488 |
* If the currect selection falls outside the length of the current buffer, |
|
489 |
* then return a null descriptor |
|
490 |
* |
|
491 |
*/ |
|
492 |
TPtrC CurrentCandidate() const; |
|
493 |
/** |
|
494 |
* This function returns the phrase at index of the current selection |
|
495 |
* |
|
496 |
* @return a descrptor containing the character that is currently selected. |
|
497 |
* If the currect selection falls outside the length of the current buffer, |
|
498 |
* then return a null descriptor |
|
499 |
* |
|
500 |
*/ |
|
501 |
TPtrC CurrentPhraseCandidate() const; |
|
502 |
/** |
|
503 |
* This function calculate the input pane's size for phrase input layout |
|
504 |
* @return input pane's size |
|
505 |
* |
|
506 |
*/ |
|
507 |
TInt LabelTextWidthInPixels(TInt aIndex); |
|
508 |
/** |
|
509 |
* Set layout |
|
510 |
* @param aPaneLayout the new panelayout |
|
511 |
* |
|
512 |
*/ |
|
513 |
void SetPaneLayout(CAknFepUICtrlContainerChinese::TPaneLayout aPaneLayout); |
|
514 |
/** |
|
515 |
* Split phrase candidates into pages |
|
516 |
*/ |
|
517 |
void SplitPhraseCandidatesIntoPages(); |
|
518 |
||
519 |
/** |
|
520 |
* Navigate to next page |
|
521 |
*/ |
|
522 |
void NextCandidatePage(void); |
|
523 |
||
524 |
/** |
|
525 |
* Navigate to previous page |
|
526 |
*/ |
|
527 |
void PreviousCandidatePage(void); |
|
528 |
||
529 |
/** |
|
530 |
* Return candidate array |
|
531 |
*/ |
|
532 |
CDesCArrayFlat* CandidateArray(void); |
|
533 |
||
534 |
/** |
|
535 |
* Set phrase candidate buffer |
|
536 |
*/ |
|
537 |
void SetCandidateBuffer(void); |
|
538 |
||
539 |
/** |
|
540 |
* Reset candidate pane state and variables |
|
541 |
*/ |
|
542 |
void ResetCandidateState(); |
|
543 |
||
544 |
/** |
|
545 |
* To test whether current page is the first page |
|
546 |
*/ |
|
547 |
TBool IsFirstPage(); |
|
548 |
||
549 |
/** |
|
550 |
* To test whether current page is the last page |
|
551 |
*/ |
|
552 |
TBool IsLastPage(); |
|
553 |
||
554 |
/** |
|
555 |
* To set all the cnadidate label invisible(phrase creation) |
|
556 |
*/ |
|
557 |
void SetInVisiable(); |
|
558 |
/** |
|
559 |
* To test whether need to get new candidate page |
|
560 |
*/ |
|
561 |
TBool NeedGetNewCandidatePage(); |
|
562 |
||
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
563 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
564 |
* Close button is pressed |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
565 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
566 |
void FepUIClosePressed(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
567 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
568 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
569 |
* Set MAknFepUiStateCtrl pointer |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
570 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
571 |
void SetFepUiState(MAknFepUiStateCtrl* aFepUiState); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
572 |
|
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
573 |
/** |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
574 |
* Hide preview |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
575 |
*/ |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
576 |
void HidePreviewL(); |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
577 |
|
44 | 578 |
public: // from CCoeControl |
579 |
/** |
|
580 |
* size changed |
|
581 |
*/ |
|
582 |
virtual void SizeChanged(); |
|
583 |
||
584 |
/** |
|
585 |
* count component controls |
|
586 |
* |
|
587 |
* @return number of contained controls |
|
588 |
*/ |
|
589 |
TInt CountComponentControls() const; |
|
590 |
||
591 |
/** |
|
592 |
* Component control |
|
593 |
* |
|
594 |
* @param aIndex the control to return, must be between 0 and the number of controls |
|
595 |
* @return pointer to contained control, ownership is not passed |
|
596 |
* |
|
597 |
*/ |
|
598 |
CCoeControl* ComponentControl(TInt aIndex) const; |
|
599 |
||
600 |
void Enable(TBool aEnable); |
|
601 |
||
602 |
protected: |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
603 |
|
44 | 604 |
/** |
605 |
* second phase construction |
|
606 |
*/ |
|
607 |
void ConstructL(RWindow& aParent); |
|
608 |
||
609 |
/** |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
610 |
* Construct function |
44 | 611 |
*/ |
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
612 |
CAknFepUICtrlCandidatePane( CAknFepUiLayoutDataMgr* aLafDataMgr, MAknFepChineseUiMgr* aMgr ); |
44 | 613 |
|
614 |
/** |
|
615 |
* layout contained controls |
|
616 |
*/ |
|
617 |
void LayoutContainedControls(); |
|
618 |
||
619 |
/** |
|
620 |
* layout the labels for a single candidate |
|
621 |
*/ |
|
622 |
void LayoutLabel(TInt aIndex); |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
623 |
|
44 | 624 |
/** |
625 |
* layout the labels for all the candidates (even those that are not currently visible) |
|
626 |
*/ |
|
627 |
void LayoutLabels(); |
|
628 |
||
629 |
/** |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
630 |
* layout the scroll pane |
44 | 631 |
*/ |
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
632 |
void LayoutScroll(); |
44 | 633 |
|
634 |
/** |
|
635 |
* set label vilisibilty, according to the current pane layout |
|
636 |
*/ |
|
637 |
void UpdateLabelVisibility(); |
|
638 |
||
639 |
/** |
|
640 |
* draw background color |
|
641 |
* |
|
642 |
* @param aRect rect in which to draw |
|
643 |
*/ |
|
644 |
void DrawBackground(const TRect& aRect) const; |
|
645 |
||
646 |
/** |
|
647 |
* Internal candidate paging function, |
|
648 |
* Only paging once per call. |
|
649 |
* |
|
650 |
*/ |
|
651 |
void InternalSpilitPhraseCandidate(); |
|
652 |
||
653 |
private: // the following need resetting |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
654 |
RPointerArray<CAknFepUICtrlCandidateCharacter> iCandidateLabelArray; |
44 | 655 |
RArray<TCandidateMode> iCandidateModeArray; |
656 |
private: // the following are members |
|
657 |
CAknFepUiLayoutDataMgr* iLafDataMgr; |
|
658 |
TBufC<EMaxCandidates> iBuffer; |
|
659 |
CAknFepUICtrlContainerChinese::TPaneLayout iPaneLayout; |
|
660 |
TInt iVisibleCount; |
|
661 |
TInt iSelected; |
|
662 |
TBool iHighlighted; |
|
663 |
RArray<TPage> iPages; |
|
664 |
//next paging candidate index |
|
665 |
TInt iUnpagedIndex; |
|
666 |
TInt iCurDisplayPage; |
|
667 |
CDesCArrayFlat* iCandidateArray; |
|
50
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
668 |
MAknFepChineseUiMgr* iChineseUiMgr; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
669 |
MAknFepUiStateCtrl* iFepUiState; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
670 |
CAknFepUICtrlCandidateScroll* iCtrlScroll; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
671 |
CAknFepPreview* iPreview; |
5a1685599b76
Revision: 201035
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
672 |
TBool iPointDown; |
44 | 673 |
}; |
674 |
||
675 |
#endif //__AKN_FEP_AVKON_CANDIDATE_PANE_H__ |
|
676 |
||
677 |
// End of file |