13 #ifdef CC_BUILDTREE_MEASURING 28 m_TokenIndex(token ? token->m_Index : -1),
29 m_TokenKind(token ? token->m_TokenKind :
tkUndefined),
30 m_TokenName(token ? token->m_Name :
_T(
"")),
31 m_ParentIndex(parentIdx),
32 m_Ticket(token ? token->GetTicket() : 0)
48 CCTreeCtrl::CCTreeCtrl()
50 Compare = &CBNoCompare;
156 #ifdef CC_BUILDTREE_MEASURING 161 while (parent.
IsOk() && existing.
IsOk())
164 if (!prevItem.
IsOk())
178 else if (existing.
IsOk())
181 #ifdef CC_BUILDTREE_MEASURING wxString F(const wxChar *msg,...)
sprintf-like function
BrowserSortType
specify the sort order of the symbol tree nodes
CCTreeCtrlExpandedItemData(const CCTreeCtrlData *data, const int level)
wxString m_Name
Token's name, it can be searched in the TokenTree.
CCTreeCtrlData(SpecialFolder sf=sfToken, Token *token=0, short int kindMask=0xffff, int parentIdx=-1)
void RemoveDoubles(const wxTreeItemId &parent)
static bool IsAppShuttingDown()
TokenKind m_TokenKind
a copy of Token::m_TokenKind
static int CBAlphabetCompare(CCTreeCtrlData *lhs, CCTreeCtrlData *rhs)
SpecialFolder m_SpecialFolder
the node's kind, it could be "root", "normal token",
static int CBScopeCompare(CCTreeCtrlData *lhs, CCTreeCtrlData *rhs)
unsigned int m_Line
Line index where the token was met, which is 1 based.
virtual wxTreeItemData * GetItemData(const wxTreeItemId &item) const
void SetCompareFunction(const BrowserSortType type)
TokenScope m_Scope
public? private? protected?
wxString DisplayName() const
a short simple string to show the token information, this usually generate for show the tip message w...
void DebugLog(const wxString &msg)
unsigned int m_FileIdx
File index in TokenTree.
a symbol found in the parsed files, it can be many kinds, such as a variable, a class and so on...
Token * m_Token
a pointer to the associated Token instance in the TokenTree
IMPLEMENT_DYNAMIC_CLASS(cbDummyEditor, wxPGEditor)
virtual wxTreeItemId GetLastChild(const wxTreeItemId &item) const
static int CBLineCompare(CCTreeCtrlData *lhs, CCTreeCtrlData *rhs)
Actual data stored with each node in the symbol tree.
static int CBKindCompare(CCTreeCtrlData *lhs, CCTreeCtrlData *rhs)
virtual void Delete(const wxTreeItemId &item)
SpecialFolder
Specify which kind of node it is.
int(* Compare)(CCTreeCtrlData *lhs, CCTreeCtrlData *rhs)
virtual wxTreeItemId GetPrevSibling(const wxTreeItemId &item) const
public, protected, private
int OnCompareItems(const wxTreeItemId &item1, const wxTreeItemId &item2)
static int CBNoCompare(CCTreeCtrlData *lhs, CCTreeCtrlData *rhs)