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 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef VEIPOPUP_H |
|
21 #define VEIPOPUP_H |
|
22 |
|
23 // INCLUDES |
|
24 //#include <aknview.h> |
|
25 |
|
26 //#include <utility.h> |
|
27 |
|
28 const TInt KAmountOfMenuItems = 9; |
|
29 |
|
30 class CVeiEditVideoView; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CVeiPopup view class. |
|
36 */ |
|
37 class CVeiPopup: public CBase |
|
38 |
|
39 { |
|
40 public: |
|
41 //Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Static factory constructor. |
|
45 * |
|
46 * @param aView Instance of video view. |
|
47 * @return Created <code>CVeiPopup</code> instance. |
|
48 */ |
|
49 |
|
50 static CVeiPopup* NewL( CVeiEditVideoView& aView ); |
|
51 |
|
52 |
|
53 /** |
|
54 * Static factory constructor. Leaves the created object in the |
|
55 * cleanup stack. |
|
56 * |
|
57 * @param aView Instance of video view. |
|
58 * @return Created <code>CVeiPopup</code> instance. |
|
59 */ |
|
60 |
|
61 static CVeiPopup* NewLC( CVeiEditVideoView& aView ); |
|
62 |
|
63 /** |
|
64 * Destructor. |
|
65 */ |
|
66 virtual ~CVeiPopup(); |
|
67 |
|
68 |
|
69 public: |
|
70 // New functions |
|
71 |
|
72 /** |
|
73 * Opens insert audio popup list. |
|
74 */ |
|
75 void ShowInsertAudioPopupList(); |
|
76 |
|
77 /** |
|
78 * Opens video/image/text popup list. |
|
79 */ |
|
80 void ShowInsertStuffPopupList(); |
|
81 |
|
82 /** |
|
83 * Opens insert text popup list. |
|
84 */ |
|
85 void ShowInsertTextPopupList(); |
|
86 |
|
87 /** |
|
88 * Opens edit video popup list. |
|
89 */ |
|
90 void ShowEditVideoPopupList(); |
|
91 |
|
92 /** |
|
93 * Opens edit text popup list. |
|
94 */ |
|
95 void ShowEditTextPopupList(); |
|
96 |
|
97 /** |
|
98 * Opens edit image popup list. |
|
99 */ |
|
100 void ShowEditImagePopupList(); |
|
101 |
|
102 /** |
|
103 * Opens edit text style popup list where text style can be selescted. |
|
104 */ |
|
105 void ShowEditTextStylePopUpList(); |
|
106 |
|
107 /** |
|
108 * Opens edit audio popup list. |
|
109 */ |
|
110 void ShowEditAudioPopupList(); |
|
111 |
|
112 /** |
|
113 * Executes a popup list menu where end transition can be selected. |
|
114 */ |
|
115 void ShowEndTransitionPopupListL(); |
|
116 |
|
117 /** |
|
118 * Executes a popup list menu where middle transition can be selected. |
|
119 */ |
|
120 void ShowMiddleTransitionPopupListL(); |
|
121 |
|
122 /** |
|
123 * Executes a popup list menu where start transition can be selected. |
|
124 */ |
|
125 void ShowStartTransitionPopupListL(); |
|
126 |
|
127 /** |
|
128 * Opens effect selection popup list. |
|
129 */ |
|
130 void ShowEffectSelectionPopupListL(); |
|
131 |
|
132 /** |
|
133 * Shows the color selector dialog. |
|
134 */ |
|
135 TBool ShowColorSelectorL( TRgb& aColor )const; |
|
136 |
|
137 /** |
|
138 * Shows the background selection dialog. |
|
139 */ |
|
140 TInt ShowTitleScreenBackgroundSelectionPopupL( TBool& aImageSelected )const; |
|
141 |
|
142 /** |
|
143 * Opens insert text popup list. |
|
144 */ |
|
145 void ShowTitleScreenStyleSelectionPopupL(); |
|
146 |
|
147 |
|
148 protected: |
|
149 // New functions |
|
150 |
|
151 /** |
|
152 * Shows a popup list with given parameters. |
|
153 * |
|
154 * @param aSoftkeysResourceId Softkeys id. |
|
155 * @param aPopupTitleResourceId Title for popup. |
|
156 * @param aArrayResourceId Array for items. |
|
157 * @param aTablesize Index of removed item (from array). |
|
158 * @param aDynPopup is popup dynamic or not. |
|
159 * @return Returns the index of selected item. |
|
160 */ |
|
161 TInt ExecutePopupListL( TInt aSoftkeysResourceId, |
|
162 TInt aPopupTitleResourceId, |
|
163 TInt aArrayResourceId, |
|
164 TInt aTablesize, |
|
165 TBool aDynPopup ) const; |
|
166 private: |
|
167 /** |
|
168 * Symbian 2nd phase constructor. |
|
169 */ |
|
170 void ConstructL(); |
|
171 |
|
172 CVeiPopup( CVeiEditVideoView& aView ); |
|
173 |
|
174 |
|
175 private: |
|
176 // Data |
|
177 CVeiEditVideoView& iView; |
|
178 TInt RemoveArrayIndex[KAmountOfMenuItems]; |
|
179 |
|
180 }; |
|
181 |
|
182 #endif // VEIPOPUP_H |
|
183 |
|
184 // End of File |
|