Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
SheetModelChannelsFactory.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_UI_GUI_SHEETS_SHEETMODELCHANNELSFACTORY_HPP_
2#define IV_SRC_UI_GUI_SHEETS_SHEETMODELCHANNELSFACTORY_HPP_
3
5
6namespace iv::gui::factory
7{
8
10{
11public:
12 static std::shared_ptr<AbstractSheetModel>
13 createSheetModelChannels(const std::shared_ptr<std::optional<iv::types::unitId>> &activeUnitId);
14 static void updateSheetModelChannels(const std::shared_ptr<AbstractSheetModel> &sheetModel,
15 const std::optional<iv::types::unitId> &activeUnitId);
16
18 addDescriptionLanguageToSheetModelChannels(const std::shared_ptr<AbstractSheetModel> &sheetModel,
19 iv::eLanguage language);
21 removeDescriptionLanguageFromSheetModelChannels(const std::shared_ptr<AbstractSheetModel> &sheetModel,
22 iv::eLanguage language);
23
24 static void addRowToSheetModelChannels(const std::shared_ptr<AbstractSheetModel> &sheetModel,
25 const iv::gui::sheets::RowId &rowId);
26 static std::string getSheetModelChannelsColumnName(iv::gui::sheets::ColumnId columnId, bool shortName = true);
27
28private:
29 static bool findLastDescriptionPositionInCSheetModelChannels(const std::shared_ptr<AbstractSheetModel> &sheetModel,
30 iv::gui::sheets::ColumnId *resultColumnId);
31};
32
33}// namespace iv::gui::factory
34
35#endif//IV_SRC_UI_GUI_SHEETS_SHEETMODELCHANNELSFACTORY_HPP_
Definition CSheetModelFactory.hpp:17
Definition SheetModelChannelsFactory.hpp:10
static void updateSheetModelChannels(const std::shared_ptr< AbstractSheetModel > &sheetModel, const std::optional< iv::types::unitId > &activeUnitId)
Definition SheetModelChannelsFactory.cpp:1150
static iv::gui::sheets::ColumnId removeDescriptionLanguageFromSheetModelChannels(const std::shared_ptr< AbstractSheetModel > &sheetModel, iv::eLanguage language)
Definition SheetModelChannelsFactory.cpp:1190
static std::string getSheetModelChannelsColumnName(iv::gui::sheets::ColumnId columnId, bool shortName=true)
Definition SheetModelChannelsFactory.cpp:1224
static void addRowToSheetModelChannels(const std::shared_ptr< AbstractSheetModel > &sheetModel, const iv::gui::sheets::RowId &rowId)
Definition SheetModelChannelsFactory.cpp:1205
static bool findLastDescriptionPositionInCSheetModelChannels(const std::shared_ptr< AbstractSheetModel > &sheetModel, iv::gui::sheets::ColumnId *resultColumnId)
Definition SheetModelChannelsFactory.cpp:1245
static iv::gui::sheets::ColumnId addDescriptionLanguageToSheetModelChannels(const std::shared_ptr< AbstractSheetModel > &sheetModel, iv::eLanguage language)
Definition SheetModelChannelsFactory.cpp:1159
static std::shared_ptr< AbstractSheetModel > createSheetModelChannels(const std::shared_ptr< std::optional< iv::types::unitId > > &activeUnitId)
Definition SheetModelChannelsFactory.cpp:1126
Definition SheetModelCabinetsFactory.cpp:9
eLanguage
Definition enums.hpp:37
Definition structs.hpp:24
Definition structs.hpp:50