BattleOptionsTab.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * BattleOptionsTab.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 "../../gui/InterfaceObjectConfigurable.h"
  12. #include "../../battle/BattleInterface.h"
  13. class BattleOptionsTab : public InterfaceObjectConfigurable
  14. {
  15. private:
  16. std::shared_ptr<CToggleGroup> animSpeeds;
  17. std::vector<std::shared_ptr<CToggleButton>> toggles;
  18. int getAnimSpeed() const;
  19. int getQueueSizeId() const;
  20. std::string getQueueSizeStringFromId(int value) const;
  21. void viewGridChangedCallback(bool value, BattleInterface * parentBattleInterface = nullptr);
  22. void movementShadowChangedCallback(bool value, BattleInterface * parentBattleInterface = nullptr);
  23. void mouseShadowChangedCallback(bool value);
  24. void animationSpeedChangedCallback(int value);
  25. void showQueueChangedCallback(bool value);
  26. void queueSizeChangedCallback(int value);
  27. public:
  28. BattleOptionsTab(BattleInterface * owner = nullptr);
  29. };