#pragma once #include #include "entt/entity/entity.hpp" #include "SelectionContent.h" #include "SelectionContentFactory.h" class StatRow; // The count summary for a field selection holding more than one object that does not // aggregate (REQ-UI-FIELD-MULTI-SELECTION): several actors, or actors together with // debris. A count per type, and the debris' summed scrap when debris is part of it. class FieldMultiContent : public SelectionContent { Q_OBJECT public: FieldMultiContent(const SelectionContext& context, const SelectionRequest& request, QWidget* parent = nullptr); protected: void refreshRuntime() override; private: void buildSummary(const std::vector& actors); std::vector m_debris; // Null unless debris is part of the selection; the only value here that changes // while the selection stands. StatRow* m_scrapRow; };