20 #ifndef KICAD_SCHEMATIC_H 21 #define KICAD_SCHEMATIC_H 78 return wxT(
"SCHEMATIC" );
152 std::shared_ptr<BUS_ALIAS>
GetBusAlias(
const wxString& aLabel )
const;
180 void Show(
int nestLevel, std::ostream& os )
const override {}
std::vector< SCH_MARKER * > ResolveERCExclusions()
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
Container for project specific data.
SCH_SHEET_LIST GetSheets() const
Builds and returns an updated schematic hierarchy TODO: can this be cached?
virtual wxString GetClass() const override
Return the class name.
Holds all the data relating to one schematic A schematic may consist of one or more sheets (and one r...
CONNECTION_GRAPH * ConnectionGraph() const
SCH_SHEET_PATH * m_currentSheet
The sheet path of the sheet currently being edited or displayed.
Calculates the connectivity of a schematic and generates netlists.
SCHEMATIC_SETTINGS & Settings() const
bool IsValid() const
A simple test if the schematic is loaded, not a complete one.
Schematic editor (Eeschema) main window.
wxString GetFileName() const
Helper to retrieve the filename from the root sheet screen.
CONNECTION_GRAPH * m_connectionGraph
Holds and calculates connectivity information of this schematic.
std::map< wxString, std::set< wxString > > m_labelToPageRefsMap
Holds a map of labels to the page numbers that they appear on.
void SetRoot(SCH_SHEET *aRootSheet)
Initializes the schematic with a new root sheet.
std::shared_ptr< BUS_ALIAS > GetBusAlias(const wxString &aLabel) const
Returns a pointer to a bus alias object for the given label, or null if one doesn't exist.
wxString ConvertRefsToKIIDs(const wxString &aSource) const
bool ResolveCrossReference(wxString *token, int aDepth) const
Resolves text vars that refer to other items.
Container for ERC settings.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
void SetProject(PROJECT *aPrj)
SCH_SHEET * m_rootSheet
The top-level sheet in this schematic hierarchy (or potentially the only one)
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
wxString ConvertKIIDsToRefs(const wxString &aSource) const
void Reset()
Initializes this schematic to a blank one, unloading anything existing.
The base frame for deriving all KiCad main window classes.
PROJECT & Prj() const
Return a reference to the project this schematic is part of.
A base class for most all the KiCad significant classes used in schematics and boards.
These settings were stored in SCH_BASE_FRAME previously.
std::map< wxString, std::set< wxString > > & GetPageRefsMap()
ERC_SETTINGS & ErcSettings() const
SCH_SCREEN * RootScreen() const
Helper to retreive the screen of the root sheet.
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
std::vector< wxString > GetNetClassAssignmentCandidates()
Returns a list of name candidates for netclass assignment.
void SetCurrentSheet(const SCH_SHEET_PATH &aPath)
SCH_SHEET_LIST & GetFullHierarchy() const
Return the full schematic flattened hiearchical sheet list.
SCH_SHEET_PATH & CurrentSheet() const