popuplistcontainer.h

来自「最新官方例子,图形,描述副,基本控件,通讯协议,等等,」· C头文件 代码 · 共 67 行

H
67
字号
#ifndef POPUPLISTCONTAINER_H
#define POPUPLISTCONTAINER_H

// INCLUDES

// System includes
#include <badesca.h> // CDesCArray
#include <coecntrl.h> // CCoeControl
#include <eiklbo.h> // MEikListBoxObserver

// FORWARD DECLARATIONS
class CEikColumnListBox;

// CLASS DECLARATION

/**
*
* @class	CPopUpListContainer PopUpListContainer.h 
* @brief	This is the container class for a list example based on the
* standard Symbian OS architecture.  
*
* Copyright (c) EMCC Software Ltd 2003
* @version	1.0
* 
*/
class CPopUpListContainer : public CCoeControl, MEikListBoxObserver
	{
public: // Constructors and destructor

	static CPopUpListContainer* NewL(const TRect& aRect);
	static CPopUpListContainer* NewLC(const TRect& aRect);
	~CPopUpListContainer();

private: // members
	void PlayGame(TDesC& aSavedGameName, TDesC& aLevel);
	void SetupSavedGameListItemsL();
	void LoadSavedGamesL(CDesCArray& aSavedGamesArray);
	void LoadLevelsForSavedGameL(TDesC& aSavedGameName, CDesCArray& aSavedGameMenuListArray);
	void CreateListL();
	void SetupListIconsL();
	void SetupScrollBarsL(CEikListBox& aListBox);
	void OpenMenuListForSavedGameL(TDesC& aSavedGameName);

private: // constructor

	void ConstructL(const TRect& aRect);

private: // from MEikListBoxObserver
	void HandleListBoxEventL(CEikListBox* aListBox, TListBoxEvent aListBoxEvent);

private: // from CoeControl

	void SizeChanged();
	TInt CountComponentControls() const;
	CCoeControl* ComponentControl(TInt aIndex) const;
	void Draw(const TRect& aRect) const;
	TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

private: //data

	CEikColumnListBox* iSavedGamesListBox; // the saved games list
	};

#endif	// #ifndef POPUPLISTCONTAINER_H

// End of File

⌨️ 快捷键说明

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