Code::Blocks  SVN r11506
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
GotoFunctionDlg Class Reference

The goto function dialog allow user to type a function name, and filter out the functions. More...

#include <gotofunctiondlg.h>

Inheritance diagram for GotoFunctionDlg:
Collaboration diagram for GotoFunctionDlg:

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

IncrementalListCtrlm_list
 
wxCheckBoxm_mode
 
wxTextCtrlm_text
 
IncrementalSelectHandler m_handler
 
Iteratorm_iterator
 

Static Private Attributes

static const long ID_CHECKBOX1 = wxNewId()
 
static const long ID_TEXTCTRL1 = wxNewId()
 
static const long ID_LISTCTRL1 = wxNewId()
 

Detailed Description

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

int fa1();
int fa2();
int fb1();

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.


Class Documentation

◆ GotoFunctionDlg::FunctionToken

struct GotoFunctionDlg::FunctionToken

Definition at line 40 of file gotofunctiondlg.h.

Collaboration diagram for GotoFunctionDlg::FunctionToken:
Class Members
wxString displayName
wxString funcName
unsigned implLine
unsigned line
wxString name
wxString paramsAndreturnType

Constructor & Destructor Documentation

◆ GotoFunctionDlg()

GotoFunctionDlg::GotoFunctionDlg ( wxWindow parent,
Iterator iterator 
)

Definition at line 123 of file gotofunctiondlg.cpp.

References BuildContent().

◆ ~GotoFunctionDlg()

GotoFunctionDlg::~GotoFunctionDlg ( )
virtual

Definition at line 168 of file gotofunctiondlg.cpp.

References IncrementalSelectHandler::DeInit(), and m_handler.

Member Function Documentation

◆ BuildContent()

void GotoFunctionDlg::BuildContent ( wxWindow parent,
Iterator iterator 
)
private

◆ GetSelection()

int GotoFunctionDlg::GetSelection ( )

◆ OnModeClick()

void GotoFunctionDlg::OnModeClick ( wxCommandEvent event)
private

◆ SwitchMode()

void GotoFunctionDlg::SwitchMode ( )
private

Member Data Documentation

◆ ID_CHECKBOX1

const long GotoFunctionDlg::ID_CHECKBOX1 = wxNewId()
staticprivate

Definition at line 86 of file gotofunctiondlg.h.

Referenced by BuildContent().

◆ ID_LISTCTRL1

const long GotoFunctionDlg::ID_LISTCTRL1 = wxNewId()
staticprivate

Definition at line 88 of file gotofunctiondlg.h.

Referenced by BuildContent().

◆ ID_TEXTCTRL1

const long GotoFunctionDlg::ID_TEXTCTRL1 = wxNewId()
staticprivate

Definition at line 87 of file gotofunctiondlg.h.

Referenced by BuildContent().

◆ m_handler

IncrementalSelectHandler GotoFunctionDlg::m_handler
private

Definition at line 99 of file gotofunctiondlg.h.

Referenced by BuildContent(), GetSelection(), OnModeClick(), and ~GotoFunctionDlg().

◆ m_iterator

Iterator* GotoFunctionDlg::m_iterator
private

Definition at line 100 of file gotofunctiondlg.h.

Referenced by SwitchMode().

◆ m_list

IncrementalListCtrl* GotoFunctionDlg::m_list
private

Definition at line 80 of file gotofunctiondlg.h.

Referenced by BuildContent(), and SwitchMode().

◆ m_mode

wxCheckBox* GotoFunctionDlg::m_mode
private

Definition at line 81 of file gotofunctiondlg.h.

Referenced by BuildContent(), OnModeClick(), and SwitchMode().

◆ m_text

wxTextCtrl* GotoFunctionDlg::m_text
private

Definition at line 82 of file gotofunctiondlg.h.

Referenced by BuildContent().


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