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 <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);
	
public:

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();
};

class CSimpleExDialog : public CEikDialog

{
  public:
	CSimpleExDialog(TDes& aText,TRgb& aColor); 

  private:
	           // Inherited from CEikDialog
	void  PreLayoutDynInitL();
	TBool OkToExitL(TInt aKeycode); 

    TDes& iText;
    TRgb& iColor;
};


#endif

⌨️ 快捷键说明

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