📄 encoderselectiondialog.h
字号:
/*
* ============================================================================
* Name : CEncoderSelectionDialog from EncoderSelectionDialog.h
* Part of : ImageConverter
* Created : 25.11.2003 Forum Nokia
* Description:
* Used to select encoding format.
* Version :
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef __ENCODERSELECTIONDIALOG_H__
#define __ENCODERSELECTIONDIALOG_H__
// INCLUDES
#include <aknview.h>
#include <eikdialg.h>
// FORWARD DECLARATIONS
class CImageConverterEngine;
class CEikTextListBox;
// CLASS DECLARATION
/**
* Dialog class
* Test various controls.
*/
class CEncoderSelectionDialog:public CEikDialog
{
public: // Constructors and destructor
/**
* Constructor
* @param aImageTypes Image types to choose from.
* @param sSelectedIdx The selected index is stored here.
*/
CEncoderSelectionDialog(
RImageTypeDescriptionArray& aImageTypes,
TInt& aSelectedIdx );
/**
* Destructor
*/
~CEncoderSelectionDialog();
public: // from base classes
/**
* From CAknDialog set parameters before showing dialog.
*/
void PreLayoutDynInitL();
void PostLayoutDynInitL();
/**
* From CCoeControl. Pass key events to contained listbox.
*/
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
TEventCode aType);
/**
* From CAknDialog update member variables of CAknExEditorDialog.
* @param aButtonId The ID of the button that was activated.
* @return Should return ETrue if the dialog should exit,
* and EFalse if it should not
*/
TBool OkToExitL(TInt aButtonId);
private: // from base classes
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
private: // data
/*! @var iImageTypes the image types to choose from. */
RImageTypeDescriptionArray& iImageTypes;
/*! @var iSelectedIdx the selected index from image types */
TInt& iSelectedIdx;
/*! @var iListBox the control used to display the results */
CEikTextListBox* iListBox;
/*! @var iMessageList the list of messages to display */
CDesCArrayFlat* iMessageList;
};
#endif //__ENCODERSELECTIONDIALOG_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -