20#ifndef PANEL_CONSTRAINTS_H_
21#define PANEL_CONSTRAINTS_H_
68 long columnAt(
long aRow,
const wxPoint& aPos )
const;
72 void onDelete( wxCommandEvent& aEvent )
override;
73 void onRefresh( wxCommandEvent& aEvent )
override;
PANEL_CONSTRAINTS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
PCB_BASE_EDIT_FRAME * m_frame
void RefreshList()
Rebuild the rows from the board's current constraints (solving the board diagnosis here).
long columnAt(long aRow, const wxPoint &aPos) const
The list column under aPos within row aRow, or -1.
std::vector< KIID > m_rows
void onRefresh(wxCommandEvent &aEvent) override
void onDelete(wxCommandEvent &aEvent) override
void onLeftDown(wxMouseEvent &aEvent)
const KIID & rowConstraint(long aRow) const
The KIID for a row, or niluuid if out of range.
void onRowActivated(wxListEvent &aEvent) override
void SelectConstraint(const KIID &aConstraint)
Select and reveal the row for aConstraint (e.g. when its badge is clicked on canvas).
PANEL_CONSTRAINTS(PCB_BASE_EDIT_FRAME *aFrame)
CONSTRAINT_EDIT_TOOL * constraintTool() const
The owning constraint tool, which performs all board mutation and selection; the panel only displays ...
Common, abstract interface for edit frames.
Board-wide diagnostics for the constraint overlay and info bar.