shapesbarchartcontainer.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 47 行

H
47
字号
#ifndef SHAPESBARCHARTCONTAINER_H
#define SHAPESBARCHARTCONTAINER_H

// INCLUDES

// System includes
#include <coecntrl.h>    // CCoeControl

// FORWARD DECLARATIONS
class CShapesModel;       

// CLASS DECLARATION

/**
 *
 * @class    CShapesBarChartContainer ShapesBarChartContainer.h 
 * @brief    The control which draws a bar chart based on data in the ShapesModel
 *
 * Copyright (c) EMCC Software Ltd 2003
 * @version    1.0 
 */
class CShapesBarChartContainer : public CCoeControl
{
public:    // Construction and destruction
    static CShapesBarChartContainer* NewL(CShapesModel& aShapesModel, const TRect& aRect);
    static CShapesBarChartContainer* NewLC(CShapesModel& aShapesModel, const TRect& aRect);
    ~CShapesBarChartContainer();

private:    // From CCoeControl
    void Draw(const TRect& aRect) const;
    
private:    // Construction.
    CShapesBarChartContainer(CShapesModel& aShapesModel);
    void ConstructL(const TRect& aRect);

private:    // Member functions
    void DrawAxes(const TRect& aRect, TRect& aAxisRect) const;
    void DrawChart(TRect& aAxisRect) const;    

private:    // Member data
    CShapesModel& iShapesModel;
};

#endif    // SHAPESBARCHARTCONTAINER_H

// End of File

⌨️ 快捷键说明

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