Code::Blocks
SVN r11506
|
Represents a file in a Code::Blocks project. More...
#include <projectfile.h>
Public Member Functions | |
ProjectFile (cbProject *prj) | |
Constructor. More... | |
~ProjectFile () | |
Destructor. More... | |
void | Rename (const wxString &new_name) |
Change filename of the file. More... | |
void | AddBuildTarget (const wxString &targetName) |
Make this file belong to an additional build target. More... | |
void | RenameBuildTarget (const wxString &oldTargetName, const wxString &newTargetName) |
Rename a build target this file belongs in. More... | |
void | RemoveBuildTarget (const wxString &targetName) |
Remove this file from the specified build target. More... | |
const wxArrayString & | GetBuildTargets () const |
bool | ShowOptions (wxWindow *parent) |
Show the file properties dialog. More... | |
wxString | GetBaseName () const |
const wxString & | GetObjName () |
void | SetObjName (const wxString &name) |
Set the generated object filename. More... | |
cbProject * | GetParentProject () |
void | UpdateFileDetails (ProjectBuildTarget *target=nullptr) |
This is called automatically when adding/removing build targets. More... | |
const pfDetails & | GetFileDetails (ProjectBuildTarget *target) |
Access the file details for this project file for the specified target. More... | |
void | SetFileState (FileVisualState state) |
Set the visual state (modified, read-only, etc). More... | |
FileVisualState | GetFileState () const |
void | SetUseCustomBuildCommand (const wxString &compilerId, bool useCustomBuildCommand) |
Modify 'Use custom command to build this file' for a compilerId. More... | |
void | SetCustomBuildCommand (const wxString &compilerId, const wxString &newBuildCommand) |
Modify customBuild command for a compilerId. More... | |
bool | GetUseCustomBuildCommand (const wxString &compilerId) |
Read 'Use custom command to build this file' for a compilerId. More... | |
wxString | GetCustomBuildCommand (const wxString &compilerId) |
Read customBuild command for a compilerId. More... | |
ProjectFile * | AutoGeneratedBy () const |
If this is an auto-generated file, which file is generating it? More... | |
void | SetAutoGeneratedBy (ProjectFile *TheFile) |
If this is an auto-generated file, set the file which is generating it? More... | |
const wxTreeItemId & | GetTreeItemId () const |
Returns the wxTreeItemId for the file. More... | |
void | SetTreeItemId (wxTreeItemId id) |
Sets the tree item id for the file. More... | |
Static Public Member Functions | |
static int | CompareProjectFiles (ProjectFile *item1, ProjectFile *item2) |
Compare relative names of projectfiles. More... | |
Public Attributes | |
wxFileName | file |
The full filename of this file. More... | |
wxString | relativeFilename |
The relative (to the project) filename of this file. More... | |
wxString | relativeToCommonTopLevelPath |
The relative filename to the common top-level path. More... | |
bool | compile |
Compile flag. More... | |
bool | link |
Link flag. More... | |
unsigned short int | weight |
The weight. More... | |
bool | editorOpen |
If true, the file is open inside an editor. More... | |
int | editorSplit |
Split type of the editor as int. More... | |
int | editorSplitActive |
Last active splitview (1 or 2). More... | |
int | editorSplitPos |
Last splitter position. More... | |
int | editorPos |
The last known caret position in an editor for this file (left/top control if split). More... | |
int | editorTopLine |
The last known caret line in an editor for this file (left/top control if split). More... | |
int | editorZoom |
The zoom-factor of the editor for this file (left/top control if split). More... | |
int | editorPos_2 |
The last known caret position in an editor for this file (right/bottom control if split). More... | |
int | editorTopLine_2 |
The last known caret line in an editor for this file(right/bottom control if split). More... | |
int | editorZoom_2 |
The zoom-factor of the editor for this file(right/bottom control if split). More... | |
int | editorTabPos |
The position of the editor-tab for this file. More... | |
wxArrayInt | editorFoldLinesArray |
Fold lines. More... | |
pfCustomBuildMap | customBuild |
A map for custom builds. More... | |
wxString | compilerVar |
The compiler variable used for this file (e.g CPP, CC, etc). More... | |
wxArrayString | buildTargets |
An array of strings, containing the names of all the build targets this file belongs to. More... | |
wxString | virtual_path |
A string that represents the virtual folder this file will appear in. More... | |
ProjectFile * | autoGeneratedBy |
If this is an auto-generated file, which file is generating it? More... | |
ProjectFilesVector | generatedFiles |
Auto-generated files when compiling this file. More... | |
Protected Member Functions | |
void | DoUpdateFileDetails (ProjectBuildTarget *target) |
Protected Attributes | |
cbProject * | project |
FileVisualState | m_VisualState |
wxTreeItemId | m_TreeItemId |
wxString | m_ObjName |
PFDMap | m_PFDMap |
Friends | |
class | cbProject |
Represents a file in a Code::Blocks project.
Definition at line 39 of file projectfile.h.
ProjectFile::ProjectFile | ( | cbProject * | prj | ) |
Constructor.
Definition at line 26 of file projectfile.cpp.
ProjectFile::~ProjectFile | ( | ) |
void ProjectFile::AddBuildTarget | ( | const wxString & | targetName | ) |
Make this file belong to an additional build target.
targetName | The build target to add this file to. |
Definition at line 78 of file projectfile.cpp.
References wxArrayString::Add(), buildTargets, generatedFiles, cbProject::GetBuildTarget(), wxArrayString::Index(), ProjectBuildTarget::m_FileArray, ProjectBuildTarget::m_Files, project, and wxNOT_FOUND.
Referenced by cbProject::AddFile(), ProjectManager::DoAddFileToProject(), ProjectOptionsDlg::DoBeforeTargetChange(), ProjectLoader::DoUnitOptions(), cbProject::DuplicateBuildTarget(), ProjectFileOptionsDlg::EndModal(), ProjectOptionsDlg::OnFileMarkOnClick(), ProjectOptionsDlg::OnFileToggleMarkClick(), ScriptBindings::RegisterBindings(), and Wiz::RunTargetWizard().
|
inline |
If this is an auto-generated file, which file is generating it?
Definition at line 201 of file projectfile.h.
Referenced by ProjectManagerUI::BuildProjectTree(), ProjectLoader::ExportTargetAsProject(), DirectCommands::GetTargetCleanCommands(), DirectCommands::GetTargetCompileCommands(), ProjectManagerUI::OnRenameFile(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), cbProject::RemoveFile(), ProjectManager::RemoveFileFromProject(), and EditorManager::SwapActiveHeaderSource().
|
static |
Compare relative names of projectfiles.
Static helper function to sort array of projectfiles. Needed because the order of files in a hashset is not guaranteed.
item1 | first projectfile. |
item2 | second projectfile. |
Definition at line 334 of file projectfile.cpp.
References relativeFilename.
Referenced by ProjectLoader::ExportTargetAsProject().
|
protected |
Definition at line 268 of file projectfile.cpp.
References buildTargets, CompileTargetBase::GetTitle(), wxArrayString::Index(), m_PFDMap, pfDetails::Update(), and wxNOT_FOUND.
Referenced by GetFileDetails(), and UpdateFileDetails().
wxString ProjectFile::GetBaseName | ( | ) | const |
Definition at line 153 of file projectfile.cpp.
References wxFileName::GetFullPath(), relativeFilename, wxFileName::SetExt(), and wxEmptyString.
Referenced by ScriptBindings::RegisterBindings().
const wxArrayString & ProjectFile::GetBuildTargets | ( | ) | const |
Definition at line 141 of file projectfile.cpp.
References buildTargets.
Referenced by DirectCommands::CompileFile(), and ScriptBindings::RegisterBindings().
Read customBuild command for a compilerId.
Definition at line 329 of file projectfile.cpp.
References customBuild.
Referenced by ScriptBindings::RegisterBindings().
const pfDetails & ProjectFile::GetFileDetails | ( | ProjectBuildTarget * | target | ) |
Access the file details for this project file for the specified target.
target | A pointer to the build target whose file details should be updated. |
Definition at line 284 of file projectfile.cpp.
References DoUpdateFileDetails(), and m_PFDMap.
Referenced by DirectCommands::CompileFile(), DirectCommands::GetCompileFileCommand(), DirectCommands::GetTargetCleanCommands(), DirectCommands::GetTargetCompileCommands(), and DirectCommands::GetTargetLinkCommands().
FileVisualState ProjectFile::GetFileState | ( | ) | const |
Definition at line 295 of file projectfile.cpp.
References m_VisualState.
Referenced by ProjectManagerUI::BuildProjectTree(), EditorManager::CheckForExternallyModifiedFiles(), and ProjectManagerUI::ShowMenu().
const wxString & ProjectFile::GetObjName | ( | ) |
Definition at line 160 of file projectfile.cpp.
References generatedFiles, wxString::IsEmpty(), m_ObjName, relativeToCommonTopLevelPath, and SetObjName().
Referenced by CompilerGCC::OnCleanFile(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), ScriptBindings::RegisterBindings(), cbProject::SetCompilerID(), and pfDetails::Update().
|
inline |
Definition at line 93 of file projectfile.h.
References pfCustomBuild::useCustomBuildCommand.
Referenced by applyFileOptionChange(), EditorManager::CheckForExternallyModifiedFiles(), MainFrame::DoUpdateAppTitle(), ProjectFileOptionsDlg::EndModal(), ProjectFileOptionsDlg::FillCompilers(), MainFrame::GetEditorDescription(), NativeParser::GetProjectByEditor(), cbEditor::NotifyPlugins(), cbEditor::OnContextMenuEntry(), ProjectManagerUI::OnGotoFile(), EditorManager::OnRemoveFileFromProject(), ProjectFileRelativePathCmp::operator()(), CompilerGCC::PrepareCompileFile(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), ScriptBindings::RegisterBindings(), ProjectManager::RemoveFileFromProject(), EditorManager::SwapActiveHeaderSource(), pfDetails::Update(), and EditorManager::UpdateProjectFiles().
|
inline |
Returns the wxTreeItemId for the file.
Definition at line 210 of file projectfile.h.
Referenced by ProjectManagerUI::ShowFileInTree().
bool ProjectFile::GetUseCustomBuildCommand | ( | const wxString & | compilerId | ) |
Read 'Use custom command to build this file' for a compilerId.
Definition at line 324 of file projectfile.cpp.
References customBuild.
Referenced by ScriptBindings::RegisterBindings().
void ProjectFile::RemoveBuildTarget | ( | const wxString & | targetName | ) |
Remove this file from the specified build target.
targetName | The build target's name to remove this file from. |
Definition at line 113 of file projectfile.cpp.
References buildTargets, generatedFiles, cbProject::GetBuildTarget(), wxArrayString::Index(), ProjectBuildTarget::m_FileArray, ProjectBuildTarget::m_Files, project, wxArrayString::RemoveAt(), and wxNOT_FOUND.
Referenced by ProjectOptionsDlg::DoBeforeTargetChange(), ProjectFileOptionsDlg::EndModal(), ProjectOptionsDlg::OnFileMarkOffClick(), ProjectOptionsDlg::OnFileToggleMarkClick(), ScriptBindings::RegisterBindings(), and cbProject::RemoveBuildTarget().
void ProjectFile::Rename | ( | const wxString & | new_name | ) |
Change filename of the file.
Note that this does only update the internal variables. It does NOT rename the file on disk... It updates file
, relativeFilename
, relativeToCommonTopLevelPath
and finally marks the parent project as modified.
Definition at line 57 of file projectfile.cpp.
References wxString::Append(), wxFileName::Assign(), wxString::BeforeLast(), cbProject::CalculateCommonTopLevelPath(), file, wxFileName::GetPath(), wxString::IsEmpty(), project, cbProject::ProjectFileRenamed(), relativeFilename, cbProject::SetModified(), and UpdateFileDetails().
void ProjectFile::RenameBuildTarget | ( | const wxString & | oldTargetName, |
const wxString & | newTargetName | ||
) |
Rename a build target this file belongs in.
oldTargetName | The build target's old name. |
newTargetName | The build target's new name. |
Definition at line 102 of file projectfile.cpp.
References buildTargets, generatedFiles, wxArrayString::Index(), and wxNOT_FOUND.
Referenced by ScriptBindings::RegisterBindings(), and cbProject::RenameBuildTarget().
|
inline |
If this is an auto-generated file, set the file which is generating it?
Definition at line 204 of file projectfile.h.
Referenced by cbProject::AddFile().
void ProjectFile::SetCustomBuildCommand | ( | const wxString & | compilerId, |
const wxString & | newBuildCommand | ||
) |
Modify customBuild command for a compilerId.
Definition at line 319 of file projectfile.cpp.
References customBuild.
Referenced by ProjectLoader::DoUnitOptions(), and ScriptBindings::RegisterBindings().
void ProjectFile::SetFileState | ( | FileVisualState | state | ) |
Set the visual state (modified, read-only, etc).
state | The new visual state. |
Definition at line 300 of file projectfile.cpp.
References Manager::Get(), Manager::GetProjectManager(), cbProjectManagerUI::GetTree(), ProjectManager::GetUI(), wxTreeItemId::IsOk(), m_TreeItemId, m_VisualState, wxTreeCtrl::SetItemImage(), wxTreeItemIcon_Normal, and wxTreeItemIcon_Selected.
Referenced by cbProject::AddFile(), EditorManager::CheckForExternallyModifiedFiles(), ProjectManagerUI::DoOpenFile(), cbEditor::Open(), cbEditor::SetModified(), and cbEditor::SetProjectFile().
void ProjectFile::SetObjName | ( | const wxString & | name | ) |
Set the generated object filename.
name | The filename for the generated object. |
Definition at line 174 of file projectfile.cpp.
References _T, wxFileName::Assign(), FileTypeOf(), ftHeader, ftResource, ftResourceBin, CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), cbProject::GetExtendedObjectNamesGeneration(), wxFileName::GetFullName(), wxFileName::GetFullPath(), cbProject::GetModeForPCH(), Compiler::GetSwitches(), m_ObjName, CompilerSwitches::objectExtension, CompilerSwitches::PCHExtension, pchSourceFile, project, relativeFilename, FileFilters::RESOURCEBIN_DOT_EXT, FileFilters::RESOURCEBIN_EXT, wxFileName::SetExt(), wxFileName::SetName(), and CompilerSwitches::supportsPCH.
Referenced by cbProject::CalculateCommonTopLevelPath(), GetObjName(), ScriptBindings::RegisterBindings(), cbProject::SetCompilerID(), cbProject::SetExtendedObjectNamesGeneration(), and UpdateFileDetails().
|
inline |
Sets the tree item id for the file.
Should not be called by users!
Definition at line 213 of file projectfile.h.
Referenced by ProjectManagerUI::BuildProjectTree().
void ProjectFile::SetUseCustomBuildCommand | ( | const wxString & | compilerId, |
bool | useCustomBuildCommand | ||
) |
Modify 'Use custom command to build this file' for a compilerId.
Definition at line 314 of file projectfile.cpp.
References customBuild.
Referenced by ProjectLoader::DoUnitOptions(), and ScriptBindings::RegisterBindings().
bool ProjectFile::ShowOptions | ( | wxWindow * | parent | ) |
Show the file properties dialog.
parent | The parent window for the dialog (can be NULL). |
Definition at line 146 of file projectfile.cpp.
References PlaceWindow(), wxDialog::ShowModal(), and wxID_OK.
Referenced by cbEditor::OnContextMenuEntry(), ProjectOptionsDlg::OnFileOptionsClick(), and EditorManager::OnProperties().
void ProjectFile::UpdateFileDetails | ( | ProjectBuildTarget * | target = nullptr | ) |
This is called automatically when adding/removing build targets.
target | A pointer to the build target whose file details should be updated. |
Definition at line 243 of file projectfile.cpp.
References compile, DoUpdateFileDetails(), FileTypeOf(), ftHeader, cbProject::GetBuildTarget(), cbProject::GetBuildTargetsCount(), link, project, relativeFilename, relativeToCommonTopLevelPath, and SetObjName().
Referenced by Rename(), and cbProject::SetExtendedObjectNamesGeneration().
|
friend |
Definition at line 224 of file projectfile.h.
ProjectFile* ProjectFile::autoGeneratedBy |
If this is an auto-generated file, which file is generating it?
Definition at line 198 of file projectfile.h.
wxArrayString ProjectFile::buildTargets |
An array of strings, containing the names of all the build targets this file belongs to.
Definition at line 190 of file projectfile.h.
Referenced by AddBuildTarget(), CodeCompletion::DoCodeCompleteIncludes(), ProjectOptionsDlg::DoTargetChange(), DoUpdateFileDetails(), ProjectLoader::ExportTargetAsProject(), FindReplace::FindInFiles(), CompilerGCC::GetBuildTargetForFile(), GetBuildTargets(), DirectCommands::GetProjectFilesSortedByWeight(), CompilerGCC::OnCompileFileRequest(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), ScriptBindings::RegisterBindings(), RemoveBuildTarget(), RenameBuildTarget(), and FindReplace::ReplaceInFiles().
bool ProjectFile::compile |
Compile flag.
If it's true, the file is compiled (generates object file) else it is not.
Definition at line 138 of file projectfile.h.
Referenced by cbProject::AddFile(), ProjectManagerUI::BuildProjectTree(), DirectCommands::CompileFile(), ProjectLoader::DoUnitOptions(), ProjectFileOptionsDlg::EndModal(), ProjectLoader::ExportTargetAsProject(), DirectCommands::GetCompileFileCommand(), DirectCommands::GetProjectFilesSortedByWeight(), ProjectManagerUI::OnFileOptions(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), ScriptBindings::RegisterBindings(), and UpdateFileDetails().
wxString ProjectFile::compilerVar |
The compiler variable used for this file (e.g CPP, CC, etc).
Definition at line 187 of file projectfile.h.
Referenced by cbProject::AddFile(), DirectCommands::CompileFile(), ProjectLoader::DoUnitOptions(), ProjectFileOptionsDlg::EndModal(), ProjectLoader::ExportTargetAsProject(), CompilerCommandGenerator::GenerateCommandLine(), DirectCommands::GetCompileFileCommand(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), and ScriptBindings::RegisterBindings().
pfCustomBuildMap ProjectFile::customBuild |
A map for custom builds.
Key is compiler ID, value is pfCustomBuild struct.
Definition at line 184 of file projectfile.h.
Referenced by ProjectLoader::ExportTargetAsProject(), DirectCommands::GetCompileFileCommand(), GetCustomBuildCommand(), GetUseCustomBuildCommand(), ProjectFileOptionsDlg::SaveBuildCommandSelection(), SetCustomBuildCommand(), SetUseCustomBuildCommand(), and ProjectFileOptionsDlg::UpdateBuildCommand().
wxArrayInt ProjectFile::editorFoldLinesArray |
Fold lines.
Definition at line 181 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
bool ProjectFile::editorOpen |
If true, the file is open inside an editor.
Definition at line 148 of file projectfile.h.
Referenced by cbProject::LoadLayout(), ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), cbEditor::UpdateProjectFile(), and cbEditor::~cbEditor().
int ProjectFile::editorPos |
The last known caret position in an editor for this file (left/top control if split).
Definition at line 160 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
int ProjectFile::editorPos_2 |
The last known caret position in an editor for this file (right/bottom control if split).
Definition at line 169 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
int ProjectFile::editorSplit |
Split type of the editor as int.
Definition at line 151 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
int ProjectFile::editorSplitActive |
Last active splitview (1 or 2).
Definition at line 154 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), and cbEditor::UpdateProjectFile().
int ProjectFile::editorSplitPos |
Last splitter position.
Definition at line 157 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
int ProjectFile::editorTabPos |
The position of the editor-tab for this file.
Definition at line 178 of file projectfile.h.
Referenced by cbProject::LoadLayout(), ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), and EditorManager::UpdateProjectFiles().
int ProjectFile::editorTopLine |
The last known caret line in an editor for this file (left/top control if split).
Definition at line 163 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
int ProjectFile::editorTopLine_2 |
The last known caret line in an editor for this file(right/bottom control if split).
Definition at line 172 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
int ProjectFile::editorZoom |
The zoom-factor of the editor for this file (left/top control if split).
Definition at line 166 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
int ProjectFile::editorZoom_2 |
The zoom-factor of the editor for this file(right/bottom control if split).
Definition at line 175 of file projectfile.h.
Referenced by ProjectLayoutLoader::Open(), ProjectLayoutLoader::Save(), cbEditor::SetProjectFile(), and cbEditor::UpdateProjectFile().
wxFileName ProjectFile::file |
The full filename of this file.
Usually you need to read from it and never write to it.
Definition at line 126 of file projectfile.h.
Referenced by cbProject::AddFile(), NativeParser::AddProjectToParser(), ProjectManagerUI::BuildProjectTree(), cbProject::CalculateCommonTopLevelPath(), cbProject::CloseAllFiles(), CodeCompletion::DoCodeCompleteIncludes(), NativeParser::DoFullParsing(), CompilerErrors::DoGotoError(), MarkFileAsLocalThreadedTask::Execute(), cbTreeCtrl::filesSort(), cbTreeCtrl::filesSortNameOnly(), FindReplace::FindInFiles(), CodeRefactoring::GetAllProjectFiles(), DirectCommands::GetCompileFileCommand(), DirectCommands::GetTargetCleanCommands(), ClassBrowserBuilderThread::Init(), cbProject::LoadLayout(), ProjectManagerUI::OnGotoFile(), CodeCompletion::OnOpenIncludeFile(), ProjectManagerUI::OnRenameFile(), CodeCompletion::OnSelectedFileReparse(), ProjectManagerUI::OnTreeBeginDrag(), EditorManager::Open(), CompilerGCC::PrepareCompileFilePM(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), cbProject::QueryCloseAllFiles(), ScriptBindings::RegisterBindings(), cbProject::RemoveFile(), ProjectManager::RemoveFileFromProject(), NativeParser::RemoveProjectFromParser(), Rename(), FindReplace::ReplaceInFiles(), cbProject::SaveAllFiles(), cbEditor::SetEditorStyleBeforeFileOpen(), cbEditor::SetProjectFile(), ProjectManagerUI::ShowMenu(), EditorManager::SwapActiveHeaderSource(), and pfDetails::Update().
ProjectFilesVector ProjectFile::generatedFiles |
Auto-generated files when compiling this file.
Definition at line 207 of file projectfile.h.
Referenced by AddBuildTarget(), cbProject::AddFile(), ProjectLoader::DoUnitOptions(), DirectCommands::GetCompileFileCommand(), GetObjName(), RemoveBuildTarget(), cbProject::RemoveFile(), RenameBuildTarget(), EditorManager::SwapActiveHeaderSource(), and pfDetails::Update().
bool ProjectFile::link |
Link flag.
If it's true, the (generated object) file is linked else it is not.
Definition at line 141 of file projectfile.h.
Referenced by cbProject::AddFile(), ProjectLoader::DoUnitOptions(), ProjectFileOptionsDlg::EndModal(), ProjectLoader::ExportTargetAsProject(), DirectCommands::GetProjectFilesSortedByWeight(), ProjectManagerUI::OnFileOptions(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), ScriptBindings::RegisterBindings(), and UpdateFileDetails().
|
protected |
Definition at line 230 of file projectfile.h.
Referenced by GetObjName(), and SetObjName().
|
protected |
Definition at line 231 of file projectfile.h.
Referenced by DoUpdateFileDetails(), GetFileDetails(), and ~ProjectFile().
|
protected |
Definition at line 229 of file projectfile.h.
Referenced by SetFileState().
|
protected |
Definition at line 228 of file projectfile.h.
Referenced by GetFileState(), and SetFileState().
|
protected |
Definition at line 227 of file projectfile.h.
Referenced by AddBuildTarget(), RemoveBuildTarget(), Rename(), SetObjName(), cbEditor::SetProjectFile(), and UpdateFileDetails().
wxString ProjectFile::relativeFilename |
The relative (to the project) filename of this file.
Usually you need to read from it and never write to it.
Definition at line 131 of file projectfile.h.
Referenced by cbProject::AddFile(), NativeParser::AddProjectToParser(), CompilerGCC::BuildModuleMenu(), cbProject::CalculateCommonTopLevelPath(), CompareProjectFiles(), CodeCompletion::DoCodeCompleteIncludes(), NativeParser::DoFullParsing(), MarkFileAsLocalThreadedTask::Execute(), ProjectLoader::ExportTargetAsProject(), CodeRefactoring::GetAllProjectFiles(), GetBaseName(), DirectCommands::GetCompileFileCommand(), DirectCommands::GetTargetLinkCommands(), ProjectManagerUI::OnAddFileToProject(), ProjectManagerUI::OnGotoFile(), ProjectFileRelativePathCmp::operator()(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), cbProject::ProjectFileRenamed(), ScriptBindings::RegisterBindings(), cbProject::RemoveFile(), NativeParser::RemoveProjectFromParser(), Rename(), ProjectLayoutLoader::Save(), cbProject::SetCompilerID(), SetObjName(), cbEditor::SetProjectFile(), cbAuiNotebook::UniqueIdFromTooltip(), pfDetails::Update(), ProjectFileOptionsDlg::UpdateBuildCommand(), and UpdateFileDetails().
wxString ProjectFile::relativeToCommonTopLevelPath |
The relative filename to the common top-level path.
This is used mainly for the tree, as this is guaranteed to not contain '..'
Definition at line 135 of file projectfile.h.
Referenced by cbProject::AddFile(), ProjectManagerUI::BuildProjectTree(), cbProject::CalculateCommonTopLevelPath(), CompilerGCC::CompileFile(), CompilerGCC::CompileFileDefault(), GetObjName(), ScriptBindings::RegisterBindings(), cbEditor::SetEditorStyleBeforeFileOpen(), cbProject::SetExtendedObjectNamesGeneration(), cbEditor::SetProjectFile(), pfDetails::Update(), and UpdateFileDetails().
wxString ProjectFile::virtual_path |
A string that represents the virtual folder this file will appear in.
This is a relative path which doesn't have to exist in the filesystem hierarchy.
Definition at line 195 of file projectfile.h.
Referenced by ProjectManagerUI::BuildProjectTree(), ProjectManagerUI::CheckForExternallyModifiedProjects(), ProjectLoader::DoUnitOptions(), ProjectLoader::ExportTargetAsProject(), cbProject::RemoveVirtualFolders(), and cbProject::ReplaceVirtualFolder().
unsigned short int ProjectFile::weight |
The weight.
This is a number between 0 and 100 (defaults to 50). Files with smaller weights are compiled earlier than those with larger weights.
Definition at line 145 of file projectfile.h.
Referenced by ProjectLoader::DoUnitOptions(), ProjectFileOptionsDlg::EndModal(), ProjectLoader::ExportTargetAsProject(), DirectCommands::GetTargetCompileCommands(), ProjectFileOptionsDlg::ProjectFileOptionsDlg(), and ScriptBindings::RegisterBindings().