|
1 /* |
|
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 UI. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef IMAGEEDITORDRAWPLUGIN_H |
|
22 #define IMAGEEDITORDRAWPLUGIN_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "iepb.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CEditorImage; |
|
29 class CCoeControl; |
|
30 class CSystemParameters; |
|
31 |
|
32 |
|
33 /* CLASS: CImageEditorDrawPlugin |
|
34 * |
|
35 * CImageEditorDrawPlugin represents draw plug-in for Image Editor |
|
36 * application. |
|
37 */ |
|
38 class CImageEditorDrawPlugin : public CImageEditorPluginBase |
|
39 { |
|
40 |
|
41 public: |
|
42 /** @name Methods:*/ |
|
43 //@{ |
|
44 |
|
45 /** Default constructor */ |
|
46 CImageEditorDrawPlugin (); |
|
47 |
|
48 /** Second phase constructor */ |
|
49 void ConstructL (); |
|
50 |
|
51 /** Destructor */ |
|
52 ~CImageEditorDrawPlugin (); |
|
53 |
|
54 /** SetProperty |
|
55 * |
|
56 * @see CPluginBase |
|
57 */ |
|
58 virtual TInt SetProperty ( |
|
59 TInt aPropertyId, |
|
60 TDesC& aPropertyValue |
|
61 ); |
|
62 |
|
63 /** GetProperty |
|
64 * |
|
65 * @see CPluginBase |
|
66 */ |
|
67 virtual TInt GetProperty ( |
|
68 TInt aPropertyId, |
|
69 TDes& aPropertyValue |
|
70 ); |
|
71 |
|
72 /** InitPluginL |
|
73 * |
|
74 * @see CImageEditorPluginBase |
|
75 */ |
|
76 virtual TInt InitPluginL ( |
|
77 const TRect& aRect, |
|
78 CCoeControl* aParent, |
|
79 CCoeControl*& aPluginControl |
|
80 ); |
|
81 |
|
82 /** ProcessImageL |
|
83 * |
|
84 * @see CImageEditorPluginBase |
|
85 */ |
|
86 virtual void ProcessImageL (CEditorImage* aImage); |
|
87 |
|
88 /** ReleasePlugin |
|
89 * |
|
90 * @see CImageEditorPluginBase |
|
91 */ |
|
92 virtual void ReleasePlugin (); |
|
93 |
|
94 //@} |
|
95 |
|
96 private: // Data |
|
97 /** @name Members:*/ |
|
98 //@{ |
|
99 /// Plug-in UI control |
|
100 CCoeControl* iControl; |
|
101 /// System parameters |
|
102 const CSystemParameters* iSysPars; |
|
103 /// Is landscape enabled, Must be EFalse until text is set |
|
104 TBool iLandscapeEnabled; |
|
105 //@} |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // IMAGEEDITORDRAWPLUGIN_H |
|
110 |
|
111 // End of File |