KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ZONE_SELECTION_CHANGE_NOTIFIER Class Referenceabstract

Subscriber who is interested in the zone selection change. More...

#include <zone_selection_change_notifier.h>

Inheritance diagram for ZONE_SELECTION_CHANGE_NOTIFIER:
PANEL_ZONE_GAL PANEL_ZONE_PROPERTIES PANE_ZONE_VIEWER

Public Member Functions

virtual ~ZONE_SELECTION_CHANGE_NOTIFIER ()=default
 
ZONEGetZone () const
 
void OnZoneSelectionChanged (ZONE *aZone)
 Inform the subscriber about the zone selection change.
 
ZONEGetSelectedZone () const
 

Protected Member Functions

virtual void ActivateSelectedZone (ZONE *new_zone)=0
 

Private Attributes

ZONEm_zone {}
 

Detailed Description

Subscriber who is interested in the zone selection change.

Definition at line 35 of file zone_selection_change_notifier.h.

Constructor & Destructor Documentation

◆ ~ZONE_SELECTION_CHANGE_NOTIFIER()

virtual ZONE_SELECTION_CHANGE_NOTIFIER::~ZONE_SELECTION_CHANGE_NOTIFIER ( )
virtualdefault

Member Function Documentation

◆ ActivateSelectedZone()

virtual void ZONE_SELECTION_CHANGE_NOTIFIER::ActivateSelectedZone ( ZONE new_zone)
protectedpure virtual

◆ GetSelectedZone()

ZONE * ZONE_SELECTION_CHANGE_NOTIFIER::GetSelectedZone ( ) const
inline

Definition at line 54 of file zone_selection_change_notifier.h.

References m_zone.

◆ GetZone()

ZONE * ZONE_SELECTION_CHANGE_NOTIFIER::GetZone ( ) const
inline

Definition at line 40 of file zone_selection_change_notifier.h.

References m_zone.

Referenced by DIALOG_ZONE_MANAGER::OnZoneNameUpdate().

◆ OnZoneSelectionChanged()

void ZONE_SELECTION_CHANGE_NOTIFIER::OnZoneSelectionChanged ( ZONE aZone)
inline

Inform the subscriber about the zone selection change.

Parameters
aZoneThe current zone selection from the publisher

Definition at line 46 of file zone_selection_change_notifier.h.

References ActivateSelectedZone(), and m_zone.

Member Data Documentation

◆ m_zone

ZONE* ZONE_SELECTION_CHANGE_NOTIFIER::m_zone {}
private

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