25#include <boost/test/unit_test.hpp>
35 const wxString& aFileName )
59 BOOST_CHECK( virtualRoot.
GetScreen() ==
nullptr );
86 for(
int i = 2; i <= 3; i++ )
89 wxString::Format(
"sheet%d.kicad_sch", i ) );
186 BOOST_CHECK( info1 == info2 );
190 BOOST_CHECK( info1 != info3 );
virtual void SetParent(EDA_ITEM *aParent)
Holds all the data relating to one schematic.
void AddTopLevelSheet(SCH_SHEET *aSheet)
Add a new top-level sheet to the schematic.
SCH_SHEET_LIST Hierarchy() const
Return the full schematic flattened hierarchical sheet list.
SCH_SHEET * GetTopLevelSheet(int aIndex=0) const
bool RemoveTopLevelSheet(SCH_SHEET *aSheet)
Remove a top-level sheet from the schematic.
void SetTopLevelSheets(const std::vector< SCH_SHEET * > &aSheets)
std::vector< SCH_SHEET * > GetTopLevelSheets() const
Get the list of top-level sheets.
void Append(SCH_ITEM *aItem, bool aUpdateLibSymbol=true)
const KIID & GetUuid() const
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
void SetFileName(const wxString &aFilename)
void SetName(const wxString &aName)
SCH_SCREEN * GetScreen() const
void SetScreen(SCH_SCREEN *aScreen)
Set the SCH_SCREEN associated with this sheet to aScreen.
Information about a top-level schematic sheet.
KIID uuid
Unique identifier for the sheet.
wxString name
Display name for the sheet.
wxString filename
Relative path to the sheet file.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
static SCH_SHEET * createTopLevelSheet(SCHEMATIC &aSchematic, const wxString &aName, const wxString &aFileName)
BOOST_AUTO_TEST_CASE(TestVirtualRootCreation)
BOOST_CHECK_EQUAL(result, "25.4")