imaging/imagingfws/src/Test/TImageDisplay/TImageDisplayDlgs.h
changeset 0 5752a19fdefe
equal deleted inserted replaced
-1:000000000000 0:5752a19fdefe
       
     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 //
       
    15 
       
    16 #ifndef TIMAGEDISPLAYDLGS_H
       
    17 
       
    18 #define TIMAGEDISPLAYDLGS_H
       
    19 
       
    20 
       
    21 #include <techview/eikcfdlg.h>
       
    22 #include <timagedisplay.rsg>
       
    23 #include "TImageDisplay.hrh"
       
    24 
       
    25 class CPluginInfoArray;
       
    26 
       
    27 // CDisplayModeDialog
       
    28 class CDisplayModeDialog : public CEikDialog
       
    29 	{
       
    30 public:
       
    31 	CDisplayModeDialog(TDisplayMode& aDisplayMode);
       
    32 protected:
       
    33 	// From CEikDialog
       
    34 	void PreLayoutDynInitL();
       
    35 	TBool OkToExitL(TInt aButtonId);
       
    36 private:
       
    37 	TDisplayMode& iDisplayMode;
       
    38 	};
       
    39 
       
    40 class CScalingQualityDialog : public CEikDialog
       
    41 	{
       
    42 public:
       
    43 	CScalingQualityDialog(TInt& aQualityValueRef);
       
    44 protected:
       
    45 	// From CEikDialog
       
    46 	void PreLayoutDynInitL();
       
    47 	TBool OkToExitL(TInt aButtonId);
       
    48 private:
       
    49 	TInt& iQualityValueRef;
       
    50 	};
       
    51 
       
    52 class CDrmContentIdDialog : public CEikDialog
       
    53 	{
       
    54 public:
       
    55 	CDrmContentIdDialog(TDes& aContentId);
       
    56 protected:
       
    57 	// From CEikDialog
       
    58 	void PreLayoutDynInitL();
       
    59 	TBool OkToExitL(TInt aButtonId);
       
    60 private:
       
    61 	TDes& iContentId;
       
    62 	};
       
    63 
       
    64 class CClipRectParamsDialog : public CEikDialog
       
    65 	{
       
    66 public:
       
    67 	CClipRectParamsDialog(TBool& aEnabled, TRect& aClipRect);
       
    68 protected:
       
    69 	// From CEikDialog
       
    70 	void PreLayoutDynInitL();
       
    71 	TBool OkToExitL(TInt aButtonId);
       
    72 	void HandleControlStateChangeL(TInt aControlId);
       
    73 
       
    74 private:
       
    75 	TBool& iEnabled;
       
    76 	TRect& iClipRect;
       
    77 	};
       
    78 
       
    79 class CMaxReductionDialog: public CEikDialog
       
    80 	{
       
    81 public:
       
    82 	CMaxReductionDialog(TInt& aMaxReduction );
       
    83 protected:
       
    84 	// From CEikDialog
       
    85 	void PreLayoutDynInitL();
       
    86 	TBool OkToExitL(TInt aButtonId);
       
    87 private:
       
    88 	TInt& iMaxReduction;
       
    89 	};
       
    90 
       
    91 // CVideoBackgroundColorDialog
       
    92 
       
    93 class CVideoBackgroundColorDialog : public CEikDialog
       
    94 	{
       
    95 public:
       
    96 	CVideoBackgroundColorDialog(TInt& aColor16, TBool& aOverride);
       
    97 protected:
       
    98 	// From CEikDialog
       
    99 	void PreLayoutDynInitL();
       
   100 	TBool OkToExitL(TInt aButtonId);
       
   101 	void HandleControlStateChangeL(TInt aControlId);
       
   102 private:
       
   103 	TInt& iColor16;
       
   104 	TBool& iOverride;
       
   105 	};
       
   106 
       
   107 // CVideoCurrentFrameDialog
       
   108 
       
   109 class CVideoCurrentFrameDialog : public CEikDialog
       
   110 	{
       
   111 public:
       
   112 	CVideoCurrentFrameDialog(TInt& aCurrentFrame,TInt aNumberOfFrames);
       
   113 protected:
       
   114 	// From CEikDialog
       
   115 	void PreLayoutDynInitL();
       
   116 	TBool OkToExitL(TInt aButtonId);
       
   117 private:
       
   118 	TInt& iCurrentFrame;
       
   119 	TInt iNumberOfFrames;
       
   120 	};
       
   121 
       
   122 // CVideoSaveAsDialog
       
   123 
       
   124 class TFileSaveInfo
       
   125 	{
       
   126 public:
       
   127 	TUid iImageTypeUid;
       
   128 	TInt iBpp;
       
   129 	TBool iColor;
       
   130 	TInt iQualityFactor;
       
   131 	TInt iSampling;
       
   132 	TInt iCompression;
       
   133 	};
       
   134 
       
   135 class CVideoSaveAsDialog : public CEikFileSaveAsDialog
       
   136 	{
       
   137 public:
       
   138 	CVideoSaveAsDialog(TDes* aFileName,TFileSaveInfo& aSaveInfo);
       
   139 protected:
       
   140 	// from CEikDialog
       
   141 	void PreLayoutDynInitL();
       
   142 	TBool OkToExitL(TInt aButtonId);
       
   143 	// new functions
       
   144 	void SetTypeL();
       
   145 private:
       
   146 	TFileSaveInfo& iSaveInfo;
       
   147 	};
       
   148 
       
   149 // CVideoFormatDialog
       
   150 
       
   151 class CVideoFormatDialog : public CEikDialog
       
   152 	{
       
   153 public:
       
   154 	CVideoFormatDialog(TFileSaveInfo& aSaveInfo);
       
   155 protected: 
       
   156 	// from CEikDialog
       
   157 	void PreLayoutDynInitL();
       
   158 	void HandleControlStateChangeL(TInt aControlId);
       
   159 	TBool OkToExitL(TInt aButtonId);
       
   160 	// new functions
       
   161 	void ValidateControlState();
       
   162 private:
       
   163 	TFileSaveInfo& iSaveInfo;
       
   164 	CPluginInfoArray* iEncoderList; //Not owned
       
   165 	};
       
   166 
       
   167 #endif // ndef TIMAGEDISPLAYDLGS_H