1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-06 00:24:11 +02:00
vcmi/mapeditor/mapsettings/victoryconditions.h
2023-09-09 11:03:19 +02:00

40 lines
832 B
C++

/*
* victoryconditions.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
*
*/
#pragma once
#include "abstractsettings.h"
namespace Ui {
class VictoryConditions;
}
class VictoryConditions : public AbstractSettings
{
Q_OBJECT
public:
explicit VictoryConditions(QWidget *parent = nullptr);
~VictoryConditions();
void initialize(const CMap & map) override;
void update(CMap & map) override;
private slots:
void on_victoryComboBox_currentIndexChanged(int index);
private:
Ui::VictoryConditions *ui;
const CMap * mapPointer = nullptr;
QComboBox * victoryTypeWidget = nullptr;
QComboBox * victorySelectWidget = nullptr;
QLineEdit * victoryValueWidget = nullptr;
};