author | qifeima <> |
Thu, 03 Jun 2010 18:57:10 +0800 | |
changeset 8 | 18b321db4884 |
parent 1 | edfc90759b9f |
child 10 | e7871f3699e6 |
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 |
||
323 |
//@} |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
324 |
|
8 | 325 |
/** @name Members:*/ |
326 |
//@{ |
|
327 |
||
328 |
/// Ref: to Editor view |
|
329 |
CAknView* iEditorView; |
|
330 |
||
331 |
/// Source image size |
|
332 |
const CSystemParameters* iSysPars; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
333 |
|
8 | 334 |
/// Ref: to Plug-in info |
335 |
CPluginInfo* iItem; |
|
336 |
||
337 |
/// Own: Navigation pane text |
|
338 |
HBufC* iNaviPaneText; |
|
339 |
||
340 |
/// X position |
|
341 |
TInt iX; |
|
342 |
/// Y position |
|
343 |
TInt iY; |
|
344 |
||
345 |
/// 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
|
346 |
CJPTimer* iTimer; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
347 |
TUint32 iKeyCode; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
348 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
349 |
/// Pressed key event code |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
350 |
TInt iPressedKeyScanCode; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
351 |
|
8 | 352 |
/// Number of ticks since timer start |
353 |
TInt iTickCount; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
354 |
|
8 | 355 |
/// Multiplier to control the navigation movement speed |
356 |
TInt iNaviStepMultiplier; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
357 |
|
8 | 358 |
/// Showing Ok options menu, where some items are dimmed |
359 |
TBool iDisplayingOkOptionsMenu; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
360 |
|
8 | 361 |
/// Own: State indicator glyph |
362 |
CFbsBitmap* iIndicator; |
|
363 |
CFbsBitmap* iIndicatorMask; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
364 |
|
8 | 365 |
/// Ready to render |
366 |
TBool iReadyToRender; |
|
367 |
||
368 |
/// Parameter |
|
369 |
TBuf<256> iParam; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
370 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
371 |
// Popup controller |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
372 |
CAknInfoPopupNoteController* iPopupController; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
373 |
// Tooltip texts |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
374 |
HBufC* iTooltipResize; |
8 | 375 |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
376 |
// 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
|
377 |
TPoint iPointerPosition; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
378 |
// 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
|
379 |
TInt iTouchAngleMultiplier; |
8 | 380 |
|
381 |
/// Resource reader |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
382 |
RConeResourceLoader iResLoader; |
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
383 |
/// Line size |
8 | 384 |
TSize& iSize; |
385 |
/// Color |
|
386 |
TRgb& iRgb; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
387 |
/// Own: drawn paths |
8 | 388 |
RPointerArray<CDrawPath> &iPaths; |
389 |
//bitmap device |
|
390 |
CFbsBitmapDevice* iBitmapDev; |
|
391 |
CGraphicsContext* iGc; |
|
392 |
//@} |
|
393 |
||
394 |
private: |
|
395 |
||
396 |
void SetToolBarStatus(); |
|
397 |
RPointerArray<CImageLabel> iLabels; |
|
398 |
||
399 |
TRect iLoopMenuRect; |
|
400 |
TPoint iButtonDownPoint; |
|
401 |
TPoint iDragStartPoint; |
|
402 |
TPoint iDragPrePoint; |
|
403 |
TPoint iDragUpPoint; |
|
404 |
||
405 |
TInt iTotalComponent; |
|
406 |
TInt iDragOffset; |
|
407 |
TInt iStartSpeed; |
|
408 |
||
409 |
CAnimationAO* iAnimationAO; |
|
410 |
CRollAO* iRollAo; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
411 |
|
8 | 412 |
TBool iPointStartInLoopRect; |
413 |
TBool iDragIsStart; |
|
414 |
TBool iEnableAnimationEffect; |
|
415 |
TMainMenuLayout iMainMenuLayout; |
|
416 |
///implement undo and redo functions. |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
417 |
|
8 | 418 |
private: |
419 |
||
420 |
RPointerArray<CDrawPath> iUndoPaths; |
|
421 |
TBool iUndo; |
|
422 |
TBool iRedo; |
|
423 |
TBool iCanRedo; |
|
424 |
//ETrue: roll in |
|
425 |
//EFalse:roll out |
|
426 |
TBool iRollDirection; |
|
427 |
private: |
|
428 |
||
429 |
CCustomerComponet *iCustomComponet; |
|
430 |
TBool iCustomComponetClick; |
|
431 |
TBool iLastPointEventType; |
|
432 |
TBool iRollflag; |
|
433 |
TBool &iDisplayTool; |
|
434 |
TBool iSizeChangeFlag; |
|
435 |
}; |
|
1
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
436 |
|
edfc90759b9f
Committing the Image Editor package under the Eclipse Public License
Mikael Laine <mikael.laine@ixonos.com>
parents:
diff
changeset
|
437 |
#endif |