⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imageconverterappui.h

📁 这个源代码是symbian下实现图片旋转及缩放的例子代码。对图片处理时有帮助。
💻 H
字号:
/*
* ============================================================================
*  Name     : CImageConverterAppUi from ImageConverterAppUi.h
*  Part of  : ImageConverter
*  Created  : May 14, 2006 by Forum Nokia
*  Description:
*     Declares UI class for application.
*  Version  : 2.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef IMAGECONVERTERAPPUI_H
#define IMAGECONVERTERAPPUI_H

// INCLUDES
#include <eikapp.h>
#include <eikdoc.h>
#include <e32std.h>
#include <coeccntx.h>
#include <aknappui.h>

#include "ImageConverterEngine.h"

// FORWARD DECLARATIONS
class CImageConverterContainer;

// CLASS DECLARATION

/**
* Application UI class.
* Provides support for the following features:
* - EIKON control architecture
* 
*/
class CImageConverterAppUi : public CAknAppUi, MConverterController
    {
    public: // // Constructors and destructor

        /**
        * EPOC default constructor.
        */      
        void ConstructL();

        /**
        * Destructor.
        */      
        ~CImageConverterAppUi();
        
    public: // New functions
        void ShowMessage(const TDesC& aMsg) const;

    public: // Functions from base classes
        // from MConverterController
	    void NotifyCompletion( TInt aErr, const TDesC& aMsg  );

    private:
        // From MEikMenuObserver
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

    private:
        /**
        * From CEikAppUi, takes care of command handling.
        * @param aCommand command to be handled
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CEikAppUi, handles key events.
        * @param aKeyEvent Event to handled.
        * @param aType Type of the key event. 
        * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
        */
        virtual TKeyResponse HandleKeyEventL(
            const TKeyEvent& aKeyEvent,TEventCode aType);

    private: // internal methods
        /**
        * Handles Open menu command
        */
        void HandleOpenL();

        /**
        * Handles Save as menu command
        */
        void HandleSaveAsL();
		
        /**
        * Handles Info menu command
        */
        void HandleInfoL();
		
        /**
        * Handles Rotate menu command
        */
        void HandleRotate();
		
        /**
        * Handles Scale menu command
        */
        void HandleScale();
        
        /**
        * Shows an error message.
        */
        void ShowMessageL(const TDesC& aMsg) const;
        
    private: //Data
	    /*! @var iImageLoaded true if an image has been opened/decoded
        and is to be shown. 
        Used to enable/disable save as and info menu commands */
        TBool iImageLoaded;

        /*! @var iAppContainer A reference to the converter container
        */
        CImageConverterContainer* iAppContainer; 

        /*! @var iConverter the actuall calls to ICL are done from this engine 
        */
        CImageConverterEngine* iConverter;

    };

#endif

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -