#pragma once #include "core/domain/Project.h" #include "props/PropertySectionWidget.h" #include class QComboBox; class QListWidget; class QPushButton; namespace gui { class HotspotPropertySection final : public PropertySectionWidget { Q_OBJECT public: explicit HotspotPropertySection(QWidget* parent = nullptr); void clearDisconnected(); void applyState(const QVector& hotspots, const QString& selectedHotspotId, const QVector>& animIdToLabelNonNone); signals: void hotspotSelected(const QString& hotspotId); void targetAnimationChanged(const QString& hotspotId, const QString& animationId); void deleteRequested(const QString& hotspotId); private: QString m_hotspotId; QListWidget* m_hotspotList = nullptr; QComboBox* m_targetAnim = nullptr; QPushButton* m_btnDelete = nullptr; }; } // namespace gui