Code::Blocks
SVN r11506
|
#include <doxygen_parser.h>
Public Types | |
enum | Command { cmdNone, cmdDisplayToken, cmdSearch, cmdSearchAll, cmdOpenDecl, cmdOpenImpl, cmdClose } |
Public Member Functions | |
DocumentationHelper (CodeCompletion *cc) | |
~DocumentationHelper () | |
void | OnAttach () |
void | OnRelease () |
wxString | GenerateHTML (int tokenIdx, TokenTree *tree) |
wxString | GenerateHTML (const TokenIdxSet &tokensIdx, TokenTree *tree) |
void | RereadOptions (ConfigManager *cfg) |
void | WriteOptions (ConfigManager *cfg) |
bool | IsEnabled () |
void | SetEnabled (bool enabled) |
wxString | OnDocumentationLink (wxHtmlLinkEvent &event, bool &dismissPopup) |
Static Public Member Functions | |
static wxString | DoxygenToHTML (const wxString &doc) |
static wxString | ConvertTypeToAnchor (wxString fullType) |
static wxString | ConvertArgsToAnchors (wxString args) |
static wxString | ExtractTypeAndName (wxString type, wxString *outName=0) |
static wxString | CommandToAnchor (Command cmd, const wxString &name, const wxString *args=0) |
static wxString | CommandToAnchorInt (Command cmd, const wxString &name, int arg0) |
static Command | HrefToCommand (const wxString &href, wxString &args) |
Static Public Attributes | |
static const wxChar | separatorTag = _T('+') |
static const wxString | commandTag = _T("cmd=") |
Protected Member Functions | |
void | SaveTokenIdx () |
Protected Attributes | |
CodeCompletion * | m_CC |
Pointer to CodeComplete object. More... | |
int | m_CurrentTokenIdx |
Documentation of which token was previously displayed. More... | |
int | m_LastTokenIdx |
bool | m_Enabled |
Definition at line 107 of file doxygen_parser.h.
Enumerator | |
---|---|
cmdNone | |
cmdDisplayToken | |
cmdSearch | |
cmdSearchAll | |
cmdOpenDecl | |
cmdOpenImpl | |
cmdClose |
Definition at line 111 of file doxygen_parser.h.
DocumentationHelper::DocumentationHelper | ( | CodeCompletion * | cc | ) |
Definition at line 644 of file doxygen_parser.cpp.
References _(), Manager::Get(), Manager::GetColourManager(), ColourManager::RegisterColour(), wxBLACK, wxBLUE, wxT, and wxWHITE.
DocumentationHelper::~DocumentationHelper | ( | ) |
Definition at line 656 of file doxygen_parser.cpp.
|
static |
Definition at line 600 of file doxygen_parser.cpp.
References _T, and wxString::Format().
Referenced by GenerateHTML().
|
static |
Definition at line 613 of file doxygen_parser.cpp.
References _T, and wxString::Format().
Referenced by GenerateHTML().
Definition at line 529 of file doxygen_parser.cpp.
References _T, wxString::clear(), wxString::find_last_of(), wxString::size(), and wxString::SubString().
Referenced by GenerateHTML().
Definition at line 517 of file doxygen_parser.cpp.
References _T, wxString::find(), Token::IsValidAncestor(), wxString::replace(), and wxString::size().
Referenced by GenerateHTML().
Definition at line 408 of file doxygen_parser.cpp.
References _T, arg0, Doxygen::B, HTMLTags::b0, HTMLTags::br, Doxygen::BRIEF, Doxygen::CODE, Doxygen::ENDCODE, Doxygen::DoxygenParser::FindNextKeyword(), Doxygen::DoxygenParser::GetArgument(), wxStringTokenizer::GetNextToken(), Doxygen::DoxygenParser::GetPosition(), wxStringTokenizer::HasMoreTokens(), wxString::insert(), Doxygen::KEYWORDS_COUNT, Doxygen::NO_KEYWORD, Doxygen::PARAM, HTMLTags::pre0, HTMLTags::pre1, Doxygen::RANGE_PARAGRAPH, Doxygen::RANGE_WORD, wxString::Replace(), Doxygen::DoxygenParser::ReplaceCurrentKeyword(), wxString::reserve(), Doxygen::RESULT, Doxygen::RETURN, Doxygen::SA, Doxygen::SEE, Doxygen::SHORT, wxString::size(), HTMLTags::tab, and wxString::Trim().
Referenced by GenerateHTML().
returns argument base type
Definition at line 548 of file doxygen_parser.cpp.
References _T, wxString::clear(), wxString::Find(), wxString::find_last_of(), wxString::GetChar(), wxString::insert(), wxString::npos, wxString::Replace(), wxString::resize(), wxString::size(), wxString::SubString(), wxString::swap(), and wxString::Trim().
Definition at line 673 of file doxygen_parser.cpp.
References _T, arg0, TokenTree::at(), HTMLTags::b0, HTMLTags::br, CC_LOCKER_TRACK_TT_MTX_LOCK, CC_LOCKER_TRACK_TT_MTX_UNLOCK, cmdClose, cmdDisplayToken, cmdOpenDecl, cmdOpenImpl, CommandToAnchor(), CommandToAnchorInt(), ConvertArgsToAnchors(), ConvertTypeToAnchor(), DoxygenToHTML(), wxString::Format(), Manager::Get(), wxColour::GetAsString(), ColourManager::GetColour(), Manager::GetColourManager(), TokenTree::GetDocumentation(), Token::GetFormattedArgs(), Token::GetNamespace(), Token::GetStrippedArgs(), Token::GetTokenKindString(), Token::GetTokenScopeString(), wxString::IsEmpty(), Token::m_Args, Token::m_Children, m_CurrentTokenIdx, Token::m_FullType, Token::m_ImplLine, Token::m_Index, Token::m_IsConst, Token::m_IsNoExcept, m_LastTokenIdx, Token::m_Name, Token::m_ParentIndex, Token::m_Scope, Token::m_TokenKind, wxString::RemoveLast(), s_TokenTreeMutex, HTMLTags::sep, wxString::size(), tkAnyContainer, tkAnyFunction, tkClass, tkConstructor, tkDestructor, tkEnum, tkEnumerator, tkFunction, tkMacroDef, tkMacroUse, tkNamespace, tkTypedef, tkUndefined, tkVariable, tsUndefined, wxC2S_HTML_SYNTAX, wxEmptyString, and wxT.
Referenced by GenerateHTML(), and OnDocumentationLink().
wxString DocumentationHelper::GenerateHTML | ( | const TokenIdxSet & | tokensIdx, |
TokenTree * | tree | ||
) |
Definition at line 841 of file doxygen_parser.cpp.
References _T, TokenTree::at(), CC_LOCKER_TRACK_TT_MTX_LOCK, CC_LOCKER_TRACK_TT_MTX_UNLOCK, cmdClose, cmdDisplayToken, CommandToAnchor(), CommandToAnchorInt(), GenerateHTML(), Manager::Get(), wxColour::GetAsString(), ColourManager::GetColour(), Manager::GetColourManager(), Token::GetNamespace(), Token::GetTokenKindString(), Token::m_Index, m_LastTokenIdx, Token::m_Name, HTMLTags::nbsp, s_TokenTreeMutex, wxC2S_HTML_SYNTAX, wxEmptyString, and wxT.
|
static |
Definition at line 619 of file doxygen_parser.cpp.
References _T, wxString::clear(), commandTag, wxString::npos, wxString::rfind(), separatorTag, wxString::size(), wxString::StartsWith(), wxString::SubString(), and wxString::ToLong().
Referenced by OnDocumentationLink().
|
inline |
Definition at line 145 of file doxygen_parser.h.
void DocumentationHelper::OnAttach | ( | ) |
Definition at line 660 of file doxygen_parser.cpp.
References m_Enabled.
Referenced by RereadOptions().
wxString DocumentationHelper::OnDocumentationLink | ( | wxHtmlLinkEvent & | event, |
bool & | dismissPopup | ||
) |
Definition at line 920 of file doxygen_parser.cpp.
References _T, TokenTree::at(), cmdClose, cmdDisplayToken, cmdNone, cmdOpenDecl, cmdOpenImpl, cmdSearch, cmdSearchAll, wxString::find_last_of(), TokenTree::FindMatches(), GenerateHTML(), Manager::Get(), Manager::GetEditorManager(), Token::GetFilename(), Token::GetImplFilename(), NativeParser::GetParser(), ParserBase::GetTokenTree(), cbEditor::GotoTokenPosition(), HrefToCommand(), m_CC, Token::m_ImplLine, Token::m_Line, Token::m_Name, CodeCompletion::m_NativeParser, wxString::npos, EditorManager::Open(), wxString::rfind(), SaveTokenIdx(), wxString::size(), wxString::StartsWith(), wxString::SubString(), tkAnyContainer, tkAnyFunction, tkEnum, tkMacroDef, tkUndefined, wxString::ToLong(), wxString::Truncate(), wxEmptyString, and wxLaunchDefaultBrowser().
void DocumentationHelper::OnRelease | ( | ) |
Definition at line 668 of file doxygen_parser.cpp.
Referenced by RereadOptions().
void DocumentationHelper::RereadOptions | ( | ConfigManager * | cfg | ) |
Definition at line 892 of file doxygen_parser.cpp.
References _T, Manager::Get(), Manager::GetConfigManager(), m_Enabled, OnAttach(), OnRelease(), and ConfigManager::ReadBool().
Referenced by CCOptionsDlg::OnApply().
|
protected |
Definition at line 914 of file doxygen_parser.cpp.
References m_CurrentTokenIdx, and m_LastTokenIdx.
Referenced by OnDocumentationLink().
|
inline |
Definition at line 146 of file doxygen_parser.h.
Referenced by CCOptionsDlg::OnApply().
void DocumentationHelper::WriteOptions | ( | ConfigManager * | cfg | ) |
Definition at line 906 of file doxygen_parser.cpp.
References _T, Manager::Get(), Manager::GetConfigManager(), m_Enabled, and ConfigManager::Write().
Referenced by CCOptionsDlg::OnApply().
Definition at line 133 of file doxygen_parser.h.
Referenced by HrefToCommand().
|
protected |
Pointer to CodeComplete object.
Definition at line 156 of file doxygen_parser.h.
Referenced by OnDocumentationLink().
|
protected |
Documentation of which token was previously displayed.
Definition at line 158 of file doxygen_parser.h.
Referenced by GenerateHTML(), and SaveTokenIdx().
|
protected |
Definition at line 160 of file doxygen_parser.h.
Referenced by OnAttach(), RereadOptions(), and WriteOptions().
|
protected |
Definition at line 158 of file doxygen_parser.h.
Referenced by GenerateHTML(), and SaveTokenIdx().
Definition at line 132 of file doxygen_parser.h.
Referenced by HrefToCommand().