Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
SheetModelDataFlow.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_UI_GUI_SHEETMODELDATAFLOW_HPP_
2#define IV_SRC_UI_GUI_SHEETMODELDATAFLOW_HPP_
3
4#include "core/defines.hpp"
6
7#include <memory>
8
9namespace iv::gui
10{
11
16{
17public:
18 explicit SheetModelDataFlow(std::weak_ptr<iv::types::networkId> activeNetworkId,
19 std::weak_ptr<iv::eLanguage> selectedLanguage);
20
21private:
22 [[nodiscard]] std::string cellText(uint32_t rowPosition, uint32_t colPosition) const override;
23 [[nodiscard]] std::string rowTitle(uint32_t rowPosition) const override;
24
25 void updateCellComponent(uint32_t rowPosition, uint32_t columnPosition) override;
26
27 const std::weak_ptr<iv::types::networkId> m_activeNetworkId;
28 const std::weak_ptr<iv::eLanguage> m_selectedLanguage;
29};
30
31}// namespace iv::gui
32
33#endif//IV_SRC_UI_GUI_SHEETMODELDATAFLOW_HPP_
Definition AbstractSheetModel.hpp:17
uint32_t columnPosition(const iv::gui::sheets::ColumnId &columnId)
Definition AbstractSheetModel.cpp:117
uint32_t rowPosition(const iv::gui::sheets::RowId &rowId)
Definition AbstractSheetModel.cpp:226
The SheetModelDataFlow class. It'll represent each cell in the sheet of the Data Flow's window panel.
Definition SheetModelDataFlow.hpp:16
const std::weak_ptr< iv::types::networkId > m_activeNetworkId
Definition SheetModelDataFlow.hpp:27
void updateCellComponent(uint32_t rowPosition, uint32_t columnPosition) override
Update the cell component in the sheet.
Definition SheetModelDataFlow.cpp:310
std::string cellText(uint32_t rowPosition, uint32_t colPosition) const override
Definition SheetModelDataFlow.cpp:18
const std::weak_ptr< iv::eLanguage > m_selectedLanguage
Definition SheetModelDataFlow.hpp:28
std::string rowTitle(uint32_t rowPosition) const override
Definition SheetModelDataFlow.cpp:82
SheetModelDataFlow(std::weak_ptr< iv::types::networkId > activeNetworkId, std::weak_ptr< iv::eLanguage > selectedLanguage)
Definition SheetModelDataFlow.cpp:14
Definition enums.hpp:5