mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-18 17:40:48 +02:00
55 lines
938 B
C++
55 lines
938 B
C++
#ifndef WINDOWNEWMAP_H
|
|
#define WINDOWNEWMAP_H
|
|
|
|
#include <QDialog>
|
|
#include "../lib/rmg/CMapGenOptions.h"
|
|
|
|
namespace Ui {
|
|
class WindowNewMap;
|
|
}
|
|
|
|
class WindowNewMap : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WindowNewMap(QWidget *parent = nullptr);
|
|
~WindowNewMap();
|
|
|
|
private slots:
|
|
void on_cancelButton_clicked();
|
|
|
|
void on_okButtong_clicked();
|
|
|
|
void on_sizeCombo_activated(int index);
|
|
|
|
void on_twoLevelCheck_stateChanged(int arg1);
|
|
|
|
void on_humanCombo_activated(int index);
|
|
|
|
void on_cpuCombo_activated(int index);
|
|
|
|
void on_randomMapCheck_stateChanged(int arg1);
|
|
|
|
void on_templateCombo_activated(int index);
|
|
|
|
void on_widthTxt_textChanged(const QString &arg1);
|
|
|
|
void on_heightTxt_textChanged(const QString &arg1);
|
|
|
|
private:
|
|
|
|
void generateEmptyMap();
|
|
void generateRandomMap();
|
|
|
|
void updateTemplateList();
|
|
|
|
private:
|
|
Ui::WindowNewMap *ui;
|
|
|
|
CMapGenOptions mapGenOptions;
|
|
bool randomMap = false;
|
|
};
|
|
|
|
#endif // WINDOWNEWMAP_H
|