Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CPanelChannelsWiredEditor.hpp
Go to the documentation of this file.
1#ifndef LIBS_PANELS_CPANELCHANNELSWIREDEDITOR_HPP_
2#define LIBS_PANELS_CPANELCHANNELSWIREDEDITOR_HPP_
3
7
8#include <memory>
9#include <string>
10
12{
13public:
14 explicit CPanelChannelsWiredEditor(std::weak_ptr<iv::channels::AbstractChannel> channel);
21
23
24 bool validateSheet();
25
26private:
27 static void prvAddColumnDefinitionsToSheetModel(const std::shared_ptr<AbstractSheetModel> &sheetModel);
28 static std::string prvColumnName(iv::gui::sheets::ColumnId columnId, bool shortName = true);
29 void prvConnectRowToSheetModel(const std::shared_ptr<AbstractSheetModel> &sheetModel,
30 iv::channels::WiredAttributes &attrChannelWired,
31 const iv::gui::sheets::RowId &rowId);
32 void prvConnectRowsToSheetModel(const std::shared_ptr<AbstractSheetModel> &sheetModel);
34 iv::channels::WiredAttributes &attrChannelWired,
35 uint32_t rowPosition);
36 std::shared_ptr<AbstractSheetModel> prvCreateSheetModel();
38
39 std::weak_ptr<iv::channels::AbstractChannel> m_channelRef;
41};
42
43#endif /* LIBS_PANELS_CPANELCHANNELSWIREDEDITOR_HPP_ */
Definition AbstractComponentGUI.hpp:30
Definition CPanelChannelsWiredEditor.hpp:12
static std::string prvColumnName(iv::gui::sheets::ColumnId columnId, bool shortName=true)
Definition CPanelChannelsWiredEditor.cpp:91
std::weak_ptr< iv::channels::AbstractChannel > m_channelRef
Definition CPanelChannelsWiredEditor.hpp:39
void prvExtractChannelWiredAttributes(iv::channels::WiredAttributes **attrChannelWired)
Definition CPanelChannelsWiredEditor.cpp:224
void prvConnectRowsToSheetModel(const std::shared_ptr< AbstractSheetModel > &sheetModel)
Definition CPanelChannelsWiredEditor.cpp:103
CPanelChannelsWiredEditor(CPanelChannelsWiredEditor &&other)=delete
CPanelChannelsWiredEditor & operator=(CPanelChannelsWiredEditor &&other)=delete
CSheet * m_sheetChannelsWiredRef
Definition CPanelChannelsWiredEditor.hpp:40
std::shared_ptr< AbstractSheetModel > prvCreateSheetModel()
Definition CPanelChannelsWiredEditor.cpp:207
CPanelChannelsWiredEditor(const CPanelChannelsWiredEditor &other)=delete
CPanelChannelsWiredEditor & operator=(const CPanelChannelsWiredEditor &other)=delete
void prvConnectRowToSheetModel(const std::shared_ptr< AbstractSheetModel > &sheetModel, iv::channels::WiredAttributes &attrChannelWired, const iv::gui::sheets::RowId &rowId)
Definition CPanelChannelsWiredEditor.cpp:126
~CPanelChannelsWiredEditor()=default
iv::gui::sheets::CellDefinition prvCreateCellDefinition(const iv::gui::sheets::ColumnDefinition &columnDefinition, iv::channels::WiredAttributes &attrChannelWired, uint32_t rowPosition)
Definition CPanelChannelsWiredEditor.cpp:147
static void prvAddColumnDefinitionsToSheetModel(const std::shared_ptr< AbstractSheetModel > &sheetModel)
Definition CPanelChannelsWiredEditor.cpp:70
bool validateSheet()
Definition CPanelChannelsWiredEditor.cpp:56
AbstractComponentGUI * buildPanel()
Definition CPanelChannelsWiredEditor.cpp:27
Definition CSheet.hpp:20
Definition WiredAttributes.hpp:12
Definition structs.hpp:18
Definition structs.hpp:36
Definition structs.hpp:24
Definition structs.hpp:50