NCBI C++ ToolKit
|
Search Toolkit Book for CWordSubstitutionDlg
#include <gui/widgets/edit/word_substitute_dlg.hpp>
Public Member Functions | |
CWordSubstitutionDlg () | |
CWordSubstitutionDlg (wxWindow *parent, CRef< objects::CWord_substitution_set > word_subst, wxWindowID id=wxID_ANY, const wxString &caption=_("Word Substitution List"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Word Substitution List"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
~CWordSubstitutionDlg () | |
void | Init () |
void | CreateControls () |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
void | OnAccept (wxCommandEvent &event) |
void | OnCancel (wxCommandEvent &event) |
void | OnAdd (wxCommandEvent &event) |
void | OnRemove (wxCommandEvent &event) |
void | InitSubstitutions (CRef< objects::CWord_substitution_set > word_subst) |
Static Public Member Functions | |
static bool | ShowToolTips () |
static string | GetDescription (CRef< objects::CWord_substitution > ws) |
Private Attributes | |
wxTextCtrl * | m_Pattern |
wxTextCtrl * | m_Subst |
wxCheckBox * | m_IgnoreCase |
wxCheckBox * | m_WholeWord |
wxCheckListBox * | m_CheckListBox |
map< string, CRef< objects::CWord_substitution > > | m_label_to_subst |
Definition at line 58 of file word_substitute_dlg.hpp.
CWordSubstitutionDlg::CWordSubstitutionDlg | ( | ) |
Definition at line 62 of file word_substitute_dlg.cpp.
References Init().
CWordSubstitutionDlg::CWordSubstitutionDlg | ( | wxWindow * | parent, |
CRef< objects::CWord_substitution_set > | word_subst, | ||
wxWindowID | id = wxID_ANY , |
||
const wxString & | caption = _("Word Substitution List") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 67 of file word_substitute_dlg.cpp.
References Create(), Init(), InitSubstitutions(), and ncbi::grid::netcache::search::fields::size.
CWordSubstitutionDlg::~CWordSubstitutionDlg | ( | ) |
Definition at line 90 of file word_substitute_dlg.cpp.
bool CWordSubstitutionDlg::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxString & | caption = _("Word Substitution List") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 74 of file word_substitute_dlg.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CWordSubstitutionDlg().
void CWordSubstitutionDlg::CreateControls | ( | ) |
Definition at line 107 of file word_substitute_dlg.cpp.
References _, ID_WORDSUBST_ADD, ID_WORDSUBST_REMOVE, line1, m_CheckListBox, m_IgnoreCase, m_Pattern, m_Subst, m_WholeWord, and wxID_ANY.
Referenced by Create().
wxBitmap CWordSubstitutionDlg::GetBitmapResource | ( | const wxString & | name | ) |
Definition at line 168 of file word_substitute_dlg.cpp.
Definition at line 259 of file word_substitute_dlg.cpp.
References NStr::Join(), and str().
Referenced by CAdvStringConstraintPanel< T >::GetDescription(), InitSubstitutions(), and OnAdd().
wxIcon CWordSubstitutionDlg::GetIconResource | ( | const wxString & | name | ) |
Definition at line 176 of file word_substitute_dlg.cpp.
void CWordSubstitutionDlg::Init | ( | void | ) |
Definition at line 96 of file word_substitute_dlg.cpp.
References m_CheckListBox, m_IgnoreCase, m_Pattern, m_Subst, m_WholeWord, and NULL.
Referenced by CWordSubstitutionDlg().
void CWordSubstitutionDlg::InitSubstitutions | ( | CRef< objects::CWord_substitution_set > | word_subst | ) |
Definition at line 274 of file word_substitute_dlg.cpp.
References GetDescription(), label, m_CheckListBox, and m_label_to_subst.
Referenced by CWordSubstitutionDlg().
void CWordSubstitutionDlg::OnAccept | ( | wxCommandEvent & | event | ) |
Definition at line 190 of file word_substitute_dlg.cpp.
References CWordSubstitutionSetConsumer::AddWordSubstSet(), and m_label_to_subst.
void CWordSubstitutionDlg::OnAdd | ( | wxCommandEvent & | event | ) |
Definition at line 205 of file word_substitute_dlg.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), GetDescription(), label, m_CheckListBox, m_IgnoreCase, m_label_to_subst, m_Pattern, m_Subst, m_WholeWord, NStr::ReplaceInPlace(), NStr::Split(), str(), and NStr::TruncateSpaces().
void CWordSubstitutionDlg::OnCancel | ( | wxCommandEvent & | event | ) |
Definition at line 185 of file word_substitute_dlg.cpp.
void CWordSubstitutionDlg::OnRemove | ( | wxCommandEvent & | event | ) |
Definition at line 238 of file word_substitute_dlg.cpp.
References map_checker< Container >::erase(), i, set< Key, Compare >::insert(), label, m_CheckListBox, and m_label_to_subst.
|
static |
Definition at line 164 of file word_substitute_dlg.cpp.
|
private |
Definition at line 113 of file word_substitute_dlg.hpp.
Referenced by CreateControls(), Init(), InitSubstitutions(), OnAdd(), and OnRemove().
|
private |
Definition at line 111 of file word_substitute_dlg.hpp.
Referenced by CreateControls(), Init(), and OnAdd().
Definition at line 114 of file word_substitute_dlg.hpp.
Referenced by InitSubstitutions(), OnAccept(), OnAdd(), and OnRemove().
|
private |
Definition at line 109 of file word_substitute_dlg.hpp.
Referenced by CreateControls(), Init(), and OnAdd().
|
private |
Definition at line 110 of file word_substitute_dlg.hpp.
Referenced by CreateControls(), Init(), and OnAdd().
|
private |
Definition at line 112 of file word_substitute_dlg.hpp.
Referenced by CreateControls(), Init(), and OnAdd().