give the selection cards their own parts instead of label blobs

This commit is contained in:
2026-08-07 18:43:23 +02:00
parent 2289277e12
commit 075e44d295
54 changed files with 1505 additions and 533 deletions

View File

@@ -12,8 +12,11 @@
#include "SelectionContext.h"
struct Building;
class BarRow;
class QLabel;
class QVBoxLayout;
class SectionBox;
class StatusPill;
// One card of the selection panel: the content shown for a particular kind of selection
// (REQ-UI-SELECTION-CARD). Every content is this base plus the parts its constructor
@@ -88,14 +91,14 @@ private:
// Set while this card shows a construction site rather than a finished object.
std::optional<BuildingId> m_siteId;
QLabel* m_symbolLabel;
QLabel* m_nameLabel;
QLabel* m_slotDot;
QLabel* m_slotLabel;
QLabel* m_symbolLabel;
QLabel* m_nameLabel;
StatusPill* m_statusPill;
QWidget* m_configurationGroup;
QWidget* m_runtimeGroup;
// Replaces the runtime group while this card shows a construction site; null
// Replaces the runtime group while this card shows a construction site; both null
// otherwise.
QLabel* m_constructionLabel;
SectionBox* m_constructionSection;
BarRow* m_constructionBar;
};