townhintselector.h 773 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * townhintselector.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 <QWidget>
  12. #include "../../lib/rmg/CRmgTemplate.h"
  13. namespace Ui {
  14. class TownHintSelector;
  15. }
  16. class TownHintSelector : public QDialog
  17. {
  18. Q_OBJECT
  19. public:
  20. explicit TownHintSelector(std::vector<rmg::ZoneOptions::CTownHints> & townHints);
  21. static void showTownHintSelector(std::vector<rmg::ZoneOptions::CTownHints> & townHints);
  22. private slots:
  23. void on_buttonBoxResult_accepted();
  24. void on_buttonBoxResult_rejected();
  25. private:
  26. Ui::TownHintSelector *ui;
  27. std::vector<rmg::ZoneOptions::CTownHints> & townHints;
  28. };