36#include <boost/test/unit_test.hpp>
49#include <wx/filename.h>
50#include <wx/stdpaths.h>
58 wxString tempDir = wxStandardPaths::Get().GetTempDir();
59 wxString projectPath = tempDir + wxFileName::GetPathSeparator()
60 + wxT(
"test_issue24335.kicad_pro" );
64 m_schematic = std::make_unique<SCHEMATIC>(
nullptr );
75 if( wxFileExists( file ) )
91 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
99 group->AddItem( symbol );
109 group->SetSelected();
114 group->ClearSelected();
121 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
153 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
163 group->AddItem( symbol );
171 group->SetSelected();
179 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
187 group->AddItem( wire );
190 group->SetSelected();
void AddItem(EDA_ITEM *aItem)
Add item to group.
virtual EDA_GROUP * GetParentGroup() const
EDA_ITEM * GetParent() const
bool HasSelectedAncestorGroup() const
A set of SCH_ITEMs (i.e., without duplicates).
Segment description base class to describe items which have 2 end points (track, wire,...
void SetEndPoint(const VECTOR2I &aPosition)
void Append(SCH_ITEM *aItem, bool aUpdateLibSymbol=true)
void SetPosition(const VECTOR2I &aPosition) override
SCH_FIELD * GetField(FIELD_T aFieldType)
Return a mandatory field in this symbol.
Class to handle a set of SCH_ITEMs.
SETTINGS_MANAGER m_settingsManager
~GROUP_MOVE_ANCESTOR_FIXTURE()
std::unique_ptr< SCHEMATIC > m_schematic
GROUP_MOVE_ANCESTOR_FIXTURE()
std::vector< wxString > m_tempFiles
@ REFERENCE
Field Reference of part, i.e. "IC21".
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(SymbolInsideSelectedGroupReportsAncestor)
VECTOR2< int32_t > VECTOR2I