Code::Blocks
SVN r11506
|
The goto function dialog allow user to type a function name, and filter out the functions. More...
#include <gotofunctiondlg.h>
Classes | |
struct | FunctionToken |
struct | Iterator |
Public Member Functions | |
GotoFunctionDlg (wxWindow *parent, Iterator *iterator) | |
virtual | ~GotoFunctionDlg () |
int | GetSelection () |
Public Member Functions inherited from wxDialog | |
virtual int | ShowModal () |
Private Member Functions | |
void | OnModeClick (wxCommandEvent &event) |
void | BuildContent (wxWindow *parent, Iterator *iterator) |
void | SwitchMode () |
Private Attributes | |
IncrementalListCtrl * | m_list |
wxCheckBox * | m_mode |
wxTextCtrl * | m_text |
IncrementalSelectHandler | m_handler |
Iterator * | m_iterator |
Static Private Attributes | |
static const long | ID_CHECKBOX1 = wxNewId() |
static const long | ID_TEXTCTRL1 = wxNewId() |
static const long | ID_LISTCTRL1 = wxNewId() |
The goto function dialog allow user to type a function name, and filter out the functions.
For example, you have three functions in a cpp file
When user type "fa" in the text ctrl, only "fa1" and "fa2" will shown in the list. The mode option defines how the list is shown. If user want to show the function return type, function name and function parameters in different columns, then the check box should be selected
Definition at line 37 of file gotofunctiondlg.h.
struct GotoFunctionDlg::FunctionToken |
Definition at line 123 of file gotofunctiondlg.cpp.
References BuildContent().
|
virtual |
Definition at line 168 of file gotofunctiondlg.cpp.
References IncrementalSelectHandler::DeInit(), and m_handler.
Definition at line 130 of file gotofunctiondlg.cpp.
References _(), _T, wxBoxSizer::Add(), wxBoxSizer::Fit(), Manager::Get(), ID_CHECKBOX1, ID_LISTCTRL1, ID_TEXTCTRL1, IncrementalSelectHandler::Init(), m_handler, m_list, m_mode, m_text, OnModeClick(), IncrementalListCtrl::SetIterator(), wxBoxSizer::SetSizeHints(), wxCheckBox::SetValue(), SwitchMode(), wxALIGN_CENTER_VERTICAL, wxALL, wxBOTTOM, wxCLOSE_BOX, wxDEFAULT_DIALOG_STYLE, wxDefaultPosition, wxDefaultSize, wxDefaultValidator, wxEmptyString, wxEXPAND, wxHORIZONTAL, wxHSCROLL, wxID_ANY, wxLC_REPORT, wxLC_SINGLE_SEL, wxLC_VIRTUAL, wxLEFT, wxMAXIMIZE_BOX, wxRESIZE_BORDER, wxRIGHT, wxTE_PROCESS_ENTER, wxVERTICAL, and wxVSCROLL.
Referenced by GotoFunctionDlg().
int GotoFunctionDlg::GetSelection | ( | ) |
Definition at line 210 of file gotofunctiondlg.cpp.
References IncrementalSelectHandler::GetSelection(), and m_handler.
Referenced by CodeCompletion::OnGotoFunction().
|
private |
Definition at line 199 of file gotofunctiondlg.cpp.
References _T, IncrementalSelectHandler::FilterItems(), Manager::Get(), Manager::GetConfigManager(), wxCheckBox::IsChecked(), m_handler, m_mode, SwitchMode(), and ConfigManager::Write().
Referenced by BuildContent().
|
private |
Definition at line 176 of file gotofunctiondlg.cpp.
References _(), wxListCtrl::DeleteColumn(), wxListCtrl::GetColumnCount(), GotoFunctionDlg::Iterator::GetColumnWidth(), wxListCtrl::InsertColumn(), wxCheckBox::IsChecked(), m_iterator, m_list, m_mode, GotoFunctionDlg::Iterator::SetColumnMode(), wxListCtrl::SetWindowStyleFlag(), wxLC_NO_HEADER, and wxLIST_FORMAT_LEFT.
Referenced by BuildContent(), and OnModeClick().
|
staticprivate |
Definition at line 86 of file gotofunctiondlg.h.
Referenced by BuildContent().
|
staticprivate |
Definition at line 88 of file gotofunctiondlg.h.
Referenced by BuildContent().
|
staticprivate |
Definition at line 87 of file gotofunctiondlg.h.
Referenced by BuildContent().
|
private |
Definition at line 99 of file gotofunctiondlg.h.
Referenced by BuildContent(), GetSelection(), OnModeClick(), and ~GotoFunctionDlg().
|
private |
Definition at line 100 of file gotofunctiondlg.h.
Referenced by SwitchMode().
|
private |
Definition at line 80 of file gotofunctiondlg.h.
Referenced by BuildContent(), and SwitchMode().
|
private |
Definition at line 81 of file gotofunctiondlg.h.
Referenced by BuildContent(), OnModeClick(), and SwitchMode().
|
private |
Definition at line 82 of file gotofunctiondlg.h.
Referenced by BuildContent().