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