KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_constraint_value.cpp File Reference

Go to the source code of this file.

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).
 

Function Documentation

◆ EditConstraintValue()

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().