2023-09-07 20:19:31 +02:00
|
|
|
/*
|
|
|
|
* loseconditions.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
|
|
|
|
*
|
|
|
|
*/
|
2023-09-09 11:03:19 +02:00
|
|
|
#pragma once
|
2023-09-08 01:43:01 +02:00
|
|
|
|
2023-09-05 01:26:38 +02:00
|
|
|
#include "abstractsettings.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class LoseConditions;
|
|
|
|
}
|
|
|
|
|
|
|
|
class LoseConditions : public AbstractSettings
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit LoseConditions(QWidget *parent = nullptr);
|
|
|
|
~LoseConditions();
|
|
|
|
|
|
|
|
void initialize(const CMap & map) override;
|
|
|
|
void update(CMap & map) override;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_loseComboBox_currentIndexChanged(int index);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::LoseConditions *ui;
|
|
|
|
const CMap * mapPointer = nullptr;
|
|
|
|
|
|
|
|
QComboBox * loseTypeWidget = nullptr;
|
|
|
|
QComboBox * loseSelectWidget = nullptr;
|
|
|
|
QLineEdit * loseValueWidget = nullptr;
|
|
|
|
};
|
|
|
|
|