|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Part of the MVS Application for TechView |
|
15 // |
|
16 |
|
17 #ifndef CMVSVIDEOSETTINGDIALOG_H |
|
18 #define CMVSVIDEOSETTINGDIALOG_H |
|
19 |
|
20 #include <techview/eikdialg.h> |
|
21 #include <techview/eikchkbx.h> |
|
22 #include "MVSAppUI.h" |
|
23 |
|
24 class CMVSAppUi; |
|
25 |
|
26 class CMVSVideoSettingDialog : public CEikDialog |
|
27 { |
|
28 public: |
|
29 //constructs and launches dialog |
|
30 static void SetupDialogLD(TVideoRotation aRotation, |
|
31 CMVSAppUi* aAppUi, |
|
32 const TRect& aVideoSize, |
|
33 const TRect& aWindowRect, |
|
34 TBool aSupportVideoPlayerUtility2, |
|
35 TBool aPip, |
|
36 TBool aCrp); |
|
37 |
|
38 void PreLayoutDynInitL(); //seeds dialog controls |
|
39 void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType); |
|
40 |
|
41 private: |
|
42 //standard C++ constructor |
|
43 CMVSVideoSettingDialog(TVideoRotation aRotation, |
|
44 CMVSAppUi* aAppUi, |
|
45 const TRect& aVideoSize, |
|
46 const TRect& aWindowRect, |
|
47 TBool aSupportVideoPlayerUtility2, |
|
48 TBool aPip, |
|
49 TBool aCrp); |
|
50 |
|
51 TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog |
|
52 void HandleUpdateL(); |
|
53 |
|
54 void RetrieveVideoExtentFieldValues(TRect& aVideoExtentValues) const; |
|
55 void RetrieveWindowClipRectFieldValues(TRect& aNewVideoExtent) const; |
|
56 |
|
57 |
|
58 private: |
|
59 CEikCheckBox* iAntiAliasFilteringCtl; |
|
60 TVideoRotation iRotation; |
|
61 CMVSAppUi* iAppUi; |
|
62 TReal32 iScaleWidth; |
|
63 TReal32 iScaleHeight; |
|
64 TBool iAntiAliasFiltering; |
|
65 TInt iAx; |
|
66 TInt iAy; |
|
67 TInt iBx; |
|
68 TInt iBy; |
|
69 TRect iCropRegion; |
|
70 TRect iVideoExtent; |
|
71 TRect iWindowClip; |
|
72 TBool iSupportVideoPlayerUtility2; |
|
73 TBool iPip; |
|
74 TBool iCrp; |
|
75 }; |
|
76 |
|
77 #endif CMVSVIDEOSETTINGDIALOG_H |
|
78 |