|
KiCad PCB EDA Suite
|
Go to the source code of this file.
Classes | |
| class | DIALOG_CONSTRAINT_VALUE |
| Value entry for a dimensional geometric constraint (issue #2329): a UNIT_BINDER for the length (or angle, in degrees) plus a driving/reference toggle. More... | |
Functions | |
| 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). | |
| 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).
Returns true if the user accepted a change; false for a valueless constraint or cancel. Shared by the constraint panel and the on-canvas double-click edit.
Definition at line 128 of file dialog_constraint_value.cpp.
References _, ApplyConstraintImmediately(), PCB_BASE_FRAME::GetBoard(), PCB_CONSTRAINT::GetConstraintType(), DIALOG_CONSTRAINT_VALUE::GetConstraintValue(), DIALOG_CONSTRAINT_VALUE::GetDriving(), PCB_CONSTRAINT::GetValue(), PCB_CONSTRAINT::HasValue(), PCB_CONSTRAINT::IsDriving(), COMMIT::Modify(), BOARD_COMMIT::Push(), PCB_CONSTRAINT::SetDriving(), PCB_CONSTRAINT::SetValue(), and DIALOG_SHIM::ShowModal().
Referenced by CONSTRAINT_EDIT_TOOL::editConstraint().