|
KiCad PCB EDA Suite
|
#include <memory>#include <qa_utils/wx_utils/unit_test_utils.h>#include <board.h>#include <footprint.h>#include <kicad_clipboard.h>#include <lset.h>#include <pcb_shape.h>#include <tools/pcb_selection.h>#include <constraints/pcb_constraint.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (ConstraintCopiedWhenAllMembersSelected) | |
| BOOST_AUTO_TEST_CASE (ConstraintMembersRemapAfterReUuid) | |
| BOOST_AUTO_TEST_CASE (ConstraintNotCopiedWhenPartialSelection) | |
| BOOST_AUTO_TEST_CASE (FootprintEditorCopyCarriesConstraints) | |
| BOOST_AUTO_TEST_CASE | ( | ConstraintCopiedWhenAllMembersSelected | ) |
Definition at line 73 of file test_constraint_clipboard.cpp.
References SELECTION::Add(), addSegment(), LSET::AllCuMask(), LSET::AllTechMask(), PCB_CONSTRAINT::GetConstraintType(), PCB_CONSTRAINT::GetMembers(), EDA_ITEM::m_Uuid, MM, PARALLEL, roundTrip(), and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | ConstraintMembersRemapAfterReUuid | ) |
Definition at line 106 of file test_constraint_clipboard.cpp.
References PCB_CONSTRAINT::AddMember(), addSegment(), PCB_CONSTRAINT::GetMembers(), EDA_ITEM::m_Uuid, MM, PARALLEL, PCB_CONSTRAINT::RemapKIIDs(), and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | ConstraintNotCopiedWhenPartialSelection | ) |
Definition at line 149 of file test_constraint_clipboard.cpp.
References SELECTION::Add(), addSegment(), LSET::AllCuMask(), LSET::AllTechMask(), EDA_ITEM::m_Uuid, MM, PARALLEL, roundTrip(), and WHOLE.
| BOOST_AUTO_TEST_CASE | ( | FootprintEditorCopyCarriesConstraints | ) |
Definition at line 173 of file test_constraint_clipboard.cpp.
References FOOTPRINT::Add(), SELECTION::Add(), LSET::AllCuMask(), LSET::AllTechMask(), BOOST_REQUIRE(), empty(), F_SilkS, FOOTPRINT, EDA_ITEM::m_Uuid, MM, PARALLEL, CLIPBOARD_IO::Parse(), PCB_FOOTPRINT_T, pcbIUScale, CLIPBOARD_IO::SaveSelection(), SEGMENT, CLIPBOARD_IO::SetBoard(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), CLIPBOARD_IO::SetReader(), PCB_SHAPE::SetStart(), PCB_SHAPE::SetStroke(), CLIPBOARD_IO::SetWriter(), SOLID, EDA_ITEM::Type(), and WHOLE.