Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
SheetModelUnitsFactory.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_UI_GUI_SHEETS_SHEETMODELUNITSFACTORY_HPP_
2#define IV_SRC_UI_GUI_SHEETS_SHEETMODELUNITSFACTORY_HPP_
3
5
6namespace iv::gui::factory
7{
8
10{
11public:
12 inline static const int32_t inProjectId = 0;
13 inline static const int32_t notInProjectId = 1;
14
15 static std::shared_ptr<AbstractSheetModel> createSheetModelUnits();
16 static void updateSheetModelUnits(const std::shared_ptr<AbstractSheetModel> &sheetModel);
17
18 static void addRowToSheetModelUnits(const std::shared_ptr<AbstractSheetModel> &sheetModel,
19 const iv::gui::sheets::RowId &rowId, bool isNotInProjectUnit = false);
20
21 static std::string getSheetModelUnitsColumnName(iv::gui::sheets::ColumnId columnId, bool shortName = true);
22};
23
24}// namespace iv::gui::factory
25
26#endif//IV_SRC_UI_GUI_SHEETS_SHEETMODELUNITSFACTORY_HPP_
Definition CSheetModelFactory.hpp:17
Definition SheetModelUnitsFactory.hpp:10
static const int32_t inProjectId
Definition SheetModelUnitsFactory.hpp:12
static std::string getSheetModelUnitsColumnName(iv::gui::sheets::ColumnId columnId, bool shortName=true)
Definition SheetModelUnitsFactory.cpp:284
static std::shared_ptr< AbstractSheetModel > createSheetModelUnits()
Definition SheetModelUnitsFactory.cpp:240
static void updateSheetModelUnits(const std::shared_ptr< AbstractSheetModel > &sheetModel)
Definition SheetModelUnitsFactory.cpp:252
static const int32_t notInProjectId
Definition SheetModelUnitsFactory.hpp:13
static void addRowToSheetModelUnits(const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::RowId &rowId, bool isNotInProjectUnit=false)
Definition SheetModelUnitsFactory.cpp:262
Definition SheetModelCabinetsFactory.cpp:9
Definition structs.hpp:24
Definition structs.hpp:50