KiCad PCB EDA Suite
|
Container for project specific data. More...
#include <project.h>
Classes | |
class | _ELEM |
A PROJECT can hold stuff it knows nothing about, in the form of _ELEM derivatives. More... | |
Public Types | |
enum | RSTRING_T { DOC_PATH , SCH_LIB_PATH , SCH_LIB_SELECT , SCH_LIBEDIT_CUR_LIB , SCH_LIBEDIT_CUR_SYMBOL , VIEWER_3D_PATH , VIEWER_3D_FILTER_INDEX , PCB_LIB_NICKNAME , PCB_FOOTPRINT , PCB_FOOTPRINT_EDITOR_FP_NAME , PCB_FOOTPRINT_EDITOR_LIB_NICKNAME , PCB_FOOTPRINT_VIEWER_FP_NAME , PCB_FOOTPRINT_VIEWER_LIB_NICKNAME , RSTRING_COUNT } |
Retain a number of project specific wxStrings, enumerated here: More... | |
enum | ELEM_T { ELEM_FPTBL , ELEM_SCH_SYMBOL_LIBS , ELEM_SCH_SEARCH_STACK , ELEM_3DCACHE , ELEM_SYMBOL_LIB_TABLE , ELEM_COUNT } |
The set of #_ELEMs that a PROJECT can hold. More... | |
Public Member Functions | |
PROJECT () | |
virtual | ~PROJECT () |
virtual bool | TextVarResolver (wxString *aToken) const |
virtual std::map< wxString, wxString > & | GetTextVars () const |
virtual const wxString | GetProjectFullName () const |
Return the full path and name of the project. More... | |
virtual const wxString | GetProjectPath () const |
Return the full path of the project. More... | |
virtual const wxString | GetProjectName () const |
Return the short name of the project. More... | |
virtual bool | IsNullProject () const |
Check if this project is a null project (i.e. More... | |
virtual bool | IsReadOnly () const |
virtual void | SetReadOnly (bool aReadOnly=true) |
virtual const wxString | GetSheetName (const KIID &aSheetID) |
Return the name of the sheet identified by the given UUID. More... | |
virtual const wxString | FootprintLibTblName () const |
Returns the path and filename of this project's footprint library table. More... | |
virtual const wxString | SymbolLibTableName () const |
Return the path and file name of this projects symbol library table. More... | |
void | PinLibrary (const wxString &aLibrary, bool isSymbolLibrary) |
void | UnpinLibrary (const wxString &aLibrary, bool isSymbolLibrary) |
virtual PROJECT_FILE & | GetProjectFile () const |
virtual PROJECT_LOCAL_SETTINGS & | GetLocalSettings () const |
virtual const wxString & | GetRString (RSTRING_T aStringId) |
Return a "retained string", which is any session and project specific string identified in enum RSTRING_T. More... | |
virtual void | SetRString (RSTRING_T aStringId, const wxString &aString) |
Store a "retained string", which is any session and project specific string identified in enum RSTRING_T. More... | |
virtual _ELEM * | GetElem (ELEM_T aIndex) |
Get and set the elements for this project. More... | |
virtual void | SetElem (ELEM_T aIndex, _ELEM *aElem) |
virtual void | ElemsClear () |
Delete all the _ELEMs and set their pointers to NULL. More... | |
void | Clear () |
Clear the _ELEMs and RSTRINGs. More... | |
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. More... | |
virtual FP_LIB_TABLE * | PcbFootprintLibs (KIWAY &aKiway) |
Return the table of footprint libraries. More... | |
Private Member Functions | |
virtual void | setProjectFullName (const wxString &aFullPathAndName) |
Set the full directory, basename, and extension of the project. More... | |
virtual void | setProjectFile (PROJECT_FILE *aFile) |
Set the backing store file for this project. More... | |
virtual void | setLocalSettings (PROJECT_LOCAL_SETTINGS *aSettings) |
Set the local settings backing store. More... | |
const wxString | libTableName (const wxString &aLibTableName) const |
Return the full path and file name of the project specific library table aLibTableName. More... | |
Private Attributes | |
wxFileName | m_project_name |
<fullpath>/<basename>.pro More... | |
wxString | m_pro_date_and_time |
True if the project is read-only: no project files will be written. More... | |
bool | m_readOnly |
PROJECT_FILE * | m_projectFile |
Backing store for project data – owned by SETTINGS_MANAGER. More... | |
PROJECT_LOCAL_SETTINGS * | m_localSettings |
Backing store for project local settings – owned by SETTINGS_MANAGER. More... | |
std::map< KIID, wxString > | m_sheetNames |
wxString | m_rstrings [RSTRING_COUNT] |
_ELEM * | m_elems [ELEM_COUNT] |
Friends | |
class | SETTINGS_MANAGER |
class | TEST_NETLISTS_FIXTURE |
Container for project specific data.
Because it is in the neutral program top, which is not linked to by subsidiary DSOs, any functions in this interface must be virtual.
enum PROJECT::ELEM_T |
enum PROJECT::RSTRING_T |
Retain a number of project specific wxStrings, enumerated here:
PROJECT::PROJECT | ( | ) |
Definition at line 44 of file project.cpp.
References m_elems.
|
virtual |
Definition at line 64 of file project.cpp.
References ElemsClear().
|
virtual |
Fix up aFileName if it is relative to the project's directory to be an absolute path and filename.
This intends to overcome the now missing chdir() into the project directory.
Definition at line 305 of file project.cpp.
References FN_NORMALIZE_FLAGS, and GetProjectFullName().
Referenced by PCB_EDIT_FRAME::doAutoSave(), SCH_EDIT_FRAME::doCloseWindow(), PCB_EDIT_FRAME::Files_io_from_id(), PCB_BASE_EDIT_FRAME::GetDesignRulesPath(), DIALOG_GENDRILL::OnGenReportFile(), SCH_EDIT_FRAME::OnOpenCvpcb(), SCH_EDIT_FRAME::OnOpenPcbnew(), DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked(), DIALOG_EXPORT_SVG::OnOutputDirectoryBrowseClicked(), DIALOG_GEN_FOOTPRINT_POSITION::OnOutputDirectoryBrowseClicked(), DIALOG_GENDRILL::OnOutputDirectoryBrowseClicked(), DIALOG_PLOT::OnOutputDirectoryBrowseClicked(), DIALOG_SYMBOL_FIELDS_TABLE::OnOutputFileBrowseClicked(), SCH_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::PrintPage(), SIM_LIB_MGR::ResolveLibraryPath(), SCH_EDIT_FRAME::SaveProject(), SCH_EDIT_FRAME::saveSchematicFile(), SIMULATOR_CONTROL::SaveWorkbook(), DIALOG_SHEET_PROPERTIES::TransferDataFromWindow(), SIMULATOR_FRAME::updateTitle(), and WriteDRCReport().
|
inline |
Clear the _ELEMs and RSTRINGs.
Definition at line 239 of file project.h.
References ElemsClear(), RSTRING_COUNT, and SetRString().
Referenced by setProjectFullName().
|
virtual |
Delete all the _ELEMs and set their pointers to NULL.
Definition at line 53 of file project.cpp.
References arrayDim(), m_elems, and SetElem().
Referenced by Clear(), and ~PROJECT().
|
virtual |
Returns the path and filename of this project's footprint library table.
This project specific footprint library table not the global one.
Definition at line 150 of file project.cpp.
References libTableName().
Referenced by InvokePcbLibTableEditor(), PCB_EDIT_FRAME::OpenProjectFiles(), and PcbFootprintLibs().
|
virtual |
Get and set the elements for this project.
This is a cross module API, therefore the #_ELEM destructor is virtual and can point to a destructor function in another link image. Be careful that that program module is resident at time of destruction.
Summary: -#) cross module API. -#) PROJECT knows nothing about #_ELEM objects except how to delete them and set and get pointers to them.
Definition at line 284 of file project.cpp.
References arrayDim(), and m_elems.
Referenced by PcbFootprintLibs(), and LEGACY_RESCUER::WriteRescueLibrary().
|
inlinevirtual |
Definition at line 155 of file project.h.
References m_localSettings.
Referenced by BOARD::GetVisibleElements(), BOARD::GetVisibleLayers(), BOARD::IsElementVisible(), BOARD::IsLayerVisible(), PCB_EDIT_FRAME::LoadProjectSettings(), EDA_BASE_FRAME::LoadWindowState(), PCB_EDIT_FRAME::onBoardLoaded(), KICAD_MANAGER_FRAME::OnIdle(), PCB_EDIT_FRAME::OpenProjectFiles(), APPEARANCE_CONTROLS::rebuildNets(), SETTINGS_MANAGER::SaveProject(), KICAD_MANAGER_CONTROL::SaveProjectAs(), SETTINGS_MANAGER::SaveProjectAs(), SETTINGS_MANAGER::SaveProjectCopy(), PCB_EDIT_FRAME::saveProjectSettings(), EDA_BASE_FRAME::SaveSettings(), BOARD::SetElementVisibility(), BOARD::SetVisibleLayers(), APPEARANCE_CONTROLS::showNetclass(), and SETTINGS_MANAGER::unloadProjectFile().
|
inlinevirtual |
Definition at line 149 of file project.h.
References m_projectFile.
Referenced by SYMBOL_TREE_MODEL_ADAPTER::AddLibraries(), FP_TREE_MODEL_ADAPTER::AddLibraries(), CONNECTION_GRAPH::buildConnectionGraph(), CVPCB_MAINFRAME::buildEquivalenceList(), CVPCB_MAINFRAME::BuildLibrariesListBox(), FOOTPRINT_EDIT_FRAME::buildSaveAsDialog(), SYMBOL_EDIT_FRAME::buildSaveAsDialog(), BOARD::ClearProject(), DIALOG_ASSIGN_NETCLASS::DIALOG_ASSIGN_NETCLASS(), DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP(), DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP(), SCHEMATIC::ErcSettings(), SCH_ITEM::GetEffectiveNetClass(), PCB_EDIT_FRAME::GetLastPath(), SYMBOL_LIBS::GetLibNamesAndPaths(), SCH_EDIT_FRAME::GetSchematicJunctionSize(), GetSheetName(), GetTextVars(), DIALOG_CONFIG_EQUFILES::Init(), FIELDS_GRID_TABLE< T >::initGrid(), PCB_EDIT_FRAME::LoadProjectSettings(), SIMULATOR_FRAME::LoadSettings(), DIALOG_SCHEMATIC_SETUP::onAuxiliaryAction(), DIALOG_BOARD_SETUP::onAuxiliaryAction(), DIALOG_CONFIG_EQUFILES::OnOkClick(), SCH_BASE_FRAME::PickSymbolFromLibTree(), SYMBOL_VIEWER_FRAME::ReCreateLibList(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), SCHEMATIC::Reset(), SCH_EDIT_FRAME::SaveProject(), KICAD_MANAGER_CONTROL::SaveProjectAs(), PCB_EDIT_FRAME::SaveProjectLocalSettings(), SCH_EDIT_FRAME::saveProjectSettings(), ROUTER_TOOL::saveRouterDebugLog(), SIMULATOR_FRAME::SaveSettings(), PCB_BASE_FRAME::SelectLibrary(), SCH_BASE_FRAME::SelectLibraryFromList(), PCB_EDIT_FRAME::SetLastPath(), SYMBOL_LIBS::SetLibNamesAndPaths(), SCHEMATIC::SetProject(), BOARD::SetProject(), SCHEMATIC::Settings(), SYMBOL_TREE_SYNCHRONIZING_ADAPTER::Sync(), FP_TREE_SYNCHRONIZING_ADAPTER::Sync(), DIALOG_ASSIGN_NETCLASS::TransferDataFromWindow(), and EDA_3D_VIEWER_FRAME::~EDA_3D_VIEWER_FRAME().
|
virtual |
Return the full path and name of the project.
This is the same as the name of the project file (.pro prior to version 6 and .kicad_prj from version 6 onwards) and will always be an absolute path.
Definition at line 120 of file project.cpp.
References m_project_name.
Referenced by AbsolutePath(), DIALOG_SYMBOL_REMAP::backupProject(), DIALOG_BOARD_STATISTICS::DIALOG_BOARD_STATISTICS(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), SCH_EDIT_FRAME::doCloseWindow(), BOARD_EDITOR_CONTROL::ExportNetlist(), SYMBOL_EDITOR_CONTROL::ExportSymbolAsSVG(), SYMBOL_EDITOR_CONTROL::ExportView(), BACK_ANNOTATE::FetchNetlistFromPCB(), TEST_NETLIST_EXPORTER_SPICE_FIXTURE::GetNetlistPath(), TEST_SIM_REGRESSIONS_FIXTURE::GetNetlistPath(), KICAD_MANAGER_FRAME::GetProjectFileName(), SCH_EDITOR_CONTROL::ImportFPAssignments(), libTableName(), SYMBOL_LIBS::LoadAllLibraries(), SETTINGS_MANAGER::loadProjectFile(), SCH_EDIT_FRAME::OnImportProject(), KICAD_MANAGER_FRAME::OnUnarchiveFiles(), SCH_EDIT_FRAME::OnUpdatePCB(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), SETTINGS_MANAGER::SaveProject(), SETTINGS_MANAGER::SaveProjectAs(), SETTINGS_MANAGER::SaveProjectCopy(), PCB_EDIT_FRAME::SaveProjectLocalSettings(), PCB_EDIT_FRAME::saveProjectSettings(), setProjectFullName(), EDA_3D_VIEWER_FRAME::takeScreenshot(), SETTINGS_MANAGER::UnloadProject(), SETTINGS_MANAGER::unloadProjectFile(), and SCH_EDIT_FRAME::updateAutoSaveFile().
|
virtual |
Return the short name of the project.
This is the file name without extension or path.
Definition at line 132 of file project.cpp.
References m_project_name.
Referenced by SIMULATOR_CONTROL::getDefaultFilename(), SCH_ALTIUM_PLUGIN::getLibName(), SCH_EAGLE_PLUGIN::getLibName(), SETTINGS_MANAGER::GetProjectBackupsPath(), CADSTAR_SCH_ARCHIVE_PLUGIN::Load(), SCH_EAGLE_PLUGIN::loadLibrary(), SCHEMATIC::ResolveTextVar(), KICAD_MANAGER_CONTROL::SaveProjectAs(), DIALOG_BOARD_STATISTICS::saveReportClicked(), SCH_SEXPR_PLUGIN::saveSheet(), SCH_SEXPR_PLUGIN::saveSymbol(), PROJECT_FILE::SaveToFile(), PROJECT_LOCAL_SETTINGS::SaveToFile(), SETTINGS_MANAGER::TriggerBackupIfNeeded(), and NETLIST_EXPORTER_SPICE_MODEL::WriteHead().
|
virtual |
Return the full path of the project.
This is the path of the project file and will always be an absolute path, ending with a path separator.
Definition at line 126 of file project.cpp.
References m_project_name.
Referenced by PANEL_SYM_LIB_TABLE::browseLibrariesHandler(), PCB_BASE_EDIT_FRAME::createNewLibrary(), DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS(), KICAD_MANAGER_CONTROL::Execute(), SCH_EDITOR_CONTROL::ExportSymbolsToLibrary(), SIMULATOR_CONTROL::getDefaultPath(), FOOTPRINT_LIST::GetInstance(), SCH_ALTIUM_PLUGIN::getLibFileName(), SCH_EAGLE_PLUGIN::getLibFileName(), SETTINGS_MANAGER::GetPathForSettingsFile(), SETTINGS_MANAGER::GetProjectBackupsPath(), EESCHEMA_JOBS_HANDLER::InitRenderSettings(), InvokePcbLibTableEditor(), InvokeSchEditSymbolLibTable(), EDA_DRAW_FRAME::LibraryFileBrowser(), SCH_ALTIUM_PLUGIN::Load(), CADSTAR_SCH_ARCHIVE_PLUGIN::Load(), SCH_EAGLE_PLUGIN::Load(), SCH_SEXPR_PLUGIN::Load(), SCH_LEGACY_PLUGIN::Load(), LTSPICE_SCHEMATIC::Load(), SCH_EDIT_FRAME::LoadProject(), CADSTAR_SCH_ARCHIVE_LOADER::loadSheetAndChildSheets(), CADSTAR_SCH_ARCHIVE_LOADER::loadSheets(), NormalizePath(), PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DModel(), DIALOG_SIM_MODEL< T_symbol, T_field >::onBrowseButtonClick(), WX_HTML_REPORT_PANEL::onBtnSaveToFile(), KICAD_MANAGER_FRAME::OnOpenFileInTextEditor(), DIALOG_ERC::OnSaveReport(), DIALOG_DRC::OnSaveReport(), PANEL_FP_PROPERTIES_3D_MODEL::PANEL_FP_PROPERTIES_3D_MODEL(), PANEL_SYM_LIB_TABLE::PANEL_SYM_LIB_TABLE(), SCH_ALTIUM_PLUGIN::ParseAltiumSch(), SCH_ALTIUM_PLUGIN::ParseHarnessType(), SCH_EDITOR_CONTROL::Paste(), PathIsInsideProject(), SYMBOL_EDIT_FRAME::replaceLibTableEntry(), ResolveFile(), SETTINGS_MANAGER::SaveProject(), FILENAME_RESOLVER::SetProject(), SCH_EDIT_FRAME::WriteNetListFile(), and SYMBOL_LIB_TABLE_RESCUER::WriteRescueLibrary().
|
virtual |
Return a "retained string", which is any session and project specific string identified in enum RSTRING_T.
Retained strings are not written to disk, and are therefore good only for the current session.
Definition at line 265 of file project.cpp.
References arrayDim(), and m_rstrings.
Referenced by PCB_EDIT_FRAME::ExportFootprintsToLibrary(), FOOTPRINT_VIEWER_FRAME::getCurFootprintName(), SYMBOL_EDIT_FRAME::GetCurLib(), FOOTPRINT_VIEWER_FRAME::getCurNickname(), PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DModel(), FOOTPRINT_EDIT_FRAME::restoreLastFootprint(), SYMBOL_EDIT_FRAME::saveLibrary(), and SCH_BASE_FRAME::SelectLibraryFromList().
|
virtual |
Return the name of the sheet identified by the given UUID.
Definition at line 239 of file project.cpp.
References KIID::AsString(), GetProjectFile(), and m_sheetNames.
|
virtual |
Definition at line 82 of file project.cpp.
References GetProjectFile(), and PROJECT_FILE::m_TextVars.
Referenced by PCB_BASE_EDIT_FRAME::GetContextualTextVars(), DIALOG_TEXT_PROPERTIES::getContextualTextVars(), CADSTAR_SCH_ARCHIVE_LOADER::loadTextVariables(), CADSTAR_PCB_ARCHIVE_LOADER::loadTextVariables(), NETLIST_EXPORTER_XML::makeDesignHeader(), DIALOG_SCH_FIELD_PROPERTIES::onScintillaCharAdded(), PROPERTIES_FRAME::onScintillaCharAdded(), SCH_ALTIUM_PLUGIN::ParseParameter(), BOARD::SynchronizeProperties(), TextVarResolver(), PANEL_TEXT_VARIABLES::TransferDataFromWindow(), and PANEL_TEXT_VARIABLES::TransferDataToWindow().
|
virtual |
Check if this project is a null project (i.e.
the default project object created when no real project is open).
The null project still presents all the same project interface, but is not backed by any files, so saving it makes no sense.
Definition at line 138 of file project.cpp.
References m_project_name.
Referenced by AskSaveBoardFileName(), SCH_EDITOR_CONTROL::ExportSymbolsToLibrary(), InvokePcbLibTableEditor(), InvokeSchEditSymbolLibTable(), IsReadOnly(), EDA_DRAW_FRAME::LibraryFileBrowser(), SYMBOL_LIBS::LoadAllLibraries(), PCB_EDIT_FRAME::SaveProjectLocalSettings(), BOARD::SynchronizeProperties(), PANEL_SETUP_RULES::TransferDataFromWindow(), and PANEL_SETUP_RULES::TransferDataToWindow().
|
inlinevirtual |
Definition at line 125 of file project.h.
References IsNullProject(), and m_readOnly.
Referenced by SETTINGS_MANAGER::SaveProject(), and SETTINGS_MANAGER::SaveProjectAs().
|
private |
Return the full path and file name of the project specific library table aLibTableName.
Definition at line 194 of file project.cpp.
References GetProjectFullName(), KIPLATFORM::ENV::GetUserConfigPath(), and path.
Referenced by FootprintLibTblName(), and SymbolLibTableName().
|
virtual |
Return the table of footprint libraries.
Requires an active Kiway as this is fetched from Pcbnew.
Definition at line 324 of file project.cpp.
References _, DisplayErrorMessage(), ELEM_FPTBL, KIWAY::FACE_PCB, FootprintLibTblName(), FP_LIB_TABLE_T, GetElem(), kiface, KIWAY::KiFACE(), KIFACE_NEW_FOOTPRINT_TABLE, LIB_TABLE::Load(), SetElem(), FP_LIB_TABLE::Type(), and IO_ERROR::What().
Referenced by PCB_BASE_EDIT_FRAME::AddLibrary(), EXPORTER_STEP::buildFootprint3DShapes(), CVPCB_MAINFRAME::BuildLibrariesListBox(), FOOTPRINT_EDIT_FRAME::buildSaveAsDialog(), FOOTPRINT_EDIT_FRAME::DeleteFootprintFromLibrary(), FOOTPRINT_PREVIEW_PANEL::DisplayFootprint(), CVPCB_MAINFRAME::DisplayStatus(), FOOTPRINT_EDIT_FRAME::DuplicateFootprint(), PCB_EDIT_FRAME::ExportFootprintsToLibrary(), EXPORTER_PCB_VRML::ExportVrmlFootprint(), DISPLAY_FOOTPRINTS_FRAME::GetFootprint(), idf_export_footprint(), FOOTPRINT_EDIT_FRAME::initLibraryTree(), InvokePcbLibTableEditor(), FOOTPRINT_EDIT_FRAME::KiwayMailIn(), FOOTPRINT_SELECT_WIDGET::Load(), RENDER_3D_RAYTRACE::load3DModels(), RENDER_3D_OPENGL::load3dModels(), PCB_BASE_FRAME::loadFootprint(), CVPCB_MAINFRAME::LoadFootprintFiles(), FOOTPRINT_VIEWER_FRAME::OnActivate(), PCB_BASE_FRAME::OnFpChangeDebounceTimer(), PCB_EDIT_FRAME::OpenProjectFiles(), FOOTPRINT_EDITOR_CONTROL::PasteFootprint(), CVPCB_MAINFRAME::readNetListAndFpFiles(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), FOOTPRINT_EDITOR_CONTROL::RenameFootprint(), FOOTPRINT_EDITOR_CONTROL::SaveAs(), FOOTPRINT_EDIT_FRAME::SaveFootprint(), FOOTPRINT_EDIT_FRAME::SaveFootprintAs(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), PCB_BASE_FRAME::SelectFootprintFromLibTree(), PCB_BASE_FRAME::SelectLibrary(), PCB_BASE_EDIT_FRAME::selectLibTable(), PCB_BASE_FRAME::setFPWatcher(), FOOTPRINT_VIEWER_FRAME::ShowModal(), FOOTPRINT_EDIT_FRAME::SyncLibraryTree(), FOOTPRINT_EDIT_FRAME::UpdateTitle(), FOOTPRINT_VIEWER_FRAME::UpdateTitle(), and PANEL_FP_PROPERTIES_3D_MODEL::validateModelExists().
void PROJECT::PinLibrary | ( | const wxString & | aLibrary, |
bool | isSymbolLibrary | ||
) |
Definition at line 156 of file project.cpp.
References alg::contains(), GetSettingsManager(), PROJECT_FILE::m_PinnedFootprintLibs, PROJECT_FILE::m_PinnedSymbolLibs, m_projectFile, COMMON_SETTINGS::m_Session, Pgm(), COMMON_SETTINGS::SESSION::pinned_fp_libs, COMMON_SETTINGS::SESSION::pinned_symbol_libs, and JSON_SETTINGS::SaveToFile().
Referenced by SYMBOL_EDITOR_CONTROL::PinLibrary(), FOOTPRINT_EDITOR_CONTROL::PinLibrary(), and LIB_TREE_MODEL_ADAPTER::PinLibrary().
Definition at line 294 of file project.cpp.
References arrayDim(), and m_elems.
Referenced by ElemsClear(), SCH_ALTIUM_PLUGIN::Load(), CADSTAR_SCH_ARCHIVE_PLUGIN::Load(), SCH_EAGLE_PLUGIN::Load(), KI_TEST::SCHEMATIC_TEST_FIXTURE::LoadSchematic(), KI_TEST::LoadSchematic(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), SCH_EDIT_FRAME::OpenProjectFiles(), PcbFootprintLibs(), KICAD_MANAGER_CONTROL::ShowPluginManager(), LEGACY_RESCUER::WriteRescueLibrary(), and SYMBOL_LIB_TABLE_RESCUER::WriteRescueLibrary().
|
inlineprivatevirtual |
Set the local settings backing store.
This should only be called by SETTINGS_MANAGER on load.
aSettings | is the local settings object (may or may not exist on disk at this point) |
Definition at line 338 of file project.h.
References m_localSettings.
|
inlineprivatevirtual |
Set the backing store file for this project.
This should only be called by #SETTINGS_MANGER on load.
aFile | is a loaded PROJECT_FILE. |
Definition at line 326 of file project.h.
References m_projectFile.
Referenced by SETTINGS_MANAGER::loadProjectFile().
|
privatevirtual |
Set the full directory, basename, and extension of the project.
This is the name of the project file with full absolute path and it also defines the name of the project. The project name and the project file names are exactly the same, providing the project filename is absolute.
Definition at line 88 of file project.cpp.
References Clear(), GetProjectFullName(), m_project_name, path, PROJECT_VAR_NAME, ProjectFileExtension, TO_UTF8, and tracePathsAndFiles.
Referenced by SETTINGS_MANAGER::SaveProjectAs().
|
inlinevirtual |
Definition at line 127 of file project.h.
References m_readOnly.
Referenced by SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::SavePcbFile(), and SCH_EDIT_FRAME::SaveProject().
|
virtual |
Store a "retained string", which is any session and project specific string identified in enum RSTRING_T.
Retained strings are not written to disk, and are therefore good only for the current session.
Definition at line 254 of file project.cpp.
References arrayDim(), and m_rstrings.
Referenced by Clear(), PCB_EDIT_FRAME::ExportFootprintsToLibrary(), SYMBOL_EDIT_FRAME::GetCurLib(), PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DModel(), FOOTPRINT_EDIT_FRAME::retainLastFootprint(), SYMBOL_EDIT_FRAME::saveLibrary(), SCH_BASE_FRAME::SelectLibraryFromList(), FOOTPRINT_VIEWER_FRAME::setCurFootprintName(), SYMBOL_EDIT_FRAME::SetCurLib(), FOOTPRINT_VIEWER_FRAME::setCurNickname(), and SYMBOL_EDIT_FRAME::SetCurSymbol().
|
virtual |
Return the path and file name of this projects symbol library table.
Definition at line 144 of file project.cpp.
References libTableName().
|
virtual |
Definition at line 70 of file project.cpp.
References GetTextVars().
Referenced by ExpandTextVars(), KIwxExpandEnvVars(), and BOARD::ResolveTextVar().
void PROJECT::UnpinLibrary | ( | const wxString & | aLibrary, |
bool | isSymbolLibrary | ||
) |
Definition at line 177 of file project.cpp.
References alg::delete_matching(), GetSettingsManager(), PROJECT_FILE::m_PinnedFootprintLibs, PROJECT_FILE::m_PinnedSymbolLibs, m_projectFile, COMMON_SETTINGS::m_Session, Pgm(), COMMON_SETTINGS::SESSION::pinned_fp_libs, COMMON_SETTINGS::SESSION::pinned_symbol_libs, and JSON_SETTINGS::SaveToFile().
Referenced by SYMBOL_EDITOR_CONTROL::UnpinLibrary(), FOOTPRINT_EDITOR_CONTROL::UnpinLibrary(), and LIB_TREE_MODEL_ADAPTER::UnpinLibrary().
|
friend |
|
private |
|
private |
Backing store for project local settings – owned by SETTINGS_MANAGER.
Definition at line 358 of file project.h.
Referenced by GetLocalSettings(), and setLocalSettings().
|
private |
|
private |
<fullpath>/<basename>.pro
Definition at line 348 of file project.h.
Referenced by GetProjectFullName(), GetProjectName(), GetProjectPath(), IsNullProject(), and setProjectFullName().
|
private |
Backing store for project data – owned by SETTINGS_MANAGER.
Definition at line 355 of file project.h.
Referenced by GetProjectFile(), PinLibrary(), setProjectFile(), and UnpinLibrary().
|
private |
Definition at line 352 of file project.h.
Referenced by IsReadOnly(), and SetReadOnly().
|
private |
Definition at line 363 of file project.h.
Referenced by GetRString(), and SetRString().
|
private |
Definition at line 360 of file project.h.
Referenced by GetSheetName().