encoderselectiondialog.h

来自「这个源代码是symbian下实现图片旋转及缩放的例子代码。对图片处理时有帮助。」· C头文件 代码 · 共 99 行

H
99
字号
/*
* ============================================================================
*  Name     : CEncoderSelectionDialog from EncoderSelectionDialog.h
*  Part of  : ImageConverter
*  Created  : May 14, 2006 by Forum Nokia
*  Description:
*     Used to select encoding format.
*  Version  : 2.0
*  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 and do cleanup after 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 + =
减小字号Ctrl + -
显示快捷键?