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

📄 s60uicodeexcontrol.h

📁 symbian os c++ 自定义界面
💻 H
字号:
/*
* ==============================================================================
*  Name        : S60UICodeEx.h
*  Part of     : S60UICodeEx
*  Interface   :
*  Description :
*  Version     :
*
*  Copyright (c) 2005-2006 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

#ifndef S60UICODEEXCONTROL_H
#define S60UICODEEXCONTROL_H

// INCLUDES
#include <e32svr.h>
#include <coecntrl.h>
#include <aknViewAppUi.h>
#include <eikappui.h>
#include <aknappui.h>
#include <eikcmbut.h>
#include <eiklabel.h>
#include <eikedwin.h>
#include <MdaImageConverter.h>
#include <GDI.H>

// FORWARD DECLARATIONS
class CS60UICodeExRotateControl;
class CS60UICodeExTextControl;


// CLASS DECLARATION
/**
* CS60UICodeExControl container class.
* 
*/
class CS60UICodeExControl 
    : public CCoeControl, MCoeControlObserver, MMdaImageUtilObserver
    {
	public: // Constructors and destructor

        /**
        * Second phase constructor.
        */
        void ConstructL(const TRect& aRect, CAknViewAppUi* aAppUi);

        /**
        * Desctructor
        */
		~CS60UICodeExControl();
        
              
	private: // Methods from base classes
		
        void Draw( const TRect& aRect ) const;
       
        TInt CountComponentControls() const;
        
        void SizeChanged();
        
        CCoeControl *ComponentControl( TInt aIndex ) const;

        void HandleControlEventL( CCoeControl* aControl,TCoeEvent aEventType );
        
		void HandleResourceChange( TInt aType );
		
		TKeyResponse OfferKeyEventL(
		    const TKeyEvent &aKeyEvent, 
		    TEventCode aType );
		
		void MiuoCreateComplete( TInt aError );
		
		void MiuoOpenComplete( TInt aError );
		
		void MiuoConvertComplete( TInt aError );
		
    public: // New methods		
    
        /**
        * Sets text buffer for user input
        * @param Pointer to text buffer
        * @return Nothing
        */  
        void SetText( TDes* aText ); 
        		

	private: // Data		
	
	    // Control enumeration
    	enum TControlFocus
    		{
    		ETextBox = 1,
    		ERotateButton
    		};

        
        // Pointer to the CS60UICodeExRotateControl object
		CS60UICodeExRotateControl*		iRotateControl;		
		
		// TRect of rotate button
		TRect                           iRotateButtonBox;
		
		// TRect of text box
		TRect                           iTextBox;

        // Pointer to the user input buffer
	    TDes*                           iText;
	    
	    // Pointer to the CS60UICodeExTextControl object
	    CS60UICodeExTextControl*        iTextControl;
	    
	    // Control focus
	    TControlFocus                   iControlFocus;
	    
	    // Pointer to the background bitmap object
	    CFbsBitmap*                     iBitmap;
	    
	    // Pointer to the bitmap scaling object
	    CMdaBitmapScaler*               iScaler;
	    
};

#endif // S60UICODEEXCONTROL_H

// End of file.

⌨️ 快捷键说明

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