| 
    KiCad PCB EDA Suite
    
   | 
 
#include <model_zones_overview.h>
 Public Types | |
| enum | { NAME , NET , LAYERS , COL_COUNT } | 
Public Member Functions | |
| MODEL_ZONES_OVERVIEW (std::vector< std::shared_ptr< MANAGED_ZONE > > aZones, BOARD *a_pcb, PCB_BASE_FRAME *aPCB_FRAME, wxWindow *a_dialog) | |
| ~MODEL_ZONES_OVERVIEW () override=default | |
| void | EnableFitterByName (bool aEnable) | 
| void | EnableFitterByNet (bool aEnable) | 
| void | GetValueByRow (wxVariant &aVariant, unsigned aRow, unsigned aCol) const override | 
| bool | SetValueByRow (const wxVariant &aVariant, unsigned aRow, unsigned aCol) override | 
| unsigned int | GetCount () const override | 
| ZONE * | GetZone (wxDataViewItem const &item) const | 
| wxDataViewItem | GetItemByZone (ZONE *) const | 
| std::optional< unsigned > | MoveZoneIndex (unsigned aIndex, ZONE_INDEX_MOVEMENT aMovement) | 
| Move selected zone up/down.   | |
| std::optional< unsigned > | SwapZonePriority (unsigned aDragIndex, unsigned aDropIndex) | 
| Swap two zone while drag && drop.   | |
| wxDataViewItem | ApplyFilter (wxString const &aFilterText, wxDataViewItem aSelection) | 
| Filter the zones by the filter text.   | |
| wxDataViewItem | ClearFilter (wxDataViewItem aSelection) | 
| Clear up the filter.   | |
| unsigned int | GetAllZonesCount () const | 
Static Public Member Functions | |
| static std::map< int, wxString > | GetColumnNames () | 
Private Member Functions | |
| void | SortZoneContainers () | 
| void | OnRowCountChange () | 
Private Attributes | |
| std::vector< std::shared_ptr< MANAGED_ZONE > > | m_allZones | 
| std::vector< std::shared_ptr< MANAGED_ZONE > > | m_filteredZones | 
| BOARD * | m_pcb | 
| PCB_BASE_FRAME * | m_PCB_FRAME | 
| wxWindow * | m_dialog | 
| bool | m_sortByName | 
| bool | m_sortByNet | 
Definition at line 53 of file model_zones_overview.h.
| anonymous enum | 
| Enumerator | |
|---|---|
| NAME | |
| NET | |
| LAYERS | |
| COL_COUNT | |
Definition at line 56 of file model_zones_overview.h.
| MODEL_ZONES_OVERVIEW::MODEL_ZONES_OVERVIEW | ( | std::vector< std::shared_ptr< MANAGED_ZONE > > | aZones, | 
| BOARD * | a_pcb, | ||
| PCB_BASE_FRAME * | aPCB_FRAME, | ||
| wxWindow * | a_dialog ) | 
Definition at line 96 of file model_zones_overview.cpp.
References m_allZones, m_dialog, m_filteredZones, m_pcb, m_PCB_FRAME, m_sortByName, m_sortByNet, move, and Reset().
      
  | 
  overridedefault | 
| wxDataViewItem MODEL_ZONES_OVERVIEW::ApplyFilter | ( | wxString const & | aFilterText, | 
| wxDataViewItem | aSelection ) | 
Filter the zones by the filter text.
| aFilterText | Sub text matching zone name, net name or layer name | 
| aSelection | Current selection | 
Definition at line 242 of file model_zones_overview.cpp.
References ClearFilter(), GetAllZonesCount(), GetCount(), GetItemByZone(), BOARD_CONNECTED_ITEM::GetNetname(), GetZone(), ZONE::GetZoneName(), m_allZones, m_filteredZones, m_sortByName, m_sortByNet, OnRowCountChange(), Reset(), and SortZoneContainers().
| wxDataViewItem MODEL_ZONES_OVERVIEW::ClearFilter | ( | wxDataViewItem | aSelection | ) | 
Clear up the filter.
| aSelection | Current selection | 
Definition at line 273 of file model_zones_overview.cpp.
References GetAllZonesCount(), GetCount(), GetItemByZone(), GetZone(), m_allZones, m_filteredZones, OnRowCountChange(), Reset(), and SortZoneContainers().
Referenced by ApplyFilter().
| void MODEL_ZONES_OVERVIEW::EnableFitterByName | ( | bool | aEnable | ) | 
Definition at line 147 of file model_zones_overview.cpp.
References m_sortByName.
| void MODEL_ZONES_OVERVIEW::EnableFitterByNet | ( | bool | aEnable | ) | 
Definition at line 153 of file model_zones_overview.cpp.
References m_sortByNet.
      
  | 
  inline | 
Definition at line 127 of file model_zones_overview.h.
References m_allZones.
Referenced by ApplyFilter(), and ClearFilter().
      
  | 
  inlinestatic | 
      
  | 
  override | 
Definition at line 165 of file model_zones_overview.cpp.
References m_filteredZones.
Referenced by ApplyFilter(), ClearFilter(), GetZone(), MoveZoneIndex(), OnRowCountChange(), and SwapZonePriority().
| wxDataViewItem MODEL_ZONES_OVERVIEW::GetItemByZone | ( | ZONE * | aZone | ) | const | 
Definition at line 185 of file model_zones_overview.cpp.
References GetZone(), and m_filteredZones.
Referenced by ApplyFilter(), and ClearFilter().
      
  | 
  override | 
Definition at line 110 of file model_zones_overview.cpp.
References ZONE::GetLayerSet(), BOARD_CONNECTED_ITEM::GetNet(), NETINFO_ITEM::GetNetname(), ZONE::GetZoneName(), ZONE_MANAGER_PREFERENCE::HEIGHT, LAYER_BAR_WIDTH, LAYERS, m_filteredZones, m_pcb, m_PCB_FRAME, MakeBitmapForLayers(), NAME, NET, LSET::Seq(), and LSET::UIOrder().
| ZONE * MODEL_ZONES_OVERVIEW::GetZone | ( | wxDataViewItem const & | item | ) | const | 
Definition at line 171 of file model_zones_overview.cpp.
References GetCount(), and m_filteredZones.
Referenced by ApplyFilter(), ClearFilter(), and GetItemByZone().
| std::optional< unsigned > MODEL_ZONES_OVERVIEW::MoveZoneIndex | ( | unsigned | aIndex, | 
| ZONE_INDEX_MOVEMENT | aMovement ) | 
Move selected zone up/down.
Definition at line 200 of file model_zones_overview.cpp.
References GetCount(), MOVE_DOWN, MOVE_UP, and SwapZonePriority().
      
  | 
  private | 
Definition at line 49 of file model_zones_overview.cpp.
References GetCount(), and m_dialog.
Referenced by ApplyFilter(), and ClearFilter().
      
  | 
  override | 
Definition at line 159 of file model_zones_overview.cpp.
      
  | 
  private | 
Definition at line 39 of file model_zones_overview.cpp.
References m_filteredZones.
Referenced by ApplyFilter(), and ClearFilter().
| std::optional< unsigned > MODEL_ZONES_OVERVIEW::SwapZonePriority | ( | unsigned | aDragIndex, | 
| unsigned | aDropIndex ) | 
Swap two zone while drag && drop.
Definition at line 221 of file model_zones_overview.cpp.
References GetCount(), and m_filteredZones.
Referenced by MoveZoneIndex().
      
  | 
  private | 
Definition at line 135 of file model_zones_overview.h.
Referenced by ApplyFilter(), ClearFilter(), GetAllZonesCount(), and MODEL_ZONES_OVERVIEW().
      
  | 
  private | 
Definition at line 139 of file model_zones_overview.h.
Referenced by MODEL_ZONES_OVERVIEW(), and OnRowCountChange().
      
  | 
  private | 
Definition at line 136 of file model_zones_overview.h.
Referenced by ApplyFilter(), ClearFilter(), GetCount(), GetItemByZone(), GetValueByRow(), GetZone(), MODEL_ZONES_OVERVIEW(), SortZoneContainers(), and SwapZonePriority().
      
  | 
  private | 
Definition at line 137 of file model_zones_overview.h.
Referenced by GetValueByRow(), and MODEL_ZONES_OVERVIEW().
      
  | 
  private | 
Definition at line 138 of file model_zones_overview.h.
Referenced by GetValueByRow(), and MODEL_ZONES_OVERVIEW().
      
  | 
  private | 
Definition at line 140 of file model_zones_overview.h.
Referenced by ApplyFilter(), EnableFitterByName(), and MODEL_ZONES_OVERVIEW().
      
  | 
  private | 
Definition at line 141 of file model_zones_overview.h.
Referenced by ApplyFilter(), EnableFitterByNet(), and MODEL_ZONES_OVERVIEW().