Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::panels::PanelDataFlowEditor Class Referencefinal

PanelDataFlowEditor class that will build the Data Flow's window panel. This panel will contain a sheet and a button layout to work with it. More...

#include <PanelDataFlowEditor.hpp>

Inheritance diagram for iv::panels::PanelDataFlowEditor:
[legend]
Collaboration diagram for iv::panels::PanelDataFlowEditor:
[legend]

Public Member Functions

 PanelDataFlowEditor ()
 
void update () override
 Update the panel. Refresh the sheet with the selected network and the Network selection combo box.
 
void addChannelToNetwork (const std::shared_ptr< iv::channels::AbstractChannel > &selectedChannel) const
 Add a channel to the selected network. Updates the sheet and the model.
 
void removeChannelFromNetwork (const std::shared_ptr< iv::channels::AbstractChannel > &selectedChannel) const
 Remove a channel from the selected network. Updates the sheet and the model.
 
std::shared_ptr< iv::types::networkIdgetSelectedNetworkId () const
 

Private Member Functions

AbstractComponentGUIbuildPanel (CDialog *dialogFather) override
 Build the panel with the sheet and the button's layout.
 
AbstractComponentGUIprvBuildButtonsLayout ()
 Build the buttons layout with the Network selection combo box, the Add channel, Add unit and Remove buttons.
 
void prvBuildComboBoxNetworkSelection ()
 Build the Network selection combo box.
 
void prvRefreshComboBoxNetworkSelection () const
 Refresh the Network selection combo box, updating the choices and the selected network ID if previous one does not exist anymore.
 
void prvBuildComboBoxLanguageSelection ()
 
void prvRefreshComboBoxLanguageSelection () const
 

Static Private Member Functions

static std::set< iv::types::networkIdprvGetNetworksIds ()
 

Private Attributes

AbstractComponentGUIm_comboBoxNetworkSelection
 
AbstractComponentGUIm_comboBoxLanguageSelection
 
std::shared_ptr< iv::types::networkIdm_selectedNetworkId
 
std::shared_ptr< iv::eLanguagem_selectedLanguage
 
std::shared_ptr< AbstractSheetModelm_sheetModelRef
 
CSheetm_sheetRef
 

Detailed Description

PanelDataFlowEditor class that will build the Data Flow's window panel. This panel will contain a sheet and a button layout to work with it.

Constructor & Destructor Documentation

◆ PanelDataFlowEditor()

iv::panels::PanelDataFlowEditor::PanelDataFlowEditor ( )

Member Function Documentation

◆ addChannelToNetwork()

void iv::panels::PanelDataFlowEditor::addChannelToNetwork ( const std::shared_ptr< iv::channels::AbstractChannel > & selectedChannel) const

Add a channel to the selected network. Updates the sheet and the model.

Parameters
selectedChannelThe channel to add to the network.

◆ buildPanel()

AbstractComponentGUI * iv::panels::PanelDataFlowEditor::buildPanel ( CDialog * dialogFather)
overrideprivatevirtual

Build the panel with the sheet and the button's layout.

Parameters
dialogFatherThe dialog that contains the panel.
Returns
The panel layout.

Implements AbstractViewPanelEditor.

◆ getSelectedNetworkId()

std::shared_ptr< iv::types::networkId > iv::panels::PanelDataFlowEditor::getSelectedNetworkId ( ) const
nodiscard

◆ prvBuildButtonsLayout()

AbstractComponentGUI * iv::panels::PanelDataFlowEditor::prvBuildButtonsLayout ( )
private

Build the buttons layout with the Network selection combo box, the Add channel, Add unit and Remove buttons.

Returns
The button's layout.

◆ prvBuildComboBoxLanguageSelection()

void iv::panels::PanelDataFlowEditor::prvBuildComboBoxLanguageSelection ( )
private

◆ prvBuildComboBoxNetworkSelection()

void iv::panels::PanelDataFlowEditor::prvBuildComboBoxNetworkSelection ( )
private

Build the Network selection combo box.

◆ prvGetNetworksIds()

std::set< iv::types::networkId > iv::panels::PanelDataFlowEditor::prvGetNetworksIds ( )
staticprivate

◆ prvRefreshComboBoxLanguageSelection()

void iv::panels::PanelDataFlowEditor::prvRefreshComboBoxLanguageSelection ( ) const
private

◆ prvRefreshComboBoxNetworkSelection()

void iv::panels::PanelDataFlowEditor::prvRefreshComboBoxNetworkSelection ( ) const
private

Refresh the Network selection combo box, updating the choices and the selected network ID if previous one does not exist anymore.

◆ removeChannelFromNetwork()

void iv::panels::PanelDataFlowEditor::removeChannelFromNetwork ( const std::shared_ptr< iv::channels::AbstractChannel > & selectedChannel) const

Remove a channel from the selected network. Updates the sheet and the model.

Parameters
selectedChannelThe channel to remove from the network.

◆ update()

void iv::panels::PanelDataFlowEditor::update ( )
overridevirtual

Update the panel. Refresh the sheet with the selected network and the Network selection combo box.

Implements AbstractViewPanelEditor.

Member Data Documentation

◆ m_comboBoxLanguageSelection

AbstractComponentGUI* iv::panels::PanelDataFlowEditor::m_comboBoxLanguageSelection
private

◆ m_comboBoxNetworkSelection

AbstractComponentGUI* iv::panels::PanelDataFlowEditor::m_comboBoxNetworkSelection
private

◆ m_selectedLanguage

std::shared_ptr<iv::eLanguage> iv::panels::PanelDataFlowEditor::m_selectedLanguage
private

◆ m_selectedNetworkId

std::shared_ptr<iv::types::networkId> iv::panels::PanelDataFlowEditor::m_selectedNetworkId
private

◆ m_sheetModelRef

std::shared_ptr<AbstractSheetModel> iv::panels::PanelDataFlowEditor::m_sheetModelRef
private

◆ m_sheetRef

CSheet* iv::panels::PanelDataFlowEditor::m_sheetRef
private

The documentation for this class was generated from the following files: