37#include <boost/test/unit_test.hpp>
50#include <wx/filename.h>
51#include <wx/stdpaths.h>
59 wxString tempDir = wxStandardPaths::Get().GetTempDir();
60 wxString projectPath = tempDir + wxFileName::GetPathSeparator()
61 + wxT(
"test_issue24335.kicad_pro" );
65 m_schematic = std::make_unique<SCHEMATIC>(
nullptr );
76 if( wxFileExists( file ) )
92 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
100 group->AddItem( symbol );
110 group->SetSelected();
115 group->ClearSelected();
122 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
154 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
164 group->AddItem( symbol );
172 group->SetSelected();
180 SCH_SCREEN* screen = m_schematic->GetTopLevelSheets()[0]->GetScreen();
188 group->AddItem( wire );
191 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