|
KiCad PCB EDA Suite
|
#include <dialogs/dialog_constraint_value.h>#include <confirm.h>#include <pcb_base_frame.h>#include <board.h>#include <board_commit.h>#include <pcb_shape.h>#include <constraints/board_constraint_adapter.h>#include <widgets/unit_binder.h>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). | |
| 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().