Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CPrvListenerClickMoveChannel Class Referencefinal
Inheritance diagram for CPrvListenerClickMoveChannel:
[legend]
Collaboration diagram for CPrvListenerClickMoveChannel:
[legend]

Public Member Functions

 CPrvListenerClickMoveChannel (std::shared_ptr< AbstractSheetModel > sheetModel, CSheet *sheet, CPanelChannelsEditor *panelChannelsEditor)
 

Private Member Functions

void click (CEventClick *evt) override
 
bool prvGetSelectedUnitChannel (CUnitsRestrictions::TUnitChannel &selectedUnitChannel) const
 

Static Private Member Functions

static bool prvExistAPossibleMovement ()
 Check if there is a possible movement.
 

Private Attributes

std::shared_ptr< AbstractSheetModelm_sheetModelRef
 
CSheetm_sheetRef
 
CPanelChannelsEditorm_panelChannelsEditorRef
 

Constructor & Destructor Documentation

◆ CPrvListenerClickMoveChannel()

CPrvListenerClickMoveChannel::CPrvListenerClickMoveChannel ( std::shared_ptr< AbstractSheetModel > sheetModel,
CSheet * sheet,
CPanelChannelsEditor * panelChannelsEditor )
inline

Member Function Documentation

◆ click()

void CPrvListenerClickMoveChannel::click ( CEventClick * evt)
inlineoverrideprivatevirtual

Implements IListenerClick.

◆ prvExistAPossibleMovement()

static bool CPrvListenerClickMoveChannel::prvExistAPossibleMovement ( )
inlinestaticprivate

Check if there is a possible movement.

Note
This function checks if there is at least one unit with more than one channel or if there are more than one unit with channels.
Returns
True if there is a possible movement, false otherwise.

◆ prvGetSelectedUnitChannel()

bool CPrvListenerClickMoveChannel::prvGetSelectedUnitChannel ( CUnitsRestrictions::TUnitChannel & selectedUnitChannel) const
inlineprivate

Member Data Documentation

◆ m_panelChannelsEditorRef

CPanelChannelsEditor* CPrvListenerClickMoveChannel::m_panelChannelsEditorRef
private

◆ m_sheetModelRef

std::shared_ptr<AbstractSheetModel> CPrvListenerClickMoveChannel::m_sheetModelRef
private

◆ m_sheetRef

CSheet* CPrvListenerClickMoveChannel::m_sheetRef
private

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