📄 s60uiexampleplaycontainer.h
字号:
// Copyright (c) 2006 Nokia Corporation.
#ifndef __S60UIEXAMPLE_PLAYCONTAINER_H__
#define __S60UIEXAMPLE_PLAYCONTAINER_H__
#include <aknview.h>
class CS60UIExampleModel;
class CAknNavigationDecorator;
class CAknNavigationControlContainer;
/**
* CS60UIExamplePlayContainer container control class.
* An instance of CS60UIExamplePlayContainer contains the view drawn to the screen
* for CS60UIExamplePlayView
*/
class CS60UIExamplePlayContainer : public CCoeControl
{
public: // Constructors and destructor
/**
* NewL.
* Two-phased constructor.
* Create a CS60UIExamplePlayContainer object, which will draw itself to aRect.
* @param aRect The rectangle this view will be drawn to.
* @return a pointer to the created instance of CS60UIExamplePlayContainer.
*/
static CS60UIExamplePlayContainer* NewL(const TRect& aRect,
CS60UIExampleModel& aModel );
/**
* NewLC.
* Two-phased constructor.
* Create a CS60UIExamplePlayContainer object, which will draw itself to aRect.
* @param aRect The rectangle this view will be drawn to.
* @return a pointer to the created instance of CS60UIExamplePlayContainer.
*/
static CS60UIExamplePlayContainer* NewLC(const TRect& aRect,
CS60UIExampleModel& aModel );
/**
* ConstructL
* 2nd phase constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
virtual ~CS60UIExamplePlayContainer();
public: // from CoeControl
/**
* SizeChanged
* Prepare layout based on screen size
*/
void SizeChanged();
/**
* HandleResourceChange
* Handle Resource change. In this case a change in screen size is
* handled by calling SetRect, and hence SizeChanged
*/
void HandleResourceChange(TInt aType);
/**
* Draw
* Draw this CS60UIExamplePlayContainer to the screen.
* @param aRect the rectangle of this view that needs updating
*/
void Draw(const TRect& aRect) const;
/**
* OfferKeyEventL()
* Handles the key events.
*/
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
TEventCode aType);
private:
/**
* CS60UIExamplePlayContainer.
* C++ default constructor.
*/
CS60UIExamplePlayContainer(CS60UIExampleModel& aModel);
public: //new function
/**
* UpdateNaviPane
* Update the navipane with the level and score
*/
void UpdateNaviPaneL();
private: //data
/**
* iModel
* Reference to model containing data
*/
CS60UIExampleModel& iModel;
/**
* iNaviPane
* pointer to navipane (not owned)
*/
CAknNavigationControlContainer* iNaviPane;
/**
* iNaviDecorator
* navi pane decorator (label with level and score)
*/
CAknNavigationDecorator* iNaviDecorator;
/**
* Bitmap to hold background graphic
*/
CFbsBitmap* iBkgBitmap;
};
#endif // __S60UIEXAMPLE_PLAYCONTAINER_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -