39#define PROJECT_VAR_NAME wxT( "KIPRJMOD" )
42#define NAMELESS_PROJECT _( "untitled" )
87 virtual std::map<wxString, wxString>&
GetTextVars()
const;
92 virtual void ApplyTextVars(
const std::map<wxString, wxString>& aVarsMap );
163 void PinLibrary(
const wxString& aLibrary,
bool isSymbolLibrary );
164 void UnpinLibrary(
const wxString& aLibrary,
bool isSymbolLibrary );
270 virtual const wxString
AbsolutePath(
const wxString& aFileName )
const;
318 const wxString
libTableName(
const wxString& aLibTableName )
const;
Provide an extensible class to resolve 3D model paths.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
A PROJECT can hold stuff it knows nothing about, in the form of _ELEM derivatives.
The backing store for a PROJECT, in JSON format.
The project local settings are things that are attached to a particular project, but also might be pa...
Container for project specific data.
PROJECT_FILE * m_projectFile
Backing store for project data – owned by SETTINGS_MANAGER.
virtual void SetReadOnly(bool aReadOnly=true)
virtual void setProjectFile(PROJECT_FILE *aFile)
Set the backing store file for this project.
virtual bool IsReadOnly() const
virtual const wxString GetProjectFullName() const
Return the full path and name of the project.
void UnpinLibrary(const wxString &aLibrary, bool isSymbolLibrary)
RSTRING_T
Retain a number of project specific wxStrings, enumerated here:
@ PCB_FOOTPRINT_EDITOR_FP_NAME
@ PCB_FOOTPRINT_EDITOR_LIB_NICKNAME
@ PCB_FOOTPRINT_VIEWER_FP_NAME
@ PCB_FOOTPRINT_VIEWER_LIB_NICKNAME
wxString m_pro_date_and_time
std::map< KIID, wxString > m_sheetNames
virtual void setLocalSettings(PROJECT_LOCAL_SETTINGS *aSettings)
Set the local settings backing store.
virtual const wxString GetProjectPath() const
Return the full path of the project.
virtual const wxString GetProjectName() const
Return the short name of the project.
int m_netclassesTicker
Update counter on netclasses.
virtual const wxString SymbolLibTableName() const
Return the path and file name of this projects symbol library table.
virtual FP_LIB_TABLE * PcbFootprintLibs(KIWAY &aKiway)
Return the table of footprint libraries.
virtual void ApplyTextVars(const std::map< wxString, wxString > &aVarsMap)
Applies the given var map, it will create or update existing vars.
int GetNetclassesTicker() const
virtual PROJECT_LOCAL_SETTINGS & GetLocalSettings() const
virtual void ElemsClear()
Delete all the _ELEMs and set their pointers to NULL.
void PinLibrary(const wxString &aLibrary, bool isSymbolLibrary)
void IncrementNetclassesTicker()
virtual bool TextVarResolver(wxString *aToken) const
virtual PROJECT_FILE & GetProjectFile() const
virtual const wxString GetSheetName(const KIID &aSheetID)
Return the name of the sheet identified by the given UUID.
int GetTextVarsTicker() const
wxString m_rstrings[RSTRING_COUNT]
virtual const wxString FootprintLibTblName() const
Returns the path and filename of this project's footprint library table.
virtual _ELEM * GetElem(ELEM_T aIndex)
Get and set the elements for this project.
friend class TEST_NETLISTS_FIXTURE
_ELEM * m_elems[ELEM_COUNT]
virtual void SetElem(ELEM_T aIndex, _ELEM *aElem)
virtual void SetRString(RSTRING_T aStringId, const wxString &aString)
Store a "retained string", which is any session and project specific string identified in enum RSTRIN...
wxFileName m_project_name
<fullpath>/<basename>.pro
void Clear()
Clear the _ELEMs and RSTRINGs.
PROJECT_LOCAL_SETTINGS * m_localSettings
Backing store for project local settings – owned by SETTINGS_MANAGER.
virtual const wxString AbsolutePath(const wxString &aFileName) const
Fix up aFileName if it is relative to the project's directory to be an absolute path and filename.
int m_textVarsTicker
Update counter on text vars.
const wxString libTableName(const wxString &aLibTableName) const
Return the full path and file name of the project specific library table aLibTableName.
virtual void setProjectFullName(const wxString &aFullPathAndName)
Set the full directory, basename, and extension of the project.
bool m_readOnly
No project files will be written to disk.
void IncrementTextVarsTicker()
virtual const wxString GetProjectDirectory() const
Return the full path of the project DIRECTORY.
virtual std::map< wxString, wxString > & GetTextVars() const
virtual const wxString & GetRString(RSTRING_T aStringId)
Return a "retained string", which is any session and project specific string identified in enum RSTRI...
ELEM_T
The set of #_ELEMs that a PROJECT can hold.
virtual bool IsNullProject() const
Check if this project is a null project (i.e.
Cache for storing the 3D shapes.
Look for files in a number of paths.
A collection of SYMBOL_LIB objects.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.