NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
CParseTextOptionsDlg Class Reference

Search Toolkit Book for CParseTextOptionsDlg

#include <gui/packages/pkg_sequence_edit/parse_text_options_dlg.hpp>

+ Inheritance diagram for CParseTextOptionsDlg:
+ Collaboration diagram for CParseTextOptionsDlg:

Public Types

enum  {
  ID_CPARSETEXTOPTIONSDLG = 6010 , ID_CPARSEOPTS_JUST_AFTER_BTN , ID_CPARSEOPTS_RADIOBUTTON5 , ID_CPARSEOPTS_START_TEXT_BTN ,
  ID_CPARSEOPTS_START_TEXT_TXT , ID_CPARSEOPTS_START_DIGITS_BTN , ID_CPARSEOPTS_START_LETTERS_BTN , ID_CPARSEOPTS_ALSO_RMV_BEFORE_PARSE ,
  ID_CPARSEOPTS_UP_TO_BTN , ID_CPARSEOPTS_INCLUDING_BTN , ID_CPARSEOPTS_END_TEXT_BTN , ID_CPARSEOPTS_END_TEXT_TXT ,
  ID_CPARSEOPTS_END_DIGITS_BTN , ID_CPARSEOPTS_END_LETTERS_BTN , ID_CPARSEOPTS_ALSO_RMV_AFTER_PARSE , ID_CPARSEOPTS_REMOVE_FROM_PARSED_BTN ,
  ID_CPARSEOPTS_CASE_INSENS_PARSE , ID_CPARSEOPTS_WHOLE_WORD_PARSE
}
 

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)
 

Public Attributes

CNoTabRadioButtonm_JustAfterBtn
 
CNoTabRadioButtonm_StartingAtBtn
 
CNoTabRadioButtonm_StartTextBtn
 
wxTextCtrl * m_StartTextTxt
 
CNoTabRadioButtonm_StartDigitsBtn
 
CNoTabRadioButtonm_StartLettersBtn
 
CNoTabCheckBoxm_AlsoRemoveBefore
 
CNoTabRadioButtonm_UpToBtn
 
CNoTabRadioButtonm_IncludingBtn
 
CNoTabRadioButtonm_EndTextBtn
 
wxTextCtrl * m_EndTextTxt
 
CNoTabRadioButtonm_EndDigitsBtn
 
CNoTabRadioButtonm_EndLettersBtn
 
CNoTabCheckBoxm_AlsoRemoveAfter
 
CNoTabCheckBoxm_RemoveFromParsedBtn
 
CNoTabCheckBoxm_Case
 
CNoTabCheckBoxm_WholeWord
 

Private Attributes

bool m_HideRemoveTextOptions
 

Detailed Description

CParseTextOptionsDlg class declaration

Definition at line 59 of file parse_text_options_dlg.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_CPARSETEXTOPTIONSDLG 
ID_CPARSEOPTS_JUST_AFTER_BTN 
ID_CPARSEOPTS_RADIOBUTTON5 
ID_CPARSEOPTS_START_TEXT_BTN 
ID_CPARSEOPTS_START_TEXT_TXT 
ID_CPARSEOPTS_START_DIGITS_BTN 
ID_CPARSEOPTS_START_LETTERS_BTN 
ID_CPARSEOPTS_ALSO_RMV_BEFORE_PARSE 
ID_CPARSEOPTS_UP_TO_BTN 
ID_CPARSEOPTS_INCLUDING_BTN 
ID_CPARSEOPTS_END_TEXT_BTN 
ID_CPARSEOPTS_END_TEXT_TXT 
ID_CPARSEOPTS_END_DIGITS_BTN 
ID_CPARSEOPTS_END_LETTERS_BTN 
ID_CPARSEOPTS_ALSO_RMV_AFTER_PARSE 
ID_CPARSEOPTS_REMOVE_FROM_PARSED_BTN 
ID_CPARSEOPTS_CASE_INSENS_PARSE 
ID_CPARSEOPTS_WHOLE_WORD_PARSE 

Definition at line 128 of file parse_text_options_dlg.hpp.

Constructor & Destructor Documentation

◆ CParseTextOptionsDlg() [1/2]

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

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 
)

◆ ~CParseTextOptionsDlg()

CParseTextOptionsDlg::~CParseTextOptionsDlg ( )

Destructor.

CParseTextOptionsDlg destructor

Definition at line 109 of file parse_text_options_dlg.cpp.

Member Function Documentation

◆ ClearValues()

void CParseTextOptionsDlg::ClearValues ( void  )

◆ Create()

bool CParseTextOptionsDlg::Create ( wxWindow *  parent,
wxWindowID  id = ID_CPARSETEXTOPTIONSDLG,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CParseTextOptionsDlg::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CParseTextOptionsDlg::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 313 of file parse_text_options_dlg.cpp.

◆ GetIconResource()

wxIcon CParseTextOptionsDlg::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 326 of file parse_text_options_dlg.cpp.

◆ GetParseOptions()

CRef< objects::edit::CParseTextOptions > CParseTextOptionsDlg::GetParseOptions ( )

◆ GetSelectedText()

string CParseTextOptionsDlg::GetSelectedText ( const string input)

◆ Init()

void CParseTextOptionsDlg::Init ( void  )

◆ OnEndDigitsBtnSelected()

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.

◆ OnEndLettersBtnSelected()

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.

◆ OnEndTextBtnSelected()

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.

◆ OnRemoveFromParseSelected()

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.

◆ OnStartDigitsBtnSelected()

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.

◆ OnStartLettersBtnSelected()

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.

◆ OnStartTxtBtnSelected()

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.

◆ s_GetDigitsPosition()

static void CParseTextOptionsDlg::s_GetDigitsPosition ( const string str,
size_t &  pos,
size_t &  len 
)
static

◆ s_GetLettersPosition()

static void CParseTextOptionsDlg::s_GetLettersPosition ( const string str,
size_t &  pos,
size_t &  len 
)
static

◆ ShowToolTips()

bool CParseTextOptionsDlg::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 304 of file parse_text_options_dlg.cpp.

Member Data Documentation

◆ m_AlsoRemoveAfter

CNoTabCheckBox* CParseTextOptionsDlg::m_AlsoRemoveAfter

◆ m_AlsoRemoveBefore

CNoTabCheckBox* CParseTextOptionsDlg::m_AlsoRemoveBefore

◆ m_Case

CNoTabCheckBox* CParseTextOptionsDlg::m_Case

Definition at line 163 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_EndDigitsBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_EndDigitsBtn

Definition at line 159 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_EndLettersBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_EndLettersBtn

Definition at line 160 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_EndTextBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_EndTextBtn

Definition at line 157 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_EndTextTxt

wxTextCtrl* CParseTextOptionsDlg::m_EndTextTxt

◆ m_HideRemoveTextOptions

bool CParseTextOptionsDlg::m_HideRemoveTextOptions
private

Definition at line 174 of file parse_text_options_dlg.hpp.

Referenced by CreateControls().

◆ m_IncludingBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_IncludingBtn

Definition at line 156 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_JustAfterBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_JustAfterBtn

Definition at line 148 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), and Init().

◆ m_RemoveFromParsedBtn

CNoTabCheckBox* CParseTextOptionsDlg::m_RemoveFromParsedBtn

◆ m_StartDigitsBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_StartDigitsBtn

Definition at line 152 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_StartingAtBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_StartingAtBtn

Definition at line 149 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_StartLettersBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_StartLettersBtn

Definition at line 153 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_StartTextBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_StartTextBtn

Definition at line 150 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().

◆ m_StartTextTxt

wxTextCtrl* CParseTextOptionsDlg::m_StartTextTxt

◆ m_UpToBtn

CNoTabRadioButton* CParseTextOptionsDlg::m_UpToBtn

Definition at line 155 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), and Init().

◆ m_WholeWord

CNoTabCheckBox* CParseTextOptionsDlg::m_WholeWord

Definition at line 164 of file parse_text_options_dlg.hpp.

Referenced by ClearValues(), CreateControls(), GetParseOptions(), and Init().


The documentation for this class was generated from the following files:
Modified on Tue Apr 16 20:11:11 2024 by modify_doxy.py rev. 669887