NCBI C++ ToolKit
|
Search Toolkit Book for CSearchControl
#include <gui/core/search_form_base.hpp>
Public Member Functions | |
CSearchControl (wxWindow *parent, wxWindowID id, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxSearchCtrlNameStr) | |
CSearchControl (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxSearchCtrlNameStr) | |
another constructor. More... | |
void | SetDictionary (list< string > *dict) |
void | Push () |
Public Member Functions inherited from CAutoCompleteCombo | |
CAutoCompleteCombo (wxWindow *parent, wxWindowID id=wxID_ANY) | |
CAutoCompleteCombo (wxWindow *parent, wxWindowID id, const wxString &value, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxT("auto complete combo")) | |
virtual | ~CAutoCompleteCombo () |
void | Init () |
void | Create (wxWindow *parent, wxWindowID id, const wxString &value, const wxPoint &pos, const wxSize &size, const wxArrayString &choices, long style=wxCB_DROPDOWN, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxT("auto complete combo")) |
void | SetItemsProvider (CIRef< IFilterItems > &provider) |
bool | HasProvider () const |
void | SetIgnoreCase (bool fIgnore) |
void | SetFiltered (bool fFiltered) |
void | SetMatchedOnly (bool fMatchedOnly) |
void | SetAutoOff (bool fAutoOff=true) |
void | SetBaseItems (const wxArrayString &choices) |
void | GetBaseItems (wxArrayString &choices) |
void | Push () |
Protected Attributes | |
size_t | m_MaxSize |
bool | m_bDoSelectAll |
bool | m_bIgnoreNextTextEdit |
list< string > * | m_pDict |
Protected Attributes inherited from CAutoCompleteCombo | |
wxTimer | m_Timer |
Additional Inherited Members | |
Protected Member Functions inherited from CAutoCompleteCombo | |
void | OnTextChanged (wxCommandEvent &event) |
void | OnItemSelected (wxCommandEvent &event) |
void | OnKeyDown (wxKeyEvent &event) |
void | OnIdle (wxIdleEvent &event) |
void | x_AutoComplete () |
Completes value from available choices. More... | |
void | x_OnTimer (wxTimerEvent &event) |
virtual wxArrayString | ProvideItems (const wxString &pattern) |
wxArrayString | GetFilteredItems (const wxString &pattern) |
Definition at line 124 of file search_form_base.hpp.
CSearchControl::CSearchControl | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxString & | value = wxEmptyString , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxValidator & | validator = wxDefaultValidator , |
||
const wxString & | name = wxSearchCtrlNameStr |
||
) |
Definition at line 58 of file search_form_base.cpp.
CSearchControl::CSearchControl | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxValidator & | validator = wxDefaultValidator , |
||
const wxString & | name = wxSearchCtrlNameStr |
||
) |
another constructor.
This is just for serving the code created using DialogBlock.
Definition at line 70 of file search_form_base.cpp.
void CSearchControl::Push | ( | ) |
Definition at line 108 of file search_form_base.cpp.
References m_MaxSize, m_pDict, ToStdString(), and rapidjson::value.
Referenced by CSearchFormBase::Push().
void CSearchControl::SetDictionary | ( | list< string > * | dict | ) |
Definition at line 97 of file search_form_base.cpp.
References ITERATE, m_pDict, CAutoCompleteCombo::SetBaseItems(), str(), and ToWxString().
Referenced by CSearchFormBase::SetDictionary().
|
protected |
Definition at line 150 of file search_form_base.hpp.
|
protected |
Definition at line 151 of file search_form_base.hpp.
|
protected |
Definition at line 149 of file search_form_base.hpp.
Referenced by Push().
|
protected |
Definition at line 152 of file search_form_base.hpp.
Referenced by Push(), and SetDictionary().