NCBI C++ ToolKit
Public Member Functions | Protected Attributes | List of all members
CSearchControl Class Reference

Search Toolkit Book for CSearchControl

CSearchControl. More...

#include <gui/core/search_form_base.hpp>

+ Inheritance diagram for CSearchControl:
+ Collaboration diagram for CSearchControl:

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)
 

Detailed Description

CSearchControl.

Definition at line 124 of file search_form_base.hpp.

Constructor & Destructor Documentation

◆ CSearchControl() [1/2]

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() [2/2]

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.

Member Function Documentation

◆ Push()

void CSearchControl::Push ( )

Definition at line 108 of file search_form_base.cpp.

References m_MaxSize, m_pDict, ToStdString(), and value.

Referenced by CSearchFormBase::Push().

◆ SetDictionary()

void CSearchControl::SetDictionary ( list< string > *  dict)

Member Data Documentation

◆ m_bDoSelectAll

bool CSearchControl::m_bDoSelectAll
protected

Definition at line 150 of file search_form_base.hpp.

◆ m_bIgnoreNextTextEdit

bool CSearchControl::m_bIgnoreNextTextEdit
protected

Definition at line 151 of file search_form_base.hpp.

◆ m_MaxSize

size_t CSearchControl::m_MaxSize
protected

Definition at line 149 of file search_form_base.hpp.

Referenced by Push().

◆ m_pDict

list<string>* CSearchControl::m_pDict
protected

Definition at line 152 of file search_form_base.hpp.

Referenced by Push(), and SetDictionary().


The documentation for this class was generated from the following files:
Modified on Sat Feb 24 07:46:35 2024 by modify_doxy.py rev. 669887