NCBI C++ ToolKit
|
Search Toolkit Book for CParseTextOptionsDlg
#include <gui/packages/pkg_sequence_edit/parse_text_options_dlg.hpp>
Public Member Functions | |
CParseTextOptionsDlg () | |
Constructors. More... | |
CParseTextOptionsDlg (wxWindow *parent, wxWindowID id=ID_CPARSETEXTOPTIONSDLG, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL, bool hide_remove_text_options=false) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CPARSETEXTOPTIONSDLG, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CParseTextOptionsDlg () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnStartTxtBtnSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_TXT_BTN More... | |
void | OnStartDigitsBtnSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_DIGITS_BTN More... | |
void | OnStartLettersBtnSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_LETTERS_BTN More... | |
void | OnEndTextBtnSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_TEXT_BTN More... | |
void | OnEndDigitsBtnSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_DIGITS_BTN More... | |
void | OnEndLettersBtnSelected (wxCommandEvent &event) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_LETTERS_BTN More... | |
void | OnRemoveFromParseSelected (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_REMOVE_FROM_PARSED_BTN More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
CRef< objects::edit::CParseTextOptions > | GetParseOptions () |
void | ClearValues (void) |
string | GetSelectedText (const string &input) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
static void | s_GetDigitsPosition (const string &str, size_t &pos, size_t &len) |
static void | s_GetLettersPosition (const string &str, size_t &pos, size_t &len) |
Private Attributes | |
bool | m_HideRemoveTextOptions |
CParseTextOptionsDlg class declaration
Definition at line 59 of file parse_text_options_dlg.hpp.
anonymous enum |
Definition at line 128 of file parse_text_options_dlg.hpp.
CParseTextOptionsDlg::CParseTextOptionsDlg | ( | ) |
Constructors.
CParseTextOptionsDlg type definition
CParseTextOptionsDlg event table definition
CParseTextOptionsDlg constructors
Definition at line 72 of file parse_text_options_dlg.cpp.
References Init().
CParseTextOptionsDlg::CParseTextOptionsDlg | ( | wxWindow * | parent, |
wxWindowID | id = ID_CPARSETEXTOPTIONSDLG , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL , |
||
bool | hide_remove_text_options = false |
||
) |
Definition at line 77 of file parse_text_options_dlg.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CParseTextOptionsDlg::~CParseTextOptionsDlg | ( | ) |
Destructor.
CParseTextOptionsDlg destructor
Definition at line 109 of file parse_text_options_dlg.cpp.
void CParseTextOptionsDlg::ClearValues | ( | void | ) |
Definition at line 275 of file parse_text_options_dlg.cpp.
References m_AlsoRemoveAfter, m_AlsoRemoveBefore, m_Case, m_EndDigitsBtn, m_EndLettersBtn, m_EndTextBtn, m_EndTextTxt, m_IncludingBtn, m_JustAfterBtn, m_RemoveFromParsedBtn, m_StartDigitsBtn, m_StartingAtBtn, m_StartLettersBtn, m_StartTextBtn, m_StartTextTxt, m_UpToBtn, and m_WholeWord.
Referenced by CQualParsePanel::ClearValues().
bool CParseTextOptionsDlg::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CPARSETEXTOPTIONSDLG , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CParseTextOptionsDlg creator
Definition at line 89 of file parse_text_options_dlg.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CParseTextOptionsDlg().
void CParseTextOptionsDlg::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CParseTextOptionsDlg
Definition at line 148 of file parse_text_options_dlg.cpp.
References _, ID_CPARSEOPTS_ALSO_RMV_AFTER_PARSE, ID_CPARSEOPTS_ALSO_RMV_BEFORE_PARSE, ID_CPARSEOPTS_CASE_INSENS_PARSE, ID_CPARSEOPTS_END_DIGITS_BTN, ID_CPARSEOPTS_END_LETTERS_BTN, ID_CPARSEOPTS_END_TEXT_BTN, ID_CPARSEOPTS_END_TEXT_TXT, ID_CPARSEOPTS_INCLUDING_BTN, ID_CPARSEOPTS_JUST_AFTER_BTN, ID_CPARSEOPTS_RADIOBUTTON5, ID_CPARSEOPTS_REMOVE_FROM_PARSED_BTN, ID_CPARSEOPTS_START_DIGITS_BTN, ID_CPARSEOPTS_START_LETTERS_BTN, ID_CPARSEOPTS_START_TEXT_BTN, ID_CPARSEOPTS_START_TEXT_TXT, ID_CPARSEOPTS_UP_TO_BTN, ID_CPARSEOPTS_WHOLE_WORD_PARSE, m_AlsoRemoveAfter, m_AlsoRemoveBefore, m_Case, m_EndDigitsBtn, m_EndLettersBtn, m_EndTextBtn, m_EndTextTxt, m_HideRemoveTextOptions, m_IncludingBtn, m_JustAfterBtn, m_RemoveFromParsedBtn, m_StartDigitsBtn, m_StartingAtBtn, m_StartLettersBtn, m_StartTextBtn, m_StartTextTxt, m_UpToBtn, and m_WholeWord.
Referenced by Create().
wxBitmap CParseTextOptionsDlg::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 313 of file parse_text_options_dlg.cpp.
wxIcon CParseTextOptionsDlg::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Get icon resources
Definition at line 326 of file parse_text_options_dlg.cpp.
CRef< objects::edit::CParseTextOptions > CParseTextOptionsDlg::GetParseOptions | ( | ) |
Definition at line 402 of file parse_text_options_dlg.cpp.
References m_AlsoRemoveAfter, m_AlsoRemoveBefore, m_Case, m_EndDigitsBtn, m_EndLettersBtn, m_EndTextBtn, m_EndTextTxt, m_IncludingBtn, m_RemoveFromParsedBtn, m_StartDigitsBtn, m_StartingAtBtn, m_StartLettersBtn, m_StartTextBtn, m_StartTextTxt, m_WholeWord, text(), and ToStdString().
Referenced by CParseSubpanel::ApplyToAll(), CParseSubpanel::ApplyToSelected(), CQualParsePanel::CheckForExistingText(), CParseTextDlg::GetCommand(), CRemoveTextInsideStrDlg::GetCommand(), GetSelectedText(), and CQualParsePanel::SetupAction().
Definition at line 436 of file parse_text_options_dlg.cpp.
References GetParseOptions(), and input().
Referenced by CParseSubpanel::ApplyToAll(), CParseSubpanel::ApplyToSelected(), CRemoveTextInsideStrDlg::GetCommand(), and CEditSeqId::x_CollectChangedIds().
void CParseTextOptionsDlg::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 120 of file parse_text_options_dlg.cpp.
References m_AlsoRemoveAfter, m_AlsoRemoveBefore, m_Case, m_EndDigitsBtn, m_EndLettersBtn, m_EndTextBtn, m_EndTextTxt, m_IncludingBtn, m_JustAfterBtn, m_RemoveFromParsedBtn, m_StartDigitsBtn, m_StartingAtBtn, m_StartLettersBtn, m_StartTextBtn, m_StartTextTxt, m_UpToBtn, m_WholeWord, and NULL.
Referenced by CParseTextOptionsDlg().
void CParseTextOptionsDlg::OnEndDigitsBtnSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_DIGITS_BTN
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_DIGITS_BTN
Definition at line 380 of file parse_text_options_dlg.cpp.
References m_EndTextTxt.
void CParseTextOptionsDlg::OnEndLettersBtnSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_LETTERS_BTN
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_LETTERS_BTN
Definition at line 390 of file parse_text_options_dlg.cpp.
References m_EndTextTxt.
void CParseTextOptionsDlg::OnEndTextBtnSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_TEXT_BTN
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_TEXT_BTN
Definition at line 370 of file parse_text_options_dlg.cpp.
References m_EndTextTxt.
void CParseTextOptionsDlg::OnRemoveFromParseSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_REMOVE_FROM_PARSED_BTN
Definition at line 395 of file parse_text_options_dlg.cpp.
References m_AlsoRemoveAfter, m_AlsoRemoveBefore, and m_RemoveFromParsedBtn.
void CParseTextOptionsDlg::OnStartDigitsBtnSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_DIGITS_BTN
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_DIGITS_BTN
Definition at line 360 of file parse_text_options_dlg.cpp.
References m_StartTextTxt.
void CParseTextOptionsDlg::OnStartLettersBtnSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_LETTERS_BTN
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_LETTERS_BTN
Definition at line 350 of file parse_text_options_dlg.cpp.
References m_StartTextTxt.
void CParseTextOptionsDlg::OnStartTxtBtnSelected | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_TXT_BTN
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_TXT_BTN
Definition at line 340 of file parse_text_options_dlg.cpp.
References m_StartTextTxt.
|
static |
|
static |
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 304 of file parse_text_options_dlg.cpp.
CNoTabCheckBox* CParseTextOptionsDlg::m_AlsoRemoveAfter |
Definition at line 161 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), Init(), and OnRemoveFromParseSelected().
CNoTabCheckBox* CParseTextOptionsDlg::m_AlsoRemoveBefore |
Definition at line 154 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), Init(), and OnRemoveFromParseSelected().
CNoTabCheckBox* CParseTextOptionsDlg::m_Case |
Definition at line 163 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
CNoTabRadioButton* CParseTextOptionsDlg::m_EndDigitsBtn |
Definition at line 159 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
CNoTabRadioButton* CParseTextOptionsDlg::m_EndLettersBtn |
Definition at line 160 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
CNoTabRadioButton* CParseTextOptionsDlg::m_EndTextBtn |
Definition at line 157 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
wxTextCtrl* CParseTextOptionsDlg::m_EndTextTxt |
Definition at line 158 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), Init(), OnEndDigitsBtnSelected(), OnEndLettersBtnSelected(), and OnEndTextBtnSelected().
|
private |
Definition at line 174 of file parse_text_options_dlg.hpp.
Referenced by CreateControls().
CNoTabRadioButton* CParseTextOptionsDlg::m_IncludingBtn |
Definition at line 156 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
CNoTabRadioButton* CParseTextOptionsDlg::m_JustAfterBtn |
Definition at line 148 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), and Init().
CNoTabCheckBox* CParseTextOptionsDlg::m_RemoveFromParsedBtn |
Definition at line 162 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), Init(), and OnRemoveFromParseSelected().
CNoTabRadioButton* CParseTextOptionsDlg::m_StartDigitsBtn |
Definition at line 152 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
CNoTabRadioButton* CParseTextOptionsDlg::m_StartingAtBtn |
Definition at line 149 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
CNoTabRadioButton* CParseTextOptionsDlg::m_StartLettersBtn |
Definition at line 153 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
CNoTabRadioButton* CParseTextOptionsDlg::m_StartTextBtn |
Definition at line 150 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().
wxTextCtrl* CParseTextOptionsDlg::m_StartTextTxt |
Definition at line 151 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), Init(), OnStartDigitsBtnSelected(), OnStartLettersBtnSelected(), and OnStartTxtBtnSelected().
CNoTabRadioButton* CParseTextOptionsDlg::m_UpToBtn |
Definition at line 155 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), and Init().
CNoTabCheckBox* CParseTextOptionsDlg::m_WholeWord |
Definition at line 164 of file parse_text_options_dlg.hpp.
Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().