Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CPanelUnitsEditor.hpp
Go to the documentation of this file.
1#ifndef LIBS_PANELS_CPANELUNITSEDITOR_HPP_
2#define LIBS_PANELS_CPANELUNITSEDITOR_HPP_
3
4#include "core/defines.hpp"
5#include "ui/gui/CEditNum.hpp"
8
9#include <memory>
10
12{
13public:
15 ~CPanelUnitsEditor() override = default;
16 CPanelUnitsEditor(const CPanelUnitsEditor &other) = delete;
20
21 AbstractComponentGUI *buildPanel(CDialog *dialogFather) override;
22 void update() override;
23 bool deleteUnit(iv::types::unitId unitId, std::string &resultMsg) const;
24
25 static AbstractComponentGUI *panelMoveUnits(uint16_t &dstUnitIdOut);
26
27private:
29 std::shared_ptr<AbstractSheetModel> prvCreateSheetModel();
30
31 std::shared_ptr<AbstractSheetModel> m_sheetModelRef;
33};
34
35#endif /* LIBS_PANELS_CPANELUNITSEDITOR_HPP_ */
Definition AbstractComponentGUI.hpp:30
Definition AbstractViewPanelEditor.hpp:12
Definition CDialog.hpp:21
Definition CPanelUnitsEditor.hpp:12
CPanelUnitsEditor & operator=(CPanelUnitsEditor &&other)=delete
bool deleteUnit(iv::types::unitId unitId, std::string &resultMsg) const
Definition CPanelUnitsEditor.cpp:1106
AbstractComponentGUI * buildPanel(CDialog *dialogFather) override
Definition CPanelUnitsEditor.cpp:1051
CPanelUnitsEditor & operator=(const CPanelUnitsEditor &other)=delete
AbstractComponentGUI * prvBuildButtonsLayout()
Definition CPanelUnitsEditor.cpp:1138
CPanelUnitsEditor()
Definition CPanelUnitsEditor.cpp:1046
static AbstractComponentGUI * panelMoveUnits(uint16_t &dstUnitIdOut)
Definition CPanelUnitsEditor.cpp:1198
CPanelUnitsEditor(const CPanelUnitsEditor &other)=delete
std::shared_ptr< AbstractSheetModel > prvCreateSheetModel()
Definition CPanelUnitsEditor.cpp:1189
std::shared_ptr< AbstractSheetModel > m_sheetModelRef
Definition CPanelUnitsEditor.hpp:31
~CPanelUnitsEditor() override=default
CSheet * m_sheetRef
Definition CPanelUnitsEditor.hpp:32
CPanelUnitsEditor(CPanelUnitsEditor &&other)=delete
void update() override
Definition CPanelUnitsEditor.cpp:1090
Definition CSheet.hpp:20
uint16_t unitId
Definition types.hpp:77