author | qifeima <> |
Mon, 21 Jun 2010 13:52:33 +0800 | |
changeset 10 | e7871f3699e6 |
parent 8 | 18b321db4884 |
permissions | -rw-r--r-- |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
1 |
/* |
8 | 2 |
* Copyright (c) 2010 Ixonos Plc. |
3 |
* All rights reserved. |
|
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of the "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 |
* Ixonos Plc |
|
14 |
* |
|
15 |
* Description: |
|
16 |
* Draw plugin control class header. |
|
17 |
* |
|
18 |
*/ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
19 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
20 |
#ifndef IMAGEEDITORDRAWCONTROL_H |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
21 |
#define IMAGEEDITORDRAWCONTROL_H |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
22 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
23 |
// INCLUDES |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
24 |
#include "PreviewControlBase.h" |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
25 |
#include "MTimerCallBack.h" |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
26 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
27 |
#include <coecntrl.h> |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
28 |
#include <ConeResLoader.h> |
8 | 29 |
#include "AnimationAO.h" |
30 |
#include "CImageLabel.h" |
|
31 |
#include "CustomerComponet.h" |
|
32 |
#include "RollAO.h" |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
33 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
34 |
// FORWARD DECLARATIONS |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
35 |
class CAknView; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
36 |
class CFbsBitmap; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
37 |
class CPluginInfo; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
38 |
class CSystemParameters; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
39 |
class CJPTimer; |
8 | 40 |
class CAknInfoPopupNoteController; |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
41 |
class CDrawPath; |
8 | 42 |
class CImageLabel; |
43 |
class CAnimationAO; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
44 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
45 |
/* CLASS: CImageEditorDrawControl |
8 | 46 |
* |
47 |
* CImageEditorDrawControl is a control for text insertion plug-in. |
|
48 |
* |
|
49 |
*/ |
|
50 |
class CImageEditorDrawControl : public CPreviewControlBase, |
|
51 |
public MTimerCallBack, |
|
52 |
public MAnimationObserver, |
|
53 |
public MHandlePointerObserver, |
|
54 |
public MRollObserver |
|
55 |
{ |
|
56 |
static const int DRAG_LENGTH = 5; |
|
57 |
enum TMainMenuLayout |
|
58 |
{ |
|
59 |
EMainMenuHorizontal, EMainMenuVertical |
|
60 |
}; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
61 |
public: |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
62 |
|
8 | 63 |
/** @name Methods:*/ |
64 |
//@{ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
65 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
66 |
/** NewL factory method |
8 | 67 |
* |
68 |
* @param aRect - control rectangle |
|
69 |
* @param aParent - pointer to window owning control |
|
70 |
* @return pointer to created CImageEditorDrawControl object |
|
71 |
*/ |
|
72 |
static CImageEditorDrawControl* NewL(const TRect& aRect, |
|
73 |
CCoeControl* aParent, RPointerArray<CDrawPath>& aPaths,TRgb& aRgb, TSize& aSize,TBool &aDisplayTool); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
74 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
75 |
/** Destructor */ |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
76 |
~CImageEditorDrawControl(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
77 |
|
8 | 78 |
protected: |
79 |
// From CImageEditorControlBase |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
80 |
/** Second phase constructor |
8 | 81 |
* |
82 |
* @see CImageEditorControlBase |
|
83 |
*/ |
|
84 |
void ConstructL(const TRect& aRect, CCoeControl* aParent); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
85 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
86 |
/* Setter for view reference |
8 | 87 |
* |
88 |
* @see CImageEditorControlBase |
|
89 |
*/ |
|
90 |
void SetView(CAknView* aView); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
91 |
|
8 | 92 |
/* SetSelectedUiItemL |
93 |
* |
|
94 |
* @see CImageEditorControlBase |
|
95 |
*/ |
|
96 |
void SetSelectedUiItemL(CPluginInfo* aItem); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
97 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
98 |
/** PrepareL |
8 | 99 |
* |
100 |
* @see CImageEditorControlBase |
|
101 |
*/ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
102 |
void PrepareL(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
103 |
|
8 | 104 |
/* OfferKeyEventL |
105 |
* |
|
106 |
* @see CImageEditorControlBase |
|
107 |
*/ |
|
108 |
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType); |
|
109 |
||
110 |
/* HandlePointerEventL |
|
111 |
* |
|
112 |
* @see CImageEditorControlBase |
|
113 |
*/ |
|
114 |
void HandlePointerEventL(const TPointerEvent &aPointerEvent); |
|
115 |
||
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
116 |
/* HandlePluginCommandL |
8 | 117 |
* |
118 |
* @see CImageEditorControlBase |
|
119 |
*/ |
|
120 |
void HandlePluginCommandL(const TInt aCommand); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
121 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
122 |
/* GetSoftkeyIndexL |
8 | 123 |
* |
124 |
* @see CImageEditorControlBase |
|
125 |
*/ |
|
126 |
TInt GetSoftkeyIndexL(); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
127 |
|
8 | 128 |
/* GetContextMenuResourceId |
129 |
* |
|
130 |
* @see CImageEditorControlBase |
|
131 |
*/ |
|
132 |
TInt GetContextMenuResourceId(); |
|
133 |
||
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
134 |
/* GetDimmedMenuItems |
8 | 135 |
* |
136 |
* @see CImageEditorControlBase |
|
137 |
*/ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
138 |
TBitField GetDimmedMenuItems(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
139 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
140 |
/* GetNaviPaneTextL |
8 | 141 |
* |
142 |
* @see CImageEditorControlBase |
|
143 |
*/ |
|
144 |
TPtrC GetNaviPaneTextL(TBool& aLeftNaviPaneScrollButtonVisibile, |
|
145 |
TBool& aRightNaviPaneScrollButtonVisible); |
|
146 |
||
147 |
public: |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
148 |
/* GetParam |
8 | 149 |
* |
150 |
* Gets pointer to the parameter struct. |
|
151 |
* @return - pointer to MIA parameter struct |
|
152 |
*/ |
|
153 |
TDesC& GetParam(); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
154 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
155 |
/* SetSysteParameters |
8 | 156 |
* |
157 |
* Sets reference to system parameters to plug-in. |
|
158 |
* @param aSysPars - System parameters instance |
|
159 |
*/ |
|
160 |
void SetSystemParameters(const CSystemParameters* aSysPars); |
|
161 |
||
162 |
/* IsReadyToRender |
|
163 |
* |
|
164 |
* @return - ETrue when control is ready render |
|
165 |
*/ |
|
166 |
TBool IsReadyToRender() const; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
167 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
168 |
protected: |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
169 |
|
8 | 170 |
/* GetHelpContext |
171 |
* |
|
172 |
* @see CCoeControl |
|
173 |
*/ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
174 |
virtual void GetHelpContext(TCoeHelpContext& aContext) const; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
175 |
|
8 | 176 |
/* TimerCallBack |
177 |
* |
|
178 |
* @see MTimerCallBack |
|
179 |
*/ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
180 |
void TimerCallBack(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
181 |
|
8 | 182 |
/*MakeVisibleLable |
183 |
* |
|
184 |
* make the controller visible |
|
185 |
* @param aFlag - ETrue,make the tool bar visible,otherwise. |
|
186 |
*/ |
|
187 |
void MakeVisibleLable(TBool aFlag); |
|
188 |
||
189 |
/**StartTheAnimation |
|
190 |
* |
|
191 |
* start the auto-moving active object for tool bar. |
|
192 |
*/ |
|
193 |
void StartTheAnimation(); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
194 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
195 |
protected: |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
196 |
|
8 | 197 |
/** @name Methods:*/ |
198 |
//@{ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
199 |
/* SizeChanged |
8 | 200 |
* |
201 |
* @see CImageEditorControlBase |
|
202 |
*/ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
203 |
void SizeChanged(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
204 |
|
8 | 205 |
//@} |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
206 |
|
8 | 207 |
/** @name Members:*/ |
208 |
//@{ |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
209 |
|
8 | 210 |
//@} |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
211 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
212 |
private: |
8 | 213 |
/** Default constructor */ |
214 |
CImageEditorDrawControl(RPointerArray<CDrawPath>& aPaths,TRgb& aRgb, TSize& aSize,TBool &aDisplayTool); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
215 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
216 |
/** Draw |
8 | 217 |
* |
218 |
* @see CImageEditorControlBase |
|
219 |
* |
|
220 |
*/ |
|
221 |
virtual void Draw(const TRect & aRect) const; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
222 |
|
8 | 223 |
protected: |
224 |
/**CountComponentControls |
|
225 |
* |
|
226 |
* @see CImageEditorControlBase |
|
227 |
*/ |
|
228 |
TInt CountComponentControls() const; |
|
229 |
||
230 |
/**ComponentControl |
|
231 |
* |
|
232 |
* |
|
233 |
* @see CImageEditorControlBase |
|
234 |
*/ |
|
235 |
CCoeControl* ComponentControl(TInt aIndex) const; |
|
236 |
||
237 |
private: |
|
238 |
// Implementation |
|
239 |
void NaviDown(); |
|
240 |
void NaviUp(); |
|
241 |
void NaviRight(); |
|
242 |
void NaviLeft(); |
|
243 |
void SelectSizeL(); |
|
244 |
void StoreTempParams(); |
|
245 |
void RestoreTempParams(); |
|
246 |
void RenderTextImageL(); |
|
247 |
void LoadIndicatorL(TInt aBitmapInd, TInt aMaskInd); |
|
248 |
TPoint ComputeIndicatorPosition() const; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
249 |
void StoreParameters(TBool aLastItem, TBool aDone); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
250 |
void StorePosAndScaleRelScreen(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
251 |
void RestorePosAndScaleRelScreen(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
252 |
void StorePosAndScaleRelImage(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
253 |
void RestorePosAndScaleRelImage(); |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
254 |
void ClipPosition(); |
8 | 255 |
void SetPositionOnImage(TPoint aPointedPosition); |
256 |
TPoint GetPositionOnView(); |
|
257 |
void ShowTooltip(); |
|
258 |
TSize ScaledLineSize(TSize aOriginalSize) const; |
|
259 |
||
260 |
public: |
|
261 |
/**Notify |
|
262 |
* |
|
263 |
* handle the event by Active object |
|
264 |
*/ |
|
265 |
virtual void Notify(); |
|
266 |
||
267 |
/**HandlePointerNotify |
|
268 |
* |
|
269 |
* handle the press icon event |
|
270 |
* @param aComponent - the icon control of tool bar |
|
271 |
*/ |
|
272 |
virtual void HandlePointerNotify(CCoeControl* aComponent); |
|
273 |
||
274 |
/**Roll |
|
275 |
* |
|
276 |
* the fuction for AO to move the tool bar |
|
277 |
*/ |
|
278 |
virtual void Roll(); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
279 |
|
8 | 280 |
private: |
281 |
/**InitializeMainMenu |
|
282 |
* |
|
283 |
* initialize the tool bar |
|
284 |
* @param aMainMenuLayout - horizon or veritical layout of the tool bar |
|
285 |
*/ |
|
286 |
void InitializeMainMenu(TMainMenuLayout aMainMenuLayout); |
|
287 |
||
288 |
/**CalculateEffectiveOffset |
|
289 |
* |
|
290 |
* calculate vaild offset for tool bar |
|
291 |
*/ |
|
292 |
void CalculateEffectiveOffset(); |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
293 |
|
8 | 294 |
/**HandleMainMenuButtonUp |
295 |
* |
|
296 |
* handle the up event on tool bar |
|
297 |
* @param aPoint - the position on screen |
|
298 |
*/ |
|
299 |
void HandleMainMenuButtonUp(TPoint aPoint); |
|
300 |
||
301 |
/**HandleMainMenuButtonDrag |
|
302 |
* |
|
303 |
* handle the drag event on tool bar |
|
304 |
* @param aPoint - the position on screen |
|
305 |
*/ |
|
306 |
void HandleMainMenuButtonDrag(TPoint aPoint); |
|
307 |
||
308 |
private: |
|
309 |
/**UndoDrawPath |
|
310 |
* |
|
311 |
* undo the drawed lines on screen |
|
312 |
*/ |
|
313 |
void UndoDrawPath(); |
|
314 |
||
315 |
/**RedoDrawPath |
|
316 |
* |
|
317 |
* redo the undo lines on screen |
|
318 |
*/ |
|
319 |
void RedoDrawPath(); |
|
320 |
||
321 |
private: |
|
322 |
||
10 | 323 |
/** @name Members:*/ |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
324 |
|
8 | 325 |
|
10 | 326 |
// Ref: to Editor view |
8 | 327 |
CAknView* iEditorView; |
328 |
||
10 | 329 |
//Source image size |
8 | 330 |
const CSystemParameters* iSysPars; |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
331 |
|
10 | 332 |
// Ref: to Plug-in info |
8 | 333 |
CPluginInfo* iItem; |
334 |
||
10 | 335 |
//Own: Navigation pane text |
8 | 336 |
HBufC* iNaviPaneText; |
337 |
||
10 | 338 |
// X position |
8 | 339 |
TInt iX; |
10 | 340 |
// Y position |
8 | 341 |
TInt iY; |
342 |
||
10 | 343 |
// Timer for fast key events |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
344 |
CJPTimer* iTimer; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
345 |
TUint32 iKeyCode; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
346 |
|
10 | 347 |
// Pressed key event code |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
348 |
TInt iPressedKeyScanCode; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
349 |
|
10 | 350 |
// Number of ticks since timer start |
8 | 351 |
TInt iTickCount; |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
352 |
|
10 | 353 |
// Multiplier to control the navigation movement speed |
8 | 354 |
TInt iNaviStepMultiplier; |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
355 |
|
10 | 356 |
// Showing Ok options menu, where some items are dimmed |
8 | 357 |
TBool iDisplayingOkOptionsMenu; |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
358 |
|
10 | 359 |
// Own: State indicator glyph |
8 | 360 |
CFbsBitmap* iIndicator; |
361 |
CFbsBitmap* iIndicatorMask; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
362 |
|
10 | 363 |
// Ready to render |
8 | 364 |
TBool iReadyToRender; |
365 |
||
10 | 366 |
// Parameter |
8 | 367 |
TBuf<256> iParam; |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
368 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
369 |
// Popup controller |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
370 |
CAknInfoPopupNoteController* iPopupController; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
371 |
// Tooltip texts |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
372 |
HBufC* iTooltipResize; |
8 | 373 |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
374 |
// Previous pen position. Make touch rotating and resizing possible |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
375 |
TPoint iPointerPosition; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
376 |
// Multiplier to control the rotating speed by touch |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
377 |
TInt iTouchAngleMultiplier; |
8 | 378 |
|
10 | 379 |
// Resource reader |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
380 |
RConeResourceLoader iResLoader; |
10 | 381 |
// Line size |
8 | 382 |
TSize& iSize; |
10 | 383 |
// Color |
8 | 384 |
TRgb& iRgb; |
10 | 385 |
// Own: drawn paths |
8 | 386 |
RPointerArray<CDrawPath> &iPaths; |
387 |
//bitmap device |
|
388 |
CFbsBitmapDevice* iBitmapDev; |
|
389 |
CGraphicsContext* iGc; |
|
10 | 390 |
|
8 | 391 |
|
392 |
private: |
|
10 | 393 |
//Get and set tool bar status display or hidden |
8 | 394 |
void SetToolBarStatus(); |
10 | 395 |
//The self define component array for tool bar. |
8 | 396 |
RPointerArray<CImageLabel> iLabels; |
10 | 397 |
//The tool bar area. |
8 | 398 |
TRect iLoopMenuRect; |
10 | 399 |
//Mark the button down event |
8 | 400 |
TPoint iButtonDownPoint; |
10 | 401 |
//Mark the tool bar start drag point. |
8 | 402 |
TPoint iDragStartPoint; |
10 | 403 |
//Prepare drag point. |
8 | 404 |
TPoint iDragPrePoint; |
10 | 405 |
//Mark Button up point for stop drag event. |
8 | 406 |
TPoint iDragUpPoint; |
10 | 407 |
//The total of tool bar compoent |
8 | 408 |
TInt iTotalComponent; |
10 | 409 |
//The param for drag tool bar event. |
8 | 410 |
TInt iDragOffset; |
10 | 411 |
//The param for drag tool bar event. |
8 | 412 |
TInt iStartSpeed; |
10 | 413 |
//The Active Object for drag tool bar. |
8 | 414 |
CAnimationAO* iAnimationAO; |
10 | 415 |
//The Active object for tool bar Automatic moving. |
8 | 416 |
CRollAO* iRollAo; |
10 | 417 |
//whether the button down point in the tool bar area. |
418 |
TBool iPointStartInLoopRect; |
|
419 |
//Mark for iAnimationAO; |
|
420 |
TBool iDragIsStart; |
|
421 |
//Current screen layout. |
|
422 |
TMainMenuLayout iMainMenuLayout; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
423 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
424 |
|
8 | 425 |
private: |
426 |
||
427 |
RPointerArray<CDrawPath> iUndoPaths; |
|
428 |
TBool iUndo; |
|
429 |
TBool iRedo; |
|
430 |
TBool iCanRedo; |
|
10 | 431 |
//The tool bar Automatic moving direction. |
8 | 432 |
TBool iRollDirection; |
433 |
private: |
|
10 | 434 |
//The compoent use for display and hidden tool bar. |
8 | 435 |
CCustomerComponet *iCustomComponet; |
10 | 436 |
//whether the customer compoent was clicked. |
8 | 437 |
TBool iCustomComponetClick; |
10 | 438 |
//Mark the customr compoent last pointer event. |
8 | 439 |
TBool iLastPointEventType; |
10 | 440 |
//Mark the tool bar Automatic moving. |
8 | 441 |
TBool iRollflag; |
10 | 442 |
//Mark the tool bar status display or hidden. |
8 | 443 |
TBool &iDisplayTool; |
10 | 444 |
//Mark in the sizechanged function. |
8 | 445 |
TBool iSizeChangeFlag; |
10 | 446 |
//Mark last tool bar event. |
447 |
TBool iFlagDragToolBar; |
|
8 | 448 |
}; |
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
449 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
450 |
#endif |