add ship stats panel to ship layout dialog
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "ShipLayoutBlueprint.h"
|
||||
|
||||
class QPushButton;
|
||||
class ShipStatsPanel;
|
||||
|
||||
class ShipLayoutDialog : public QDialog
|
||||
{
|
||||
@@ -49,6 +50,7 @@ private:
|
||||
|
||||
void rebuildOccupancy();
|
||||
void updateGridWidget();
|
||||
void updateStats();
|
||||
bool canPlaceModule(const ModuleDef& def, QPoint position, Rotation rotation) const;
|
||||
std::vector<std::string> rotatedMask(const ModuleDef& def, Rotation rotation) const;
|
||||
void loadLayoutBlueprint(const std::vector<PlacedModule>& modules);
|
||||
@@ -68,6 +70,7 @@ private:
|
||||
std::vector<QPushButton*> m_moduleButtons;
|
||||
QPushButton* m_removeButton;
|
||||
QWidget* m_gridWidget;
|
||||
ShipStatsPanel* m_statsPanel;
|
||||
|
||||
std::optional<ShipLayoutConfig> m_result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user