41 std::vector<long> item = { aItemRow };
51 m_columns.emplace_back( wxT(
"Reference" ), 1 );
52 m_columns.emplace_back( wxT(
"Value" ), 2 );
53 m_columns.emplace_back( wxT(
"Layer" ), 1 );
71 || fp->Reference().Matches( frp,
nullptr )
72 || fp->Value().Matches( frp,
nullptr ) )
103 std::vector<EDA_ITEM*> selectedItems;
105 for(
long row : aItemRows )
107 if( row >= 0 && row < (
long)
m_hitlist.size() )
110 selectedItems.push_back( fp );
116 if( selectedItems.size() )
126 m_columns.emplace_back( wxT(
"Name" ), 2 );
127 m_columns.emplace_back( wxT(
"Net" ), 1 );
128 m_columns.emplace_back( wxT(
"Layer" ), 1 );
129 m_columns.emplace_back( wxT(
"Priority" ), 1 );
146 ZONE* zoneItem =
dynamic_cast<ZONE*
>( item );
148 if( zoneItem && ( aQuery.IsEmpty() || zoneItem->
Matches( frp,
nullptr ) ) )
166 wxArrayString layers;
172 return wxJoin( layers,
',' );
181 return wxEmptyString;
187 std::vector<EDA_ITEM*> selectedItems;
189 for(
long row : aItemRows )
191 if( row >= 0 && row < (
long)
m_hitlist.size() )
194 selectedItems.push_back( zone );
200 if( selectedItems.size() )
210 m_columns.emplace_back( wxT(
"Type" ), 1 );
211 m_columns.emplace_back( wxT(
"Text" ), 3 );
212 m_columns.emplace_back( wxT(
"Layer" ), 1 );
232 if( textItem && ( aQuery.IsEmpty() || textItem->
Matches( frp,
nullptr ) ) )
234 else if( textBoxItem && ( aQuery.IsEmpty() || textBoxItem->
Matches( frp,
nullptr ) ) )
251 return _(
"Textbox" );
261 return text->GetLayerName();
267 return wxEmptyString;
273 std::vector<EDA_ITEM*> selectedItems;
275 for(
long row : aItemRows )
277 if( row >= 0 && row < (
long)
m_hitlist.size() )
280 selectedItems.push_back(
text );
286 if( selectedItems.size() )
296 m_columns.emplace_back( wxT(
"Name" ), 2 );
297 m_columns.emplace_back( wxT(
"Class" ), 2 );
313 if( net && ( aQuery.IsEmpty() || net->Matches( frp,
nullptr ) ) )
328 return _(
"No Net" );
338 return wxEmptyString;
347 std::vector<NETINFO_ITEM*> selectedItems;
349 for(
long row : aItemRows )
351 if( row >= 0 && row < (
long)
m_hitlist.size() )
wxString GetNetname() const
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
wxString GetLayerName() const
Return the name of the PCB layer on which the item resides.
Information pertinent to a Pcbnew printed circuit board.
const NETINFO_LIST & GetNetInfo() const
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
FOOTPRINTS & Footprints()
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
void SetHighlight(bool aEnabled, int aNetcode=-1, bool aMulti=false)
Turns on/off highlighting.
void UpdateAllLayersColor()
Apply the new coloring scheme to all layers.
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
LSEQ Seq(const PCB_LAYER_ID *aWishListSequence, unsigned aCount) const
Return an LSEQ from the union of this LSET and a desired sequence.
const wxString GetName() const
Handle the data for a net.
const wxString & GetNetname() const
void ActivateItem(long aItemRow) override
int Search(const wxString &aQuery) override
std::vector< NETINFO_ITEM * > m_hitlist
NETS_SEARCH_HANDLER(PCB_EDIT_FRAME *aFrame)
void SelectItems(std::vector< long > &aItemRows) override
wxString GetResultCell(int aRow, int aCol) override
static TOOL_ACTION properties
Activation of the edit tool.
static TOOL_ACTION selectionClear
Clear the current selection.
static TOOL_ACTION selectItems
Select a list of items (specified as the event parameter)
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
virtual KIGFX::PCB_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
The main frame for Pcbnew.
void ShowBoardSetupDialog(const wxString &aInitialPage=wxEmptyString)
void ActivateItem(long aItemRow) override
PCB_SEARCH_HANDLER(wxString aName, PCB_EDIT_FRAME *aFrame)
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
static bool ClassOf(const EDA_ITEM *aItem)
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
static bool ClassOf(const EDA_ITEM *aItem)
std::vector< std::pair< wxString, int > > m_columns
virtual void SelectItems(std::vector< long > &aItemRows)
int Search(const wxString &aQuery) override
void SelectItems(std::vector< long > &aItemRows) override
wxString GetResultCell(int aRow, int aCol) override
std::vector< BOARD_ITEM * > m_hitlist
TEXT_SEARCH_HANDLER(PCB_EDIT_FRAME *aFrame)
wxString MessageTextFromValue(double aValue, bool aAddUnitLabel=true, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
A lower-precision version of StringFromValue().
ZONE_SEARCH_HANDLER(PCB_EDIT_FRAME *aFrame)
wxString GetResultCell(int aRow, int aCol) override
int Search(const wxString &aQuery) override
std::vector< ZONE * > m_hitlist
void SelectItems(std::vector< long > &aItemRows) override
Handle a list of polygons defining a copper zone.
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
wxString GetZoneName() const
virtual LSET GetLayerSet() const override
Return a std::bitset of all layers on which the item physically resides.
unsigned GetAssignedPriority() const
PCB_LAYER_ID
A quick note on layer IDs:
wxString GetText(EDA_UNITS aUnits, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Get the units string for a given units type.
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
wxString UnescapeString(const wxString &aSource)
EDA_SEARCH_MATCH_MODE matchMode