43 if (index >= 0 && index <
int(
m_tokens.size()))
72 return wxT(
"<invalid>");
91 m_columnLength[1] = std::max<int>(m_columnLength[1], t.funcName.length());
92 m_columnLength[2] = std::max<int>(m_columnLength[2], t.paramsAndreturnType.length());
95 for (
int ii = 0; ii < 3; ++ii)
154 BoxSizer1->
Fit(
this);
160 if (
Manager::Get()->GetConfigManager(
_T(
"code_completion"))->ReadBool(
_T(
"goto_function_window/column_mode")))
const wxString & GetItemFilterString(int index) const override
wxSize Fit(wxWindow *window)
static const long ID_CHECKBOX1
bool m_columnMode
0 is for non-column mode, 1 and 2 are for column mode.
ConfigManager * GetConfigManager(const wxString &name_space) const
const wxValidator wxDefaultValidator
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
virtual ~GotoFunctionDlg()
#define wxTE_PROCESS_ENTER
void CalcColumnWidth(wxListCtrl &list) override
void SetColumnMode(bool flag)
void Init(wxListCtrl *list, wxTextCtrl *text)
void AddToken(const FunctionToken &token)
int CmpNoCase(const wxString &s) const
wxString paramsAndreturnType
std::vector< int > m_indices
void Write(const wxString &name, const wxString &value, bool ignoreEmpty=false)
void SetIterator(IncrementalSelectIterator *iterator)
void BuildContent(wxWindow *parent, Iterator *iterator)
bool DeleteColumn(int col)
wxSizerItem * Add(wxWindow *window, const wxSizerFlags &flags)
IncrementalListCtrl * m_list
const wxSize wxDefaultSize
const wxPoint wxDefaultPosition
int GetColumnWidth(int column) const override
static const long ID_LISTCTRL1
#define wxDEFAULT_DIALOG_STYLE
The goto function dialog allow user to type a function name, and filter out the functions.
const wxString & _(const wxString &string)
void DeInit(wxWindow *window)
Class that implements a virtual list control that uses an IncrementalSelectIterator to populate the l...
std::vector< FunctionToken > m_tokens
int GetColumnCount() const
long InsertColumn(long col, const wxListItem &info)
void SetSizeHints(wxWindow *window)
void SetWindowStyleFlag(long style)
IncrementalSelectHandler m_handler
static const long ID_TEXTCTRL1
wxString GetDisplayText(int index, int column) const override
void OnModeClick(wxCommandEvent &event)
const FunctionToken * GetToken(int index) const
virtual void SetValue(bool state)
int GetTotalCount() const override