sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Part of the MVS Application for TechView sl@0: // sl@0: sl@0: #ifndef CMVSVIDEOSETTINGDIALOG_H sl@0: #define CMVSVIDEOSETTINGDIALOG_H sl@0: sl@0: #include sl@0: #include sl@0: #include "MVSAppUI.h" sl@0: sl@0: class CMVSAppUi; sl@0: sl@0: class CMVSVideoSettingDialog : public CEikDialog sl@0: { sl@0: public: sl@0: //constructs and launches dialog sl@0: static void SetupDialogLD(TVideoRotation aRotation, sl@0: CMVSAppUi* aAppUi, sl@0: const TRect& aVideoSize, sl@0: const TRect& aWindowRect, sl@0: TBool aSupportVideoPlayerUtility2, sl@0: TBool aPip, sl@0: TBool aCrp); sl@0: sl@0: void PreLayoutDynInitL(); //seeds dialog controls sl@0: void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType); sl@0: sl@0: private: sl@0: //standard C++ constructor sl@0: CMVSVideoSettingDialog(TVideoRotation aRotation, sl@0: CMVSAppUi* aAppUi, sl@0: const TRect& aVideoSize, sl@0: const TRect& aWindowRect, sl@0: TBool aSupportVideoPlayerUtility2, sl@0: TBool aPip, sl@0: TBool aCrp); sl@0: sl@0: TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog sl@0: void HandleUpdateL(); sl@0: sl@0: void RetrieveVideoExtentFieldValues(TRect& aVideoExtentValues) const; sl@0: void RetrieveWindowClipRectFieldValues(TRect& aNewVideoExtent) const; sl@0: sl@0: sl@0: private: sl@0: CEikCheckBox* iAntiAliasFilteringCtl; sl@0: TVideoRotation iRotation; sl@0: CMVSAppUi* iAppUi; sl@0: TReal32 iScaleWidth; sl@0: TReal32 iScaleHeight; sl@0: TBool iAntiAliasFiltering; sl@0: TInt iAx; sl@0: TInt iAy; sl@0: TInt iBx; sl@0: TInt iBy; sl@0: TRect iCropRegion; sl@0: TRect iVideoExtent; sl@0: TRect iWindowClip; sl@0: TBool iSupportVideoPlayerUtility2; sl@0: TBool iPip; sl@0: TBool iCrp; sl@0: }; sl@0: sl@0: #endif CMVSVIDEOSETTINGDIALOG_H sl@0: