26#ifndef MODEL_ZONES_OVERVIEW_TABLE_H
27#define MODEL_ZONES_OVERVIEW_TABLE_H
32#include <wx/dataview.h>
74 const std::map<int, wxString> ColNames = std::map<int, wxString>{
75 std::make_pair(
NAME,
_(
"Name" ) ),
76 std::make_pair(
NET,
_(
"Net" ) ),
77 std::make_pair(
LAYERS,
_(
"Layers" ) )
91 void GetValueByRow( wxVariant& aVariant,
unsigned aRow,
unsigned aCol )
const override;
93 bool SetValueByRow(
const wxVariant& aVariant,
unsigned aRow,
unsigned aCol )
override;
96 unsigned int GetCount()
const override;
114 std::optional<unsigned>
SwapZonePriority(
unsigned aDragIndex,
unsigned aDropIndex );
123 wxDataViewItem
ApplyFilter( wxString
const& aFilterText, wxDataViewItem aSelection );
131 wxDataViewItem
ClearFilter( wxDataViewItem aSelection );
Information pertinent to a Pcbnew printed circuit board.
Workaround to keep the original priorities if user didn't change any.
void EnableFitterByNet(bool aEnable)
static std::map< int, wxString > GetColumnNames()
bool SetValueByRow(const wxVariant &aVariant, unsigned aRow, unsigned aCol) override
std::optional< unsigned > MoveZoneIndex(unsigned aIndex, ZONE_INDEX_MOVEMENT aMovement)
Move selected zone up/down.
~MODEL_ZONES_OVERVIEW_TABLE() override
wxDataViewItem ApplyFilter(wxString const &aFilterText, wxDataViewItem aSelection)
Filter the zones by the filter text.
void GetValueByRow(wxVariant &aVariant, unsigned aRow, unsigned aCol) const override
std::vector< std::shared_ptr< MANAGED_ZONE > > m_filteredZones
void SortZoneContainers()
ZONE * GetZone(wxDataViewItem const &item) const
unsigned int GetAllZonesCount() const
std::vector< std::shared_ptr< MANAGED_ZONE > > m_allZones
std::optional< unsigned > SwapZonePriority(unsigned aDragIndex, unsigned aDropIndex)
Swap two zone while drag && drop.
wxDataViewItem GetItemByZone(ZONE *) const
wxDataViewItem ClearFilter(wxDataViewItem aSelection)
Clear up the filter.
PCB_BASE_FRAME * m_PCB_FRAME
void EnableFitterByName(bool aEnable)
unsigned int GetCount() const override
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
Handle a list of polygons defining a copper zone.
wxDECLARE_EVENT(EVT_ZONES_OVERVIEW_COUNT_CHANGE, wxCommandEvent)