1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00
vcmi/mapeditor/mapsettings.h
2023-02-08 20:09:37 +04:00

42 lines
845 B
C++

/*
* mapsettings.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 <QDialog>
#include "mapcontroller.h"
namespace Ui {
class MapSettings;
}
class MapSettings : public QDialog
{
Q_OBJECT
public:
explicit MapSettings(MapController & controller, QWidget *parent = nullptr);
~MapSettings();
private slots:
void on_pushButton_clicked();
void on_victoryComboBox_currentIndexChanged(int index);
void on_loseComboBox_currentIndexChanged(int index);
private:
Ui::MapSettings *ui;
MapController & controller;
QComboBox * victoryTypeWidget = nullptr, * loseTypeWidget = nullptr;
QLineEdit * victoryValueWidget = nullptr, * loseValueWidget = nullptr;
};