open selection panel modals on the panel

This commit is contained in:
2026-08-11 21:21:12 +02:00
parent d1da4b2937
commit 3274df91d4
3 changed files with 58 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ class BlueprintLibrary;
class BuildingIconCache;
class ItemIconCache;
class QCloseEvent;
class QDialog;
class QResizeEvent;
class MainWindow : public QWidget,
@@ -83,6 +84,11 @@ private:
const std::string& schematicId,
const ShipLayoutConfig& currentLayout);
// Centers a modal opened from the selection panel on that panel, kept inside this
// window (REQ-UI-PANEL-MODAL). Called on the constructed dialog before exec(), and
// only for the two modals the panel opens.
void placeOnSelectionPanel(QDialog& dialog) const;
// Runs the blueprint selection dialog and enters placement mode for whatever the
// player picked (REQ-UI-BLUEPRINT-DIALOG). Holds no pause or dim scope of its own:
// both callers already hold theirs, which is what keeps the dim continuous when a