20#ifndef DIALOG_CONSTRAINT_VALUE_H_
21#define DIALOG_CONSTRAINT_VALUE_H_
DIALOG_CONSTRAINT_VALUE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Constraint Value"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE)
UNIT_BINDER * m_valueBinder
bool GetDriving() const
True if the constraint should drive (lock) the geometry; false for a reference dimension.
DIALOG_CONSTRAINT_VALUE(PCB_BASE_FRAME *aParent, PCB_CONSTRAINT_TYPE aType, double aValue, bool aDriving)
~DIALOG_CONSTRAINT_VALUE() override
double GetConstraintValue()
The entered value, in IU for a length/radius or in degrees for an angle.
bool TransferDataFromWindow() override
Veto an angle outside the closed [0, 180] degree corner-angle range.
void updateValueEnabled()
A reference (non-driving) constraint only measures, so its value is read-only.
PCB_CONSTRAINT_TYPE m_type
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
A geometric constraint between board items (issue #2329).
bool EditConstraintValue(PCB_BASE_FRAME *aFrame, PCB_CONSTRAINT *aConstraint, BOARD_COMMIT &aCommit)
Show the value dialog for a valued constraint and stage the change in aCommit (the caller pushes).
PCB_CONSTRAINT_TYPE
The geometric relationship a PCB_CONSTRAINT enforces between its members.