32 #include <wx/string.h> 33 #include <wx/filename.h> 38 #define PROJECT_VAR_NAME wxT( "KIPRJMOD" ) 41 #define NAMELESS_PROJECT wxT( "noname" ) 88 virtual std::map<wxString, wxString>&
GetTextVars()
const;
249 virtual const wxString
AbsolutePath(
const wxString& aFileName )
const;
266 #if defined( PCBNEW ) || defined( CVPCB ) 279 S3D_CACHE* Get3DCacheManager(
bool updateProjDir =
false );
286 #if defined( EESCHEMA ) 340 const wxString
libTableName(
const wxString& aLibTableName )
const;
_ELEM * m_elems[ELEM_COUNT]
virtual bool IsReadOnly() const
void Clear()
Clear the _ELEMs and RSTRINGs.
virtual std::map< wxString, wxString > & GetTextVars() const
Container for project specific data.
virtual PROJECT_FILE & GetProjectFile() const
virtual void setLocalSettings(PROJECT_LOCAL_SETTINGS *aSettings)
Set the local settings backing store.
The project local settings are things that are attached to a particular project, but also might be pa...
Look for files in a number of paths.
virtual _ELEM * GetElem(ELEM_T aIndex)
Get and set the elements for this project.
Cache for storing the 3D shapes.
virtual const wxString GetProjectPath() const
Return the full path of the project.
The backing store for a PROJECT, in JSON format.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
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.
virtual PROJECT_LOCAL_SETTINGS & GetLocalSettings() const
virtual void SetElem(ELEM_T aIndex, _ELEM *aElem)
wxFileName m_project_name
<fullpath>/<basename>.pro
virtual const wxString GetSheetName(const KIID &aSheetID)
Return the name of the sheet identified by the given UUID.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
virtual bool TextVarResolver(wxString *aToken) const
virtual const wxString GetProjectFullName() const
Return the full path and name of the project.
virtual void ElemsClear()
Delete all the _ELEMs and set their pointers to NULL.
virtual bool IsNullProject() const
Check if this project is a null project (i.e.
virtual void setProjectFullName(const wxString &aFullPathAndName)
Set the full directory, basename, and extension of the project.
virtual const wxString SymbolLibTableName() const
Return the path and file name of this projects symbol library table.
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...
virtual FP_LIB_TABLE * PcbFootprintLibs(KIWAY &aKiway)
Return the table of footprint libraries.
A collection of PART_LIB objects.
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 void SetReadOnly(bool aReadOnly=true)
Provide an extensible class to resolve 3D model paths.
A base class which establishes the interface functions ReadParam and SaveParam, which are implemented...
RSTRING_T
Retain a number of project specific wxStrings, enumerated here:
wxString m_rstrings[RSTRING_COUNT]
std::map< KIID, wxString > m_sheetNames
A PROJECT can hold stuff it knows nothing about, in the form of _ELEM derivatives.
PROJECT_FILE * m_projectFile
Backing store for project data – owned by SETTINGS_MANAGER.
virtual const wxString GetProjectName() const
Return the short name of the project.
wxString m_pro_date_and_time
True if the project is read-only: no project files will be written.
virtual void setProjectFile(PROJECT_FILE *aFile)
Set the backing store file for this project.
virtual const wxString FootprintLibTblName() const
Returns the path and filename of this project's footprint library table.
PROJECT_LOCAL_SETTINGS * m_localSettings
Backing store for project local settings – owned by SETTINGS_MANAGER.
const wxString libTableName(const wxString &aLibTableName) const
Return the full path and file name of the project specific library table aLibTableName.