Code::Blocks
SVN r11506
|
#include <compilererrors.h>
Public Member Functions | |
CompilerErrors () | |
virtual | ~CompilerErrors () |
void | AddError (CompilerLineType lt, cbProject *project, const wxString &filename, long int line, const wxString &error) |
void | GotoError (int nr) |
void | Next () |
void | Previous () |
void | Clear () |
bool | HasNextError () const |
bool | HasPreviousError () const |
int | GetCount () const |
wxString | GetErrorString (int index) |
unsigned int | GetCount (CompilerLineType lt) const |
int | GetFirstError () const |
int | GetFocusedError () const |
Private Member Functions | |
void | DoAddError (const CompileError &error) |
void | DoGotoError (const CompileError &error) |
void | DoClearErrorMarkFromAllEditors () |
int | ErrorLineHasMore (const wxString &filename, long int line) const |
Private Attributes | |
ErrorsArray | m_Errors |
int | m_ErrorIndex |
Definition at line 26 of file compilererrors.h.
CompilerErrors::CompilerErrors | ( | ) |
Definition at line 24 of file compilererrors.cpp.
|
virtual |
Definition at line 30 of file compilererrors.cpp.
void CompilerErrors::AddError | ( | CompilerLineType | lt, |
cbProject * | project, | ||
const wxString & | filename, | ||
long int | line, | ||
const wxString & | error | ||
) |
Definition at line 35 of file compilererrors.cpp.
References wxArrayString::Add(), DoAddError(), CompileError::errors, CompileError::filename, CompileError::line, CompileError::lineType, ParserConsts::lt, and CompileError::project.
void CompilerErrors::Clear | ( | ) |
Definition at line 111 of file compilererrors.cpp.
References DoClearErrorMarkFromAllEditors(), m_ErrorIndex, and m_Errors.
|
private |
|
private |
Definition at line 227 of file compilererrors.cpp.
References Manager::Get(), EditorManager::GetBuiltinEditor(), Manager::GetEditorManager(), EditorManager::GetEditorsCount(), and cbEditor::SetErrorLine().
Referenced by Clear(), and DoGotoError().
|
private |
Definition at line 141 of file compilererrors.cpp.
References _T, EditorBase::Activate(), DoClearErrorMarkFromAllEditors(), ProjectFile::file, CompileError::filename, Manager::Get(), ProjectManager::GetActiveProject(), EditorManager::GetBuiltinEditor(), wxString::GetChar(), cbProject::GetCommonTopLevelPath(), Manager::GetEditorManager(), EditorManager::GetEditorsCount(), cbProject::GetFileByFilename(), cbProject::GetFilesList(), wxFileName::GetFullPath(), cbEditor::GetProjectFile(), Manager::GetProjectManager(), cbEditor::GotoLine(), IsSuffixOfPath(), wxString::Length(), CompileError::line, EditorManager::Open(), wxString::Prepend(), CompileError::project, cbEditor::SetErrorLine(), cbEditor::SetProjectFile(), wxString::StartsWith(), and cbEditor::UnfoldBlockFromLine().
Referenced by GotoError(), Next(), and Previous().
|
private |
Definition at line 130 of file compilererrors.cpp.
References m_Errors, and wxString::Matches().
|
inline |
Definition at line 40 of file compilererrors.h.
unsigned int CompilerErrors::GetCount | ( | CompilerLineType | lt | ) | const |
Definition at line 269 of file compilererrors.cpp.
References m_Errors.
wxString CompilerErrors::GetErrorString | ( | int | index | ) |
Definition at line 248 of file compilererrors.cpp.
References wxArrayString::GetCount(), m_Errors, and wxEmptyString.
int CompilerErrors::GetFirstError | ( | ) | const |
Definition at line 259 of file compilererrors.cpp.
|
inline |
Definition at line 46 of file compilererrors.h.
void CompilerErrors::GotoError | ( | int | nr | ) |
Definition at line 47 of file compilererrors.cpp.
References DoGotoError(), m_ErrorIndex, and m_Errors.
Referenced by CompilerMessages::OnClick().
bool CompilerErrors::HasNextError | ( | ) | const |
Definition at line 238 of file compilererrors.cpp.
References m_ErrorIndex, and m_Errors.
bool CompilerErrors::HasPreviousError | ( | ) | const |
Definition at line 243 of file compilererrors.cpp.
References m_ErrorIndex.
void CompilerErrors::Next | ( | ) |
Definition at line 55 of file compilererrors.cpp.
References _T, cltError, DoGotoError(), m_ErrorIndex, and m_Errors.
void CompilerErrors::Previous | ( | ) |
Definition at line 83 of file compilererrors.cpp.
References _T, cltError, DoGotoError(), m_ErrorIndex, and m_Errors.
|
private |
Definition at line 53 of file compilererrors.h.
Referenced by Clear(), GotoError(), HasNextError(), HasPreviousError(), Next(), and Previous().
|
private |
Definition at line 52 of file compilererrors.h.
Referenced by Clear(), DoAddError(), ErrorLineHasMore(), GetCount(), GetErrorString(), GetFirstError(), GotoError(), HasNextError(), Next(), and Previous().