0
|
1 |
/****************************************************************************
|
|
2 |
**
|
|
3 |
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
** All rights reserved.
|
|
5 |
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
6 |
**
|
|
7 |
** This file is part of the utility applications of the Qt Toolkit.
|
|
8 |
**
|
|
9 |
** $QT_BEGIN_LICENSE:LGPL$
|
|
10 |
** No Commercial Usage
|
|
11 |
** This file contains pre-release code and may not be distributed.
|
|
12 |
** You may use this file in accordance with the terms and conditions
|
|
13 |
** contained in the Technology Preview License Agreement accompanying
|
|
14 |
** this package.
|
|
15 |
**
|
|
16 |
** GNU Lesser General Public License Usage
|
|
17 |
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
18 |
** General Public License version 2.1 as published by the Free Software
|
|
19 |
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
20 |
** packaging of this file. Please review the following information to
|
|
21 |
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
22 |
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
23 |
**
|
|
24 |
** In addition, as a special exception, Nokia gives you certain additional
|
|
25 |
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
26 |
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
27 |
**
|
|
28 |
** If you have questions regarding the use of this file, please contact
|
|
29 |
** Nokia at qt-info@nokia.com.
|
|
30 |
**
|
|
31 |
**
|
|
32 |
**
|
|
33 |
**
|
|
34 |
**
|
|
35 |
**
|
|
36 |
**
|
|
37 |
**
|
|
38 |
** $QT_END_LICENSE$
|
|
39 |
**
|
|
40 |
****************************************************************************/
|
|
41 |
|
|
42 |
#ifndef PMMAPPERVIEW_H
|
|
43 |
#define PMMAPPERVIEW_H
|
|
44 |
|
|
45 |
|
|
46 |
// INCLUDES
|
|
47 |
#include <aknview.h>
|
|
48 |
#include <EIKLBO.H>
|
|
49 |
|
|
50 |
// CONSTANTS
|
|
51 |
// FORWARD DECLARATIONS
|
|
52 |
class CAknSingleStyleListBox;
|
|
53 |
class CAknSettingStyleListBox;
|
|
54 |
|
|
55 |
// CLASS DECLARATION
|
|
56 |
|
|
57 |
/**
|
|
58 |
* CPixelMetricsMapperViewContainer
|
|
59 |
*
|
|
60 |
*/
|
|
61 |
class CPixelMetricsMapperViewContainer
|
|
62 |
: public CCoeControl,
|
|
63 |
public MCoeControlObserver
|
|
64 |
{
|
|
65 |
public: // Constructors and destructor
|
|
66 |
|
|
67 |
/**
|
|
68 |
* C++ constructor.
|
|
69 |
*/
|
|
70 |
CPixelMetricsMapperViewContainer();
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Symbian 2nd phase constructor.
|
|
74 |
*
|
|
75 |
* @param aRect Rectangle.
|
|
76 |
*/
|
|
77 |
void ConstructL( const TRect& aRect );
|
|
78 |
|
|
79 |
/**
|
|
80 |
* Destructor.
|
|
81 |
*/
|
|
82 |
~CPixelMetricsMapperViewContainer();
|
|
83 |
|
|
84 |
|
|
85 |
public: // New functions
|
|
86 |
|
|
87 |
/**
|
|
88 |
* Show the given string.
|
|
89 |
*
|
|
90 |
* @param aString The string to be shown.
|
|
91 |
*/
|
|
92 |
void ShowL( const TDesC& aString, TBool& aLast, const TBool& aFileOutput = EFalse );
|
|
93 |
|
|
94 |
void ClearL();
|
|
95 |
|
|
96 |
|
|
97 |
public: // Functions from base classes
|
|
98 |
|
|
99 |
/**
|
|
100 |
* From CCoeControl.
|
|
101 |
*/
|
|
102 |
TKeyResponse OfferKeyEventL(
|
|
103 |
const TKeyEvent& aKeyEvent,
|
|
104 |
TEventCode aType );
|
|
105 |
|
|
106 |
|
|
107 |
void HandleResourceChange(TInt aType);
|
|
108 |
|
|
109 |
|
|
110 |
private: // Functions from base classes
|
|
111 |
|
|
112 |
/**
|
|
113 |
* From CCoeControl.
|
|
114 |
*/
|
|
115 |
void SizeChanged();
|
|
116 |
|
|
117 |
/**
|
|
118 |
* From CCoeControl.
|
|
119 |
*/
|
|
120 |
TInt CountComponentControls() const;
|
|
121 |
|
|
122 |
/**
|
|
123 |
* From CCoeControl.
|
|
124 |
*/
|
|
125 |
CCoeControl* ComponentControl( TInt aIndex ) const;
|
|
126 |
|
|
127 |
/**
|
|
128 |
* From CCoeControl.
|
|
129 |
*/
|
|
130 |
void Draw( const TRect& aRect ) const;
|
|
131 |
|
|
132 |
|
|
133 |
private: // Functions from base classes
|
|
134 |
|
|
135 |
/**
|
|
136 |
* From MCoeControlObserver.
|
|
137 |
*/
|
|
138 |
void HandleControlEventL(
|
|
139 |
CCoeControl* aControl,
|
|
140 |
TCoeEvent aEventType );
|
|
141 |
|
|
142 |
|
|
143 |
private: // Data
|
|
144 |
|
|
145 |
// Texts.
|
|
146 |
CDesCArray* iTexts;
|
|
147 |
|
|
148 |
// Count.
|
|
149 |
TInt iCount;
|
|
150 |
|
|
151 |
// Listbox.
|
|
152 |
CAknSingleStyleListBox* iListbox;
|
|
153 |
|
|
154 |
};
|
|
155 |
|
|
156 |
|
|
157 |
|
|
158 |
/**
|
|
159 |
* CPixelMetricsMapperView
|
|
160 |
*
|
|
161 |
*
|
|
162 |
* @since 1.0
|
|
163 |
*/
|
|
164 |
class CPixelMetricsMapperView : public CAknView
|
|
165 |
{
|
|
166 |
public: // Constructors and destructor
|
|
167 |
|
|
168 |
/**
|
|
169 |
* Symbian 2nd phase constructor.
|
|
170 |
*/
|
|
171 |
void ConstructL();
|
|
172 |
|
|
173 |
/**
|
|
174 |
* Destructor.
|
|
175 |
*/
|
|
176 |
~CPixelMetricsMapperView();
|
|
177 |
|
|
178 |
|
|
179 |
public: // Functions from base classes
|
|
180 |
|
|
181 |
/**
|
|
182 |
* From CAknView.
|
|
183 |
*/
|
|
184 |
TUid Id() const;
|
|
185 |
|
|
186 |
/**
|
|
187 |
* From CAknView.
|
|
188 |
*/
|
|
189 |
void HandleCommandL( TInt aCommand );
|
|
190 |
|
|
191 |
/**
|
|
192 |
* From CAknView.
|
|
193 |
*/
|
|
194 |
void HandleStatusPaneSizeChange();
|
|
195 |
|
|
196 |
/**
|
|
197 |
* From CAknView.
|
|
198 |
*/
|
|
199 |
void ShowL( const TDesC& aString, TBool& aLast, const TBool& aFileOutput =EFalse );
|
|
200 |
void ClearL();
|
|
201 |
|
|
202 |
|
|
203 |
private: // from CAknView
|
|
204 |
|
|
205 |
/**
|
|
206 |
* From CAknView.
|
|
207 |
*/
|
|
208 |
void DoActivateL(
|
|
209 |
const TVwsViewId& aPrevViewId,
|
|
210 |
TUid aCustomMessageId,
|
|
211 |
const TDesC8& aCustomMessage );
|
|
212 |
|
|
213 |
/**
|
|
214 |
* From CAknView.
|
|
215 |
*/
|
|
216 |
void DoDeactivate();
|
|
217 |
|
|
218 |
|
|
219 |
private: // Data
|
|
220 |
|
|
221 |
// The view container.
|
|
222 |
CPixelMetricsMapperViewContainer* iView;
|
|
223 |
|
|
224 |
};
|
|
225 |
|
|
226 |
#endif // PMMAPPERVIEW_H
|
|
227 |
|
|
228 |
// End of File
|