Code::Blocks  SVN r11506
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
DocumentationHelper Class Reference

#include <doxygen_parser.h>

Collaboration diagram for DocumentationHelper:

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)
 

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

CodeCompletionm_CC
 Pointer to CodeComplete object. More...
 
int m_CurrentTokenIdx
 Documentation of which token was previously displayed. More...
 
int m_LastTokenIdx
 
bool m_Enabled
 

Detailed Description

Definition at line 107 of file doxygen_parser.h.

Member Enumeration Documentation

◆ Command

Enumerator
cmdNone 
cmdDisplayToken 
cmdSearch 
cmdSearchAll 
cmdOpenDecl 
cmdOpenImpl 
cmdClose 

Definition at line 111 of file doxygen_parser.h.

Constructor & Destructor Documentation

◆ DocumentationHelper()

DocumentationHelper::DocumentationHelper ( CodeCompletion cc)

◆ ~DocumentationHelper()

DocumentationHelper::~DocumentationHelper ( )

Definition at line 656 of file doxygen_parser.cpp.

Member Function Documentation

◆ CommandToAnchor()

wxString DocumentationHelper::CommandToAnchor ( Command  cmd,
const wxString name,
const wxString args = 0 
)
static

Definition at line 600 of file doxygen_parser.cpp.

References _T, and wxString::Format().

Referenced by GenerateHTML().

◆ CommandToAnchorInt()

wxString DocumentationHelper::CommandToAnchorInt ( Command  cmd,
const wxString name,
int  arg0 
)
static

Definition at line 613 of file doxygen_parser.cpp.

References _T, and wxString::Format().

Referenced by GenerateHTML().

◆ ConvertArgsToAnchors()

wxString DocumentationHelper::ConvertArgsToAnchors ( wxString  args)
static

◆ ConvertTypeToAnchor()

wxString DocumentationHelper::ConvertTypeToAnchor ( wxString  fullType)
static

◆ DoxygenToHTML()

wxString DocumentationHelper::DoxygenToHTML ( const wxString doc)
static

◆ ExtractTypeAndName()

wxString DocumentationHelper::ExtractTypeAndName ( wxString  tok,
wxString outName = 0 
)
static

◆ GenerateHTML() [1/2]

wxString DocumentationHelper::GenerateHTML ( int  tokenIdx,
TokenTree tree 
)

◆ GenerateHTML() [2/2]

wxString DocumentationHelper::GenerateHTML ( const TokenIdxSet tokensIdx,
TokenTree tree 
)

◆ HrefToCommand()

DocumentationHelper::Command DocumentationHelper::HrefToCommand ( const wxString href,
wxString args 
)
static

◆ IsEnabled()

bool DocumentationHelper::IsEnabled ( )
inline

Definition at line 145 of file doxygen_parser.h.

◆ OnAttach()

void DocumentationHelper::OnAttach ( )

Definition at line 660 of file doxygen_parser.cpp.

References m_Enabled.

Referenced by RereadOptions().

◆ OnDocumentationLink()

wxString DocumentationHelper::OnDocumentationLink ( wxHtmlLinkEvent &  event,
bool &  dismissPopup 
)

◆ OnRelease()

void DocumentationHelper::OnRelease ( )

Definition at line 668 of file doxygen_parser.cpp.

Referenced by RereadOptions().

◆ RereadOptions()

void DocumentationHelper::RereadOptions ( ConfigManager cfg)

◆ SaveTokenIdx()

void DocumentationHelper::SaveTokenIdx ( )
protected

Definition at line 914 of file doxygen_parser.cpp.

References m_CurrentTokenIdx, and m_LastTokenIdx.

Referenced by OnDocumentationLink().

◆ SetEnabled()

void DocumentationHelper::SetEnabled ( bool  enabled)
inline

Definition at line 146 of file doxygen_parser.h.

Referenced by CCOptionsDlg::OnApply().

◆ WriteOptions()

void DocumentationHelper::WriteOptions ( ConfigManager cfg)

Member Data Documentation

◆ commandTag

const wxString DocumentationHelper::commandTag = _T("cmd=")
static

Definition at line 133 of file doxygen_parser.h.

Referenced by HrefToCommand().

◆ m_CC

CodeCompletion* DocumentationHelper::m_CC
protected

Pointer to CodeComplete object.

Definition at line 156 of file doxygen_parser.h.

Referenced by OnDocumentationLink().

◆ m_CurrentTokenIdx

int DocumentationHelper::m_CurrentTokenIdx
protected

Documentation of which token was previously displayed.

Definition at line 158 of file doxygen_parser.h.

Referenced by GenerateHTML(), and SaveTokenIdx().

◆ m_Enabled

bool DocumentationHelper::m_Enabled
protected

Definition at line 160 of file doxygen_parser.h.

Referenced by OnAttach(), RereadOptions(), and WriteOptions().

◆ m_LastTokenIdx

int DocumentationHelper::m_LastTokenIdx
protected

Definition at line 158 of file doxygen_parser.h.

Referenced by GenerateHTML(), and SaveTokenIdx().

◆ separatorTag

const wxChar DocumentationHelper::separatorTag = _T('+')
static

Definition at line 132 of file doxygen_parser.h.

Referenced by HrefToCommand().


The documentation for this class was generated from the following files: