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

📄 messageviewer.h

📁 Simple Jabber Client for Symbian Platform
💻 H
字号:

#ifndef __CMESSAGEVIEWER_H__
#define __CMESSAGEVIEWER_H__
#include <eiksbobs.h>
#include <coecntrl.h>
#include <txtfmlyr.h>
#include <MdaImageConverter.h>

class CEikRichTextEditor;
class TEikScrollBarModel;
class CEikScrollBarFrame;

class CMessageItem;
class CMessageModel;

class CMessageViewer : public CCoeControl, public MCoeControlObserver,MEikScrollBarObserver
	{
	// Demonstrates the use of rich text
public:
	CMessageViewer(const TRect& aRect); 
	~CMessageViewer(); // destructor

public:
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
	void Draw(const TRect& aRect) const;

	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
	void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
	void HandleScrollEventL(CEikScrollBar* aScrollBar, TEikScrollEvent aEventType);

	void CreateScrollBars();
	void ActivateL();
	void Quit();
	void SetModel( CMessageModel * aModel );
	void SetMessageItem( CMessageItem* aItem );
	void SetFont( CFont* aFont );

private:
	void GetLineNum();
	void AddIndex();
	void SubIndex();

private:
	TEikScrollBarModel	iSBModel;
	CEikScrollBarFrame*	iSBFrame ;
	CMessageModel*		iModel;
	CMessageItem*		iItem;
	TInt				iIndex;
	TInt				iStartLine;
	TInt				iStartRow;
	TInt				iLines;
	TInt				iLinesInClient;
	TRect				iRect;
	CFont*				iFont;
};

#endif

⌨️ 快捷键说明

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