21 #ifndef KICAD_PROJECT_FILE_H 22 #define KICAD_PROJECT_FILE_H 75 bool SaveToFile(
const wxString& aDirectory =
"",
bool aForce =
false )
override;
PROJECT * m_project
A link to the owning PROJECT.
void SetProject(PROJECT *aProject)
std::map< wxString, wxString > m_TextVars
std::vector< wxString > m_PinnedSymbolLibs
Below are project-level settings that have not been moved to a dedicated file.
std::vector< wxString > m_PinnedFootprintLibs
The list of pinned footprint libraries.
Container for project specific data.
wxArrayString m_LegacyLibNames
std::vector< FILE_INFO_PAIR > m_sheets
An list of schematic sheets in this project.
wxString getLegacyFileExt() const override
bool SaveToFile(const wxString &aDirectory="", bool aForce=false) override
NET_SETTINGS & NetSettings()
wxString m_PcbLastPath[LAST_PATH_SIZE]
MRU path storage.
PROJECT_FILE is the backing store for a PROJECT, in JSON format.
void to_json(nlohmann::json &aJson, const FILE_INFO_PAIR &aPair)
std::pair< KIID, wxString > FILE_INFO_PAIR
For files like sheets and boards, a pair of that object KIID and display name Display name is typical...
std::shared_ptr< NET_SETTINGS > m_NetSettings
Net settings for this project (owned here) NOTE: If we go multi-board in the future,...
virtual ~PROJECT_FILE()=default
wxString m_BoardPageLayoutDescrFile
PcbNew params.
std::vector< wxString > m_EquivalenceFiles
CvPcb params.
NET_SETTINGS stores various net-related settings in a project context.
ERC_SETTINGS * m_ErcSettings
Eeschema params.
SCHEMATIC_SETTINGS * m_SchematicSettings
wxString getFileExt() const override
Container for ERC settings.
LAST_PATH_TYPE
For storing PcbNew MRU paths of various types.
void from_json(const nlohmann::json &aJson, FILE_INFO_PAIR &aPair)
std::vector< FILE_INFO_PAIR > & GetSheets()
BOARD_DESIGN_SETTINGS * m_BoardSettings
Board design settings for this project's board.
std::vector< FILE_INFO_PAIR > & GetBoards()
virtual bool MigrateFromLegacy(wxConfigBase *aCfg) override
Migrates from wxConfig to JSON-based configuration.
These settings were stored in SCH_BASE_FRAME previously.
std::vector< LAYER_PRESET > m_LayerPresets
List of stored layer presets.
PROJECT_FILE(const wxString &aFullPath)
Constructs the project file for a project.
std::vector< FILE_INFO_PAIR > m_boards
A list of board files in this project.
Container for design settings for a BOARD object.