174 #ifndef CC_NO_COLLAPSE_ITEM 177 #endif // CC_NO_COLLAPSE_ITEM 223 DECLARE_EVENT_TABLE()
226 #endif // CLASSBROWSER_H
void OnViewScope(wxCommandEvent &event)
the view scope choice has changed, user can switch between view everything, view a single file...
wxSemaphore m_ClassBrowserSemaphore
semaphore to synchronize the GUI(class browser) and the tree builder thread, when the GUI post the se...
void UpdateSash()
update the position sash bar between top tree and the bottom tree, the position (percentage) of the t...
ClassBrowserBuilderThread * m_ClassBrowserBuilderThread
a wxThread used to build the wxTreeCtrl for the top and bottom in the class(symbol) browser because i...
CCTreeCtrl * m_CCTreeCtrl
the top(main) level tree control, see above diagram for details
void OnThreadEvent(wxCommandEvent &event)
class browser builder thread will send notification event to the parent, this is the event handler fu...
void OnDebugSmartSense(wxCommandEvent &event)
whether print the debug log message
wxTreeItemId FindNext(const wxString &search, wxTreeCtrl *tree, const wxTreeItemId &start)
get the next item of the "start" item, if no next item in the current level, go up one level ...
worker thread to build the symbol browser tree controls(both the top tree and the bottom tree) When t...
void UpdateClassBrowserView(bool checkHeaderSwap=false)
update or refresh the symbol browser trees
ParserBase * m_Parser
a pointer to the associated parser object
ClassBrowser(wxWindow *parent, NativeParser *np)
class constructor
bool RecursiveSearch(const wxString &search, wxTreeCtrl *tree, const wxTreeItemId &parent, wxTreeItemId &result)
find an item whose item name matches the "search" key string in the sub-tree
void ThreadedBuildTree(cbProject *activeProject)
create a thread to update the symbol tree, if the thread is already created, just pause and resume th...
void OnTreeItemDoubleClick(wxTreeEvent &event)
handler for the mouse double click on a tree item, we usually make a jump to the associated token's p...
NativeParser * m_NativeParser
the pointer to parser manager object
void OnForceReparse(wxCommandEvent &event)
reparse the current project
wxString m_ActiveFilename
source file name of active editor, used for filtering(if view option is Current file's symbols) ...
void OnCBViewMode(wxCommandEvent &event)
user change the view mode (View Inheritance or View the bottom tree)
CCTreeCtrl * m_CCTreeCtrlBottom
the bottom tree control, mainly used to show the member variable and member functions ...
Represents a Code::Blocks project.
void OnTreeItemRightClick(wxTreeEvent &event)
show a context menu
void OnRefreshTree(wxCommandEvent &event)
force rebuilding the tree
void OnJumpTo(wxCommandEvent &event)
the handler for jump to declaration or jump to definition menu item
void OnSetSortType(wxCommandEvent &event)
sort type changed
void OnCBExpandNS(wxCommandEvent &event)
whether automatically expand the namespace option switch
symbol browser panel is shown in the Management panel besides projects browser panel.
wxTreeItemId FindChild(const wxString &search, wxTreeCtrl *tree, const wxTreeItemId &start, bool recurse=false, bool partialMatch=false)
get a child of the parent item, which matches the "search" key
NativeParser class is just like a manager class to control Parser objects.
void OnTreeItemExpanding(wxTreeEvent &event)
expanding one node of top tree
void OnTreeItemCollapsing(wxTreeEvent &event)
collapse one node of the top tree
virtual ~ClassBrowser()
class destructor
bool FoundMatch(const wxString &search, wxTreeCtrl *tree, const wxTreeItemId &item)
string compare between the search and the token's name associated with item
wxComboBox * m_Search
the search combobox in the header of the window
void OnSearch(wxCommandEvent &event)
when user try to search a word in the symbols tree
void SetParser(ParserBase *parser)
Set the Parser object associated with the class browser.
void OnTreeSelChanged(wxTreeEvent &event)
item selection changed in the top tree