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

📄 bluetoothpmpexamplertecontainer.h

📁 symbian系统下
💻 H
字号:
/*
* ============================================================================
*  Name     : CBluetoothPMPExampleRTEContainer
*  Part of  : BluetoothPMPExample
*  Created  : 08.02.2005 by Forum Nokia
*  Description:
*     Declares container control for application. Container for RichTextEditor
*     that is used to log events.
*  Version  :
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef BLUETOOTH_EXAMPLE_RTE_CONTAINER_H
#define BLUETOOTH_EXAMPLE_RTE_CONTAINER_H

// INCLUDES
#include <coecntrl.h>

// FORWARD DECLARATIONS
class CRichTextEditorRTE;

// CLASS DECLARATION

/**
*  CBluetoothPMPExampleRTEContainer Container control class.
*
*/
class CBluetoothPMPExampleRTEContainer : public CCoeControl, public MCoeControlObserver
    {
    public: // Constructors and destructor

		/**
		* Create new CBluetoothPMPExampleRTEContainer object
		*
		* @param aRect Frame rectangle for container.
		* @return a pointer to the created instance of CBluetoothPMPExampleRTEContainer.
		*/
		static CBluetoothPMPExampleRTEContainer* NewL(const TRect& aRect);

		/**
		* NewLC
		*/
		static CBluetoothPMPExampleRTEContainer* NewLC(const TRect& aRect);

        /**
        * Symbian OS default constructor.
        * @param aRect Frame rectangle for container.
        */
        void ConstructL(const TRect& aRect);

        /**
        * Destructor.
        */
        ~CBluetoothPMPExampleRTEContainer();

    public: // New functions

		/**
		* Print text on the screen.
		* @param aText text to be displayed.
		*/
		void DrawTextL( const TDesC& aText );

		/**
		* Print text on the screen. No Carriage return at the end.
		* @param aText text to be displayed.
		*/
		void DrawTextWithoutCarriageL( const TDesC& aText );

		/**
		* Print underlined text on the screen.
		* @param aText text to be displayed.
		*/
		void DrawUnderlinedTextL( const TDesC& aText );

		/**
		* Draw one line.
		*/
		void DrawLineL();

		/**
		* Add one line break.
		*/
		void AddCarriageReturnL();

        /**
        * Adds a line of text to the text area
        */
        void ShowMessageL(const TDesC& aMsg);

        /**
        * From CoeControl,SizeChanged.
        */
        void SizeChanged();
                
        /**
        * Removes all text
        */ 
        void ClearScreenL();
        
    private: // Functions from base classes



        /**
        * From CoeControl,CountComponentControls.
        */
        TInt CountComponentControls() const;

        /**
        * From CCoeControl,ComponentControl.
        */
        CCoeControl* ComponentControl(TInt aIndex) const;

        /**
        * From CCoeControl,Draw.
        */
        void Draw(const TRect& aRect) const;

		/**
		* From CoeControl, OfferKeyEventL
		*/
		TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

		/**
		* From MCoeControlObserver
		* Acts upon changes in the hosted control's state.
		*
		* @param aControl The control changing its state
		* @param aEventType	The type of control event
		*/
        void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);

        //void HandleScreenDeviceChangedL();
        //void HandleResourceChange();

    private: //data

		// Editor
		CRichTextEditorRTE* iRte;
    };

#endif // BLUETOOTH_EXAMPLE_RTE_CONTAINER

⌨️ 快捷键说明

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