35#include <boost/test/unit_test.hpp>
45#include <wx/filename.h>
46#include <wx/stdpaths.h>
55 wxString tempDir = wxStandardPaths::Get().GetTempDir();
56 wxString projectPath = tempDir + wxFileName::GetPathSeparator() + wxT(
"test_sch_item_swap_group.kicad_pro" );
60 m_schematic = std::make_unique<SCHEMATIC>(
nullptr );
71 if( wxFileExists( file ) )
87 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
95 group->AddItem( wire );
104 image->SetParentGroup(
nullptr );
115 BOOST_CHECK(
group->GetItems().count( wire ) == 1 );
virtual EDA_GROUP * GetParentGroup() const
A set of SCH_ITEMs (i.e., without duplicates).
void SwapItemData(SCH_ITEM *aImage)
Swap data between aItem and aImage.
Segment description base class to describe items which have 2 end points (track, wire,...
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
VECTOR2I GetEndPoint() const
void SetEndPoint(const VECTOR2I &aPosition)
void Append(SCH_ITEM *aItem, bool aUpdateLibSymbol=true)
Class to handle a set of SCH_ITEMs.
SETTINGS_MANAGER m_settingsManager
std::vector< wxString > m_tempFiles
std::unique_ptr< SCHEMATIC > m_schematic
SCH_ITEM_SWAP_GROUP_FIXTURE()
~SCH_ITEM_SWAP_GROUP_FIXTURE()
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
VECTOR2< int32_t > VECTOR2I