CStatisticScreen.h 963 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * CStatisticScreen.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../windows/CWindowObject.h"
  12. #include "../../lib/gameState/GameStatistics.h"
  13. class FilledTexturePlayerColored;
  14. class CToggleButton;
  15. class GraphicalPrimitiveCanvas;
  16. class LineChart;
  17. class CStatisticScreen : public CWindowObject
  18. {
  19. std::shared_ptr<FilledTexturePlayerColored> filledBackground;
  20. std::vector<std::shared_ptr<CIntObject>> layout;
  21. std::shared_ptr<CToggleButton> buttonCsvSave;
  22. StatisticDataSet statistic;
  23. std::shared_ptr<LineChart> chart;
  24. public:
  25. CStatisticScreen(StatisticDataSet stat);
  26. };
  27. class LineChart : public CIntObject
  28. {
  29. std::shared_ptr<GraphicalPrimitiveCanvas> canvas;
  30. std::vector<std::shared_ptr<CIntObject>> layout;
  31. public:
  32. LineChart(Rect position, std::string title);
  33. };