playersettings.h 726 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * playersettings.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 "StdInc.h"
  12. #include <QDialog>
  13. #include "playerparams.h"
  14. namespace Ui {
  15. class PlayerSettings;
  16. }
  17. class PlayerSettings : public QDialog
  18. {
  19. Q_OBJECT
  20. public:
  21. explicit PlayerSettings(MapController & controller, QWidget *parent = nullptr);
  22. ~PlayerSettings();
  23. private slots:
  24. void on_playersCount_currentIndexChanged(int index);
  25. void on_pushButton_clicked();
  26. private:
  27. Ui::PlayerSettings *ui;
  28. std::vector<PlayerParams*> paramWidgets;
  29. MapController & controller;
  30. };