|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * |
|
14 * Description: Popup control for full screen container |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // Version : %version: 7 % |
|
20 |
|
21 |
|
22 #ifndef MPXVIDEOPLAYBACKASPECTRATIOICON_H |
|
23 #define MPXVIDEOPLAYBACKASPECTRATIOICON_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <coecntrl.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CMPXVideoPlaybackControlsController; |
|
30 |
|
31 #ifdef RD_TACTILE_FEEDBACK |
|
32 class MTouchFeedback; |
|
33 #endif //RD_TACTILE_FEEDBACK |
|
34 |
|
35 class CMPXVideoPlaybackAspectRatioIcon : public CCoeControl |
|
36 { |
|
37 public: |
|
38 /** |
|
39 * Two-phased constructor. |
|
40 */ |
|
41 static CMPXVideoPlaybackAspectRatioIcon* NewL( |
|
42 CMPXVideoPlaybackControlsController* aController, TRect aRect ); |
|
43 |
|
44 /** |
|
45 * Destructor. |
|
46 */ |
|
47 virtual ~CMPXVideoPlaybackAspectRatioIcon(); |
|
48 |
|
49 private: |
|
50 |
|
51 /** |
|
52 * C++ default constructor. |
|
53 */ |
|
54 CMPXVideoPlaybackAspectRatioIcon( CMPXVideoPlaybackControlsController* aController ); |
|
55 |
|
56 /** |
|
57 * By default Symbian 2nd phase constructor is private. |
|
58 */ |
|
59 void ConstructL( TRect aRect ); |
|
60 |
|
61 private: |
|
62 |
|
63 /** |
|
64 * From CoeControl,CountComponentControls. |
|
65 * @return Number of contained component controls. |
|
66 */ |
|
67 TInt CountComponentControls() const; |
|
68 |
|
69 /** |
|
70 * From CCoeControl,Draw. |
|
71 * @param aRect drawable area. |
|
72 */ |
|
73 void Draw( const TRect& aRect ) const; |
|
74 |
|
75 /** |
|
76 * From CoeControl,OfferKeyEventL |
|
77 */ |
|
78 void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
|
79 |
|
80 private: |
|
81 /** |
|
82 * Creates new skins for the control |
|
83 * @return void |
|
84 */ |
|
85 void SkinChangeL(); |
|
86 |
|
87 public: |
|
88 |
|
89 /** |
|
90 * change the icon per aspect ratio |
|
91 * @return void |
|
92 */ |
|
93 void AspectRatioChanged( TInt aAspectRatio ); |
|
94 |
|
95 private: // Data |
|
96 CGulIcon* iNaturalIcon; |
|
97 CGulIcon* iStretchIcon; |
|
98 CGulIcon* iZoomIcon; |
|
99 |
|
100 TRect iAspectRatioRect; |
|
101 |
|
102 #ifdef RD_TACTILE_FEEDBACK |
|
103 MTouchFeedback* iFeedback; |
|
104 #endif //RD_TACTILE_FEEDBACK |
|
105 |
|
106 CMPXVideoPlaybackControlsController* iController; |
|
107 }; |
|
108 |
|
109 #endif //MPXVIDEOPLAYBACKASPECTRATIOICON_H |
|
110 |
|
111 // End of File |