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