|
KiCad PCB EDA Suite
|
#include <model_zones_overview.h>
Public Types | |
| enum | { NAME , NET , LAYERS , COL_COUNT } |
Public Member Functions | |
| MODEL_ZONES_OVERVIEW (wxWindow *aParent, PCB_BASE_FRAME *aFrame, ZONE_SETTINGS_BAG &aZoneSettingsBag) | |
| ~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. | |
Static Public Member Functions | |
| static std::map< int, wxString > | GetColumnNames () |
Private Member Functions | |
| void | SortFilteredZones () |
| void | OnRowCountChange () |
Private Attributes | |
| wxWindow * | m_parent |
| PCB_BASE_FRAME * | m_frame |
| ZONE_SETTINGS_BAG & | m_zoneSettingsBag |
| std::vector< ZONE * > | m_filteredZones |
| bool | m_sortByName |
| bool | m_sortByNet |
Definition at line 55 of file model_zones_overview.h.
| anonymous enum |
| Enumerator | |
|---|---|
| NAME | |
| NET | |
| LAYERS | |
| COL_COUNT | |
Definition at line 58 of file model_zones_overview.h.
| MODEL_ZONES_OVERVIEW::MODEL_ZONES_OVERVIEW | ( | wxWindow * | aParent, |
| PCB_BASE_FRAME * | aFrame, | ||
| ZONE_SETTINGS_BAG & | aZoneSettingsBag ) |
Definition at line 95 of file model_zones_overview.cpp.
References m_filteredZones, m_frame, m_parent, m_sortByName, m_sortByNet, m_zoneSettingsBag, 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 239 of file model_zones_overview.cpp.
References ClearFilter(), GetCount(), GetItemByZone(), GetZone(), m_filteredZones, m_sortByName, m_sortByNet, m_zoneSettingsBag, OnRowCountChange(), Reset(), and SortFilteredZones().
| wxDataViewItem MODEL_ZONES_OVERVIEW::ClearFilter | ( | wxDataViewItem | aSelection | ) |
Clear up the filter.
| aSelection | Current selection |
Definition at line 268 of file model_zones_overview.cpp.
References GetCount(), GetItemByZone(), GetZone(), m_filteredZones, m_zoneSettingsBag, OnRowCountChange(), Reset(), and SortFilteredZones().
Referenced by ApplyFilter().
| void MODEL_ZONES_OVERVIEW::EnableFitterByName | ( | bool | aEnable | ) |
Definition at line 144 of file model_zones_overview.cpp.
References m_sortByName.
| void MODEL_ZONES_OVERVIEW::EnableFitterByNet | ( | bool | aEnable | ) |
Definition at line 150 of file model_zones_overview.cpp.
References m_sortByNet.
|
inlinestatic |
|
override |
Definition at line 162 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 182 of file model_zones_overview.cpp.
References m_filteredZones.
Referenced by ApplyFilter(), and ClearFilter().
|
override |
Definition at line 108 of file model_zones_overview.cpp.
References ZONE::GetLayerSet(), BOARD_CONNECTED_ITEM::GetNet(), NETINFO_ITEM::GetNetname(), ZONE::GetZoneName(), LAYER_BAR_HEIGHT, LAYER_BAR_WIDTH, LAYERS, m_filteredZones, m_frame, MakeBitmapForLayers(), NAME, NET, LSET::Seq(), and LSET::UIOrder().
| ZONE * MODEL_ZONES_OVERVIEW::GetZone | ( | wxDataViewItem const & | item | ) | const |
Definition at line 168 of file model_zones_overview.cpp.
References GetCount(), and m_filteredZones.
Referenced by ApplyFilter(), and ClearFilter().
| std::optional< unsigned > MODEL_ZONES_OVERVIEW::MoveZoneIndex | ( | unsigned | aIndex, |
| ZONE_INDEX_MOVEMENT | aMovement ) |
Move selected zone up/down.
Definition at line 197 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_parent.
Referenced by ApplyFilter(), and ClearFilter().
|
override |
Definition at line 156 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 218 of file model_zones_overview.cpp.
References GetCount(), m_filteredZones, and m_zoneSettingsBag.
Referenced by MoveZoneIndex().
|
private |
Definition at line 137 of file model_zones_overview.h.
Referenced by ApplyFilter(), ClearFilter(), GetCount(), GetItemByZone(), GetValueByRow(), GetZone(), MODEL_ZONES_OVERVIEW(), SortFilteredZones(), and SwapZonePriority().
|
private |
Definition at line 135 of file model_zones_overview.h.
Referenced by GetValueByRow(), and MODEL_ZONES_OVERVIEW().
|
private |
Definition at line 134 of file model_zones_overview.h.
Referenced by MODEL_ZONES_OVERVIEW(), and OnRowCountChange().
|
private |
Definition at line 138 of file model_zones_overview.h.
Referenced by ApplyFilter(), EnableFitterByName(), and MODEL_ZONES_OVERVIEW().
|
private |
Definition at line 139 of file model_zones_overview.h.
Referenced by ApplyFilter(), EnableFitterByNet(), and MODEL_ZONES_OVERVIEW().
|
private |
Definition at line 136 of file model_zones_overview.h.
Referenced by ApplyFilter(), ClearFilter(), MODEL_ZONES_OVERVIEW(), and SwapZonePriority().