2025-10-11 15:03:22 +00:00
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "MapPresent.h"
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD>հ<D5B0>Ԫ<EFBFBD><D4AA><EFBFBD><EFBFBD>ί<EFBFBD><CEAF>
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
class BasicUnitDelegate : public UnitPresentDelegate {
|
|
|
|
|
|
public:
|
2025-10-12 05:20:15 +00:00
|
|
|
|
BasicUnitDelegate(QObject *parent = nullptr);
|
2025-10-11 15:03:22 +00:00
|
|
|
|
|
2025-10-12 05:20:15 +00:00
|
|
|
|
int unitType() const override;
|
2025-10-11 15:03:22 +00:00
|
|
|
|
void paint(QPainter* p, const PresentOption& option) override;
|
2025-10-12 12:21:45 +00:00
|
|
|
|
static QPainterPath clipPathGet(const QRectF& rect);
|
2025-10-12 05:20:15 +00:00
|
|
|
|
|
|
|
|
|
|
void hotClear();
|
|
|
|
|
|
void hotIndexSet(const PresentIndex &idx);
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
PresentIndex _hot_index;
|
2025-10-11 15:03:22 +00:00
|
|
|
|
};
|