|
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __THELPVIEWCTRLS_H__ |
|
17 #define __THELPVIEWCTRLS_H__ |
|
18 |
|
19 // System includes |
|
20 #include <coecntrl.h> |
|
21 #include <coecobs.h> |
|
22 #include <techview/eiktxlbx.h> |
|
23 #include <techview/eiktxlbm.h> |
|
24 |
|
25 // Classes referenced |
|
26 class CHlpList; |
|
27 class CHlpItem; |
|
28 // |
|
29 class CEikEdwin; |
|
30 class CEikCommandButton; |
|
31 |
|
32 |
|
33 |
|
34 // |
|
35 // ----> CHlpSearchPrompt (header) |
|
36 // |
|
37 class CHlpSearchPrompt : public CCoeControl, public MCoeControlObserver |
|
38 { |
|
39 // |
|
40 public: |
|
41 // |
|
42 CHlpSearchPrompt(); |
|
43 ~CHlpSearchPrompt(); |
|
44 void ConstructL(CCoeControl& aParent); |
|
45 |
|
46 // |
|
47 public: // NEW |
|
48 // |
|
49 void ResetSearchL(); |
|
50 HBufC* SearchTextLC(); |
|
51 |
|
52 // |
|
53 public: // FROM CCoeControl |
|
54 // |
|
55 void MakeVisible(TBool aVisible); |
|
56 void SizeChanged(); |
|
57 TInt CountComponentControls() const; |
|
58 CCoeControl* ComponentControl(TInt aIndex) const; |
|
59 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
60 |
|
61 // |
|
62 public: // FROM MCoeControlObserver |
|
63 // |
|
64 void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType); |
|
65 |
|
66 // |
|
67 private: // NEW INTERNAL |
|
68 // |
|
69 static TInt HandleTimerExpiredL(TAny* aSelf); |
|
70 |
|
71 // |
|
72 private: // MEMBER DATA |
|
73 // |
|
74 CEikEdwin* iEdwin; |
|
75 CPeriodic* iHideTimer; |
|
76 }; |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 // |
|
84 // ----> CHlpListBox (header) |
|
85 // |
|
86 class CHlpListBox : public CCoeControl, public MCoeControlObserver |
|
87 { |
|
88 // |
|
89 public: |
|
90 // |
|
91 CHlpListBox(); |
|
92 ~CHlpListBox(); |
|
93 void ConstructL(CCoeControl& aParent); |
|
94 |
|
95 // |
|
96 public: // FROM CCoeControl |
|
97 // |
|
98 void SizeChanged(); |
|
99 TInt CountComponentControls() const; |
|
100 CCoeControl* ComponentControl(TInt aIndex) const; |
|
101 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
102 TSize MinimumSize(); |
|
103 |
|
104 // |
|
105 public: // NEW |
|
106 // |
|
107 const CHlpItem& HelpItemL() const; |
|
108 void PopulateListBoxL(CHlpList* aContent); // takes ownership |
|
109 inline CTextListBoxModel* Model() const { return iListBox->Model(); } |
|
110 inline CEikTextListBox* ListBox() const { return iListBox; } |
|
111 |
|
112 // |
|
113 public: // FROM MCoeControlObserver |
|
114 // |
|
115 void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType); |
|
116 |
|
117 // |
|
118 private: // INTERNAL |
|
119 // |
|
120 void SetContent(CHlpList* aContent); |
|
121 |
|
122 // |
|
123 private: // MEMBER DATA |
|
124 // |
|
125 CHlpList* iContent; |
|
126 CEikCommandButton* iButton; |
|
127 CEikTextListBox* iListBox; |
|
128 }; |
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 #endif |