simpleex.h

来自「Developing.Software.for.Symbian.OS 书籍配套源」· C头文件 代码 · 共 106 行

H
106
字号

#ifndef __SIMP_H
#define __SIMP_H

/*==========================================
   Series 60 SimpleEx Header File
==========================================*/

#include <eikenv.h>

#include <eikon.hrh>
#include "simpleEx.hrh"

#include <akndoc.h>
#include <aknapp.h>
#include <aknappui.h>
#include <aknform.h>
#include <eikdialg.h>
#include <simpleEx.rsg>
_LIT(KSimpleExText,"Simple Example");


// The Application Class 

class CSimpleExApplication : public CAknApplication
    {

private: 
	CApaDocument* CreateDocumentL();
	TUid AppDllUid() const;
    };


// The UI Class

class CSimpleExAppView;

class CSimpleExAppUi : public CAknAppUi
    {

public:
    void ConstructL();
	~CSimpleExAppUi();

private:
            
	void HandleCommandL(TInt aCommand);
	
private:
	CSimpleExAppView* iAppView;
 
    };

// The Application View Class 

class CSimpleExAppView : public CCoeControl
    {

public:
	static CSimpleExAppView* NewL(const TRect& aRect);
    static CSimpleExAppView* CSimpleExAppView::NewLC(const TRect& aRect);
    void ConstructL(const TRect& aRect);
    void UpdateScreenText(const TDesC16& aText);
    TBuf<100> iDisplayText;
    TRgb iTextColor;

private:
	void Draw(const TRect&) const;
    };

// The Application Document Class
 
class CSimpleExDocument : public CAknDocument
	{

public:
	CSimpleExDocument(CEikApplication& aApp): CAknDocument(aApp) { }

private: 

	CEikAppUi* CreateAppUiL();
    };


// The Form Dialog Class

class CSimpleExForm : public CAknForm
    {

public:
	static CSimpleExForm* NewL(TDes& aText,TRgb& aColor);

private:
	CSimpleExForm(TDes& aText,TRgb& aColor);
        // Inherited from CAknForm
	void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
	TBool SaveFormDataL();
	void  PreLayoutDynInitL();

private:
    TDes& iText;
    TRgb& iColor;
    };

#endif

⌨️ 快捷键说明

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