os/mm/mmlibs/mmfw/tsrc/mmvalidationsuite/mmvalidationsuiteapp/inc/MVSVideoSettingDialog.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmvalidationsuite/mmvalidationsuiteapp/inc/MVSVideoSettingDialog.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,78 @@
     1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// Part of the MVS Application for TechView
    1.18 +//
    1.19 +
    1.20 +#ifndef CMVSVIDEOSETTINGDIALOG_H
    1.21 +#define CMVSVIDEOSETTINGDIALOG_H
    1.22 +
    1.23 +#include <techview/eikdialg.h>
    1.24 +#include <techview/eikchkbx.h>
    1.25 +#include "MVSAppUI.h"
    1.26 +
    1.27 +class CMVSAppUi;
    1.28 +
    1.29 +class CMVSVideoSettingDialog : public CEikDialog
    1.30 +    {
    1.31 +public:
    1.32 +    //constructs and launches dialog
    1.33 +    static void SetupDialogLD(TVideoRotation aRotation,
    1.34 +                              CMVSAppUi* aAppUi,
    1.35 +                              const TRect& aVideoSize,
    1.36 +                              const TRect& aWindowRect,
    1.37 +                              TBool aSupportVideoPlayerUtility2,
    1.38 +                              TBool aPip,
    1.39 +							  TBool aCrp); 
    1.40 +
    1.41 +    void PreLayoutDynInitL();    //seeds dialog controls
    1.42 +    void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType);
    1.43 +
    1.44 +private:
    1.45 +    //standard C++ constructor
    1.46 +    CMVSVideoSettingDialog(TVideoRotation aRotation,
    1.47 +                           CMVSAppUi* aAppUi,
    1.48 +                           const TRect& aVideoSize,
    1.49 +                           const TRect& aWindowRect,
    1.50 +                           TBool aSupportVideoPlayerUtility2,
    1.51 +                           TBool aPip,
    1.52 +						   TBool aCrp); 
    1.53 +
    1.54 +    TBool OkToExitL(TInt aButtonId); //handles button presses for this dialog
    1.55 +    void HandleUpdateL();
    1.56 +
    1.57 +    void RetrieveVideoExtentFieldValues(TRect& aVideoExtentValues) const;
    1.58 +    void RetrieveWindowClipRectFieldValues(TRect& aNewVideoExtent) const;
    1.59 +
    1.60 +
    1.61 +private:
    1.62 +    CEikCheckBox* iAntiAliasFilteringCtl;
    1.63 +    TVideoRotation iRotation;
    1.64 +    CMVSAppUi* iAppUi;
    1.65 +    TReal32 iScaleWidth;
    1.66 +    TReal32 iScaleHeight;
    1.67 +    TBool iAntiAliasFiltering;
    1.68 +    TInt iAx;
    1.69 +    TInt iAy;
    1.70 +    TInt iBx;
    1.71 +    TInt iBy;
    1.72 +    TRect iCropRegion;
    1.73 +    TRect iVideoExtent;
    1.74 +    TRect iWindowClip;
    1.75 +    TBool iSupportVideoPlayerUtility2;
    1.76 +    TBool iPip;
    1.77 +	TBool iCrp;
    1.78 +    };
    1.79 +
    1.80 +#endif CMVSVIDEOSETTINGDIALOG_H
    1.81 +