|
1 /* |
|
2 * Copyright (c) 2009-2010 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: CPeninputArabicFingerHwrWritingWnd |
|
15 * |
|
16 */ |
|
17 #include <peninputlayout.h> |
|
18 #include "peninputfingerhwrarwritingwnd.h" |
|
19 |
|
20 // --------------------------------------------------------------------------- |
|
21 // CPeninputArabicFingerHwrWritingWnd::NewL |
|
22 // factory function |
|
23 // (other items were commented in a header). |
|
24 // --------------------------------------------------------------------------- |
|
25 // |
|
26 CPeninputArabicFingerHwrWritingWnd* CPeninputArabicFingerHwrWritingWnd::NewL( const TRect& aRect, |
|
27 CFepUiLayout* aUiLayout, |
|
28 TInt aControlId, |
|
29 TBool aFullScreenFlag, |
|
30 TBool aShowGuideLine ) |
|
31 { |
|
32 CPeninputArabicFingerHwrWritingWnd* self = new (ELeave) |
|
33 CPeninputArabicFingerHwrWritingWnd(aRect,aUiLayout,aControlId,aFullScreenFlag,aShowGuideLine); |
|
34 CleanupStack::PushL(self); |
|
35 self->ConstructL(); |
|
36 CleanupStack::Pop(); |
|
37 return self; |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------------------------- |
|
41 // CPeninputArabicFingerHwrWritingWnd::CPeninputArabicFingerHwrWritingWnd |
|
42 // factory function |
|
43 // (other items were commented in a header). |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 CPeninputArabicFingerHwrWritingWnd::CPeninputArabicFingerHwrWritingWnd( const TRect& aRect, |
|
47 CFepUiLayout* aUiLayout, |
|
48 TInt aControlId, |
|
49 TBool aFullScreenFlag, |
|
50 TBool aShowGuideLine ) |
|
51 :CTransparentHwrWndExt(aRect,aUiLayout,aControlId,aFullScreenFlag,aShowGuideLine) |
|
52 { |
|
53 SetTactileFeedbackType(ETouchFeedbackSensitiveInput); |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // CPeninputArabicFingerHwrWritingWnd::~CPeninputArabicFingerHwrWritingWnd |
|
58 // factory function |
|
59 // (other items were commented in a header). |
|
60 // --------------------------------------------------------------------------- |
|
61 // |
|
62 CPeninputArabicFingerHwrWritingWnd::~CPeninputArabicFingerHwrWritingWnd() |
|
63 { |
|
64 delete iIndicator; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // CPeninputArabicFingerHwrWritingWnd::InstallIndicator |
|
69 // factory function |
|
70 // (other items were commented in a header). |
|
71 // --------------------------------------------------------------------------- |
|
72 // |
|
73 void CPeninputArabicFingerHwrWritingWnd::InstallIndicator(CFepUiBaseCtrl* aIndicator) |
|
74 { |
|
75 delete iIndicator; |
|
76 iIndicator = aIndicator; |
|
77 } |
|
78 |
|
79 // --------------------------------------------------------------------------- |
|
80 // CPeninputArabicFingerHwrWritingWnd::Draw |
|
81 // factory function |
|
82 // (other items were commented in a header). |
|
83 // --------------------------------------------------------------------------- |
|
84 // |
|
85 void CPeninputArabicFingerHwrWritingWnd::Draw() |
|
86 { |
|
87 CTransparentHwrWndExt::Draw(); |
|
88 if(iIsShowingIndicator) |
|
89 { |
|
90 if(iIndicator) |
|
91 { |
|
92 iIndicator->Draw(); |
|
93 } |
|
94 } |
|
95 } |
|
96 |
|
97 // --------------------------------------------------------------------------- |
|
98 // CPeninputArabicFingerHwrWritingWnd::ShowIndicator |
|
99 // factory function |
|
100 // (other items were commented in a header). |
|
101 // --------------------------------------------------------------------------- |
|
102 // |
|
103 void CPeninputArabicFingerHwrWritingWnd::ShowIndicator(TBool aShowIndicator) |
|
104 { |
|
105 iIsShowingIndicator = aShowIndicator; |
|
106 Draw(); |
|
107 } |
|
108 |
|
109 // End Of File |