| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /*
- * CStatisticScreen.h, part of VCMI engine
- *
- * Authors: listed in file AUTHORS in main folder
- *
- * License: GNU General Public License v2.0 or later
- * Full text of license available in license.txt file, in main folder
- *
- */
- #pragma once
- #include "../windows/CWindowObject.h"
- #include "../../lib/gameState/GameStatistics.h"
- class FilledTexturePlayerColored;
- class CToggleButton;
- class GraphicalPrimitiveCanvas;
- class LineChart;
- class CStatisticScreen : public CWindowObject
- {
- std::shared_ptr<FilledTexturePlayerColored> filledBackground;
- std::vector<std::shared_ptr<CIntObject>> layout;
- std::shared_ptr<CToggleButton> buttonCsvSave;
- StatisticDataSet statistic;
- std::shared_ptr<LineChart> chart;
- public:
- CStatisticScreen(StatisticDataSet stat);
- };
- class LineChart : public CIntObject
- {
- std::shared_ptr<GraphicalPrimitiveCanvas> canvas;
- std::vector<std::shared_ptr<CIntObject>> layout;
- public:
- LineChart(Rect position, std::string title);
- };
|