21#ifndef PANEL_SETUP_CONSTRAINTS_H
22#define PANEL_SETUP_CONSTRAINTS_H
37class wxPopupTransientWindow;
Container for design settings for a BOARD object.
The custom rules of one board, held in memory while Board Setup is open.
A warning icon drawn inside the right edge of a field, left of its dropdown button when it has one,...
PANEL_SETUP_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)
UNIT_BINDER m_minGrooveWidth
PANEL_SETUP_CONSTRAINTS(wxWindow *aParentWindow, PCB_EDIT_FRAME *aFrame, DRC_RULE_DOCUMENT *aDocument, BOARD_DESIGN_SETTINGS &aSettings)
DRC_RULE_DOCUMENT * m_document
wxPopupTransientWindow * m_popup
The popup a hover or a click opened, while it is up.
UNIT_BINDER m_holeClearance
void RefreshDefaults()
Reads the values a rule page edits back into their fields.
wxString m_hoverSetting
The field a hover is waiting to open, and the icon it would hang under.
static void CopySettings(const BOARD_DESIGN_SETTINGS &aFrom, BOARD_DESIGN_SETTINGS &aTo)
Copies every value this page edits, which is what the Constraints import group carries.
void closeHoveredPopup()
Close a popup opened by hovering once the pointer has left both it and its icon.
UNIT_BINDER m_silkClearance
UNIT_BINDER m_holeToHoleMin
std::vector< CONSTRAINT_FIELD > m_fields
int m_spokeCountLoaded
The spoke count as this page last read it.
UNIT_BINDER m_trackMinWidth
UNIT_BINDER m_throughHoleMin
UNIT_BINDER m_uviaMinSize
UNIT_BINDER m_uviaMinDrill
BOARD_DESIGN_SETTINGS * m_BrdSettings
wxString m_spokeCountPage
The rule page that also holds the spoke count, a spin control rather than a bound field.
void showOverridingRules(const wxString &aSetting, wxWindow *aAnchor, bool aFromHover)
Pop up what a board constraint is read with, each entry a link to where it is set.
bool TransferDataToWindow() override
UNIT_BINDER m_viaMinAnnulus
wxWindow * m_popupAnchor
The icon that popup belongs to, which the pointer may return to without closing it.
bool m_popupFromHover
A popup a click opened stays until it is dismissed; one a hover opened follows the pointer.
void applyValues(BOARD_DESIGN_SETTINGS &aSettings) const
~PANEL_SETUP_CONSTRAINTS() override
UNIT_BINDER m_minLineWidth
UNIT_BINDER m_minTextHeight
wxTimer m_validationTimer
UNIT_BINDER m_minClearance
UNIT_BINDER m_edgeClearance
wxWindow * m_mutedField
The field whose own help is held back while a popup covers it, and the text to give back.
void updateWarnings()
Show a warning icon, with the reason as its tooltip, over each field whose value has an issue.
bool TransferDataFromWindow() override
The main frame for Pcbnew.
int m_Loaded
The value as this page last read it, so an untouched field does not write back over an edit made to t...
FIELD_WARNING_ICON * m_Override
Opens the list of what this value is read with, where anything else can set it.
FIELD_WARNING_ICON * m_Warning
int BOARD_DESIGN_SETTINGS::* m_Member