35 #include <wx/stattext.h>
78 : m_HideRemoveTextOptions(hide_remove_text_options)
92 wxPanel::Create( parent,
id, pos,
size, style );
97 GetSizer()->SetSizeHints(
this);
151 #if defined(__WXMSW__)
152 wxPanel* itemPanel1 =
new wxPanel(
this);
157 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
158 itemPanel1->SetSizer(itemBoxSizer2);
160 wxFlexGridSizer* itemFlexGridSizer3 =
new wxFlexGridSizer(0, 4, 0, 0);
161 itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
163 wxStaticText* itemStaticText4 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Between"), wxDefaultPosition, wxDefaultSize, 0 );
164 itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 3);
166 wxBoxSizer* itemBoxSizer5 =
new wxBoxSizer(wxHORIZONTAL);
167 itemFlexGridSizer3->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);
171 itemBoxSizer5->Add(
m_JustAfterBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
175 itemBoxSizer5->Add(
m_StartingAtBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
177 wxBoxSizer* itemBoxSizer8 =
new wxBoxSizer(wxHORIZONTAL);
178 itemFlexGridSizer3->Add(itemBoxSizer8, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);
182 itemBoxSizer8->Add(
m_StartTextBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
185 itemBoxSizer8->Add(
m_StartTextTxt, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
200 itemFlexGridSizer3->Add(0, 0, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 0);
202 wxStaticText* itemStaticText15 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"and"), wxDefaultPosition, wxDefaultSize, 0 );
203 itemFlexGridSizer3->Add(itemStaticText15, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 3);
205 wxBoxSizer* itemBoxSizer16 =
new wxBoxSizer(wxHORIZONTAL);
206 itemFlexGridSizer3->Add(itemBoxSizer16, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);
210 itemBoxSizer16->Add(
m_UpToBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
214 itemBoxSizer16->Add(
m_IncludingBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
216 wxBoxSizer* itemBoxSizer19 =
new wxBoxSizer(wxHORIZONTAL);
217 itemFlexGridSizer3->Add(itemBoxSizer19, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);
221 itemBoxSizer19->Add(
m_EndTextBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
224 itemBoxSizer19->Add(
m_EndTextTxt, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
228 itemBoxSizer19->Add(
m_EndDigitsBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
232 itemBoxSizer19->Add(
m_EndLettersBtn, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
239 wxBoxSizer* itemBoxSizer25 =
new wxBoxSizer(wxHORIZONTAL);
240 itemBoxSizer2->Add(itemBoxSizer25, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 1);
248 itemBoxSizer25->Add(
m_Case, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
252 itemBoxSizer25->Add(
m_WholeWord, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3);
254 #if defined(__WXMSW__)
255 wxBoxSizer* main_sizer =
new wxBoxSizer(wxHORIZONTAL);
256 main_sizer->Add(itemPanel1, 1, wxALL|wxGROW, 0);
257 SetSizerAndFit(main_sizer);
408 options->SetStartText(
text);
410 options->SetStartDigits();
412 options->SetStartLetters();
419 options->SetStopText(
text);
421 options->SetStopDigits();
423 options->SetStopLetters();
429 options->SetCaseInsensitive(
m_Case->GetValue());
439 return options->GetSelectedText(
input);
EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1
void CreateControls()
Creates the controls and sizers.
CNoTabRadioButton * m_EndTextBtn
CNoTabCheckBox * m_WholeWord
void OnStartTxtBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_TXT_BTN
void OnRemoveFromParseSelected(wxCommandEvent &event)
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_REMOVE_FROM_PARSED_BTN
void OnStartDigitsBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_DIGITS_BTN
CNoTabCheckBox * m_AlsoRemoveBefore
string GetSelectedText(const string &input)
@ ID_CPARSEOPTS_START_DIGITS_BTN
@ ID_CPARSEOPTS_END_DIGITS_BTN
@ ID_CPARSEOPTS_END_TEXT_TXT
@ ID_CPARSEOPTS_END_LETTERS_BTN
@ ID_CPARSEOPTS_UP_TO_BTN
@ ID_CPARSEOPTS_REMOVE_FROM_PARSED_BTN
@ ID_CPARSEOPTS_CASE_INSENS_PARSE
@ ID_CPARSEOPTS_RADIOBUTTON5
@ ID_CPARSEOPTS_START_TEXT_TXT
@ ID_CPARSEOPTS_INCLUDING_BTN
@ ID_CPARSEOPTS_END_TEXT_BTN
@ ID_CPARSEOPTS_WHOLE_WORD_PARSE
@ ID_CPARSEOPTS_START_LETTERS_BTN
@ ID_CPARSEOPTS_JUST_AFTER_BTN
@ ID_CPARSEOPTS_ALSO_RMV_AFTER_PARSE
@ ID_CPARSEOPTS_ALSO_RMV_BEFORE_PARSE
@ ID_CPARSEOPTS_START_TEXT_BTN
wxTextCtrl * m_StartTextTxt
CNoTabRadioButton * m_UpToBtn
CNoTabRadioButton * m_StartingAtBtn
CNoTabCheckBox * m_AlsoRemoveAfter
CParseTextOptionsDlg()
Constructors.
void OnEndLettersBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_LETTERS_BTN
bool Create(wxWindow *parent, wxWindowID id=ID_CPARSETEXTOPTIONSDLG, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
CNoTabRadioButton * m_StartLettersBtn
CNoTabRadioButton * m_JustAfterBtn
CNoTabRadioButton * m_EndDigitsBtn
CNoTabCheckBox * m_RemoveFromParsedBtn
void Init()
Initialises member variables.
void OnStartLettersBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_START_LETTERS_BTN
static bool ShowToolTips()
Should we show tooltips?
bool m_HideRemoveTextOptions
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxTextCtrl * m_EndTextTxt
void OnEndDigitsBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_DIGITS_BTN
CNoTabRadioButton * m_StartDigitsBtn
CRef< objects::edit::CParseTextOptions > GetParseOptions()
CNoTabRadioButton * m_EndLettersBtn
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
CNoTabRadioButton * m_IncludingBtn
void OnEndTextBtnSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_END_TEXT_BTN
CNoTabRadioButton * m_StartTextBtn
~CParseTextOptionsDlg()
Destructor.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size
string ToStdString(const wxString &s)