1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-16 10:19:47 +02:00
vcmi/mapeditor/mapsettings/eventsettings.h

47 lines
983 B
C++
Raw Normal View History

2023-09-07 23:57:56 +02:00
/*
* eventsettings.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-07 23:57:56 +02:00
#include "abstractsettings.h"
namespace Ui {
class EventSettings;
}
QString toQString(const PlayerColor & player);
QVariant toVariant(const TResources & resources);
QVariant toVariant(const std::set<PlayerColor> & players);
TResources resourcesFromVariant(const QVariant & v);
std::set<PlayerColor> playersFromVariant(const QVariant & v);
2023-09-07 23:57:56 +02:00
class EventSettings : public AbstractSettings
{
Q_OBJECT
public:
explicit EventSettings(QWidget *parent = nullptr);
~EventSettings();
void initialize(MapController & map) override;
void update() override;
2023-09-07 23:57:56 +02:00
private slots:
void on_timedEventAdd_clicked();
void on_timedEventRemove_clicked();
void on_eventsList_itemActivated(QListWidgetItem *item);
private:
Ui::EventSettings *ui;
};