39 #include <wx/stattext.h>
40 #include <wx/statbox.h>
41 #include <wx/textctrl.h>
42 #include <wx/checkbox.h>
43 #include <wx/checklst.h>
44 #include <wx/radiobut.h>
45 #include <wx/button.h>
49 #include <wx/valgen.h>
50 #include <wx/valtext.h>
82 SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY|wxWS_EX_BLOCK_EVENTS);
83 CDialog::Create( parent,
id, caption, pos,
size, style );
88 GetSizer()->SetSizeHints(
this);
118 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
119 itemCDialog1->SetSizer(itemBoxSizer2);
124 wxStaticBox* itemStaticBoxSizer4Static =
new wxStaticBox(
m_ParamsPanel,
wxID_ANY,
_(
"Select features to be shown"));
125 wxStaticBoxSizer* itemStaticBoxSizer4 =
new wxStaticBoxSizer(itemStaticBoxSizer4Static, wxVERTICAL);
128 wxFlexGridSizer* itemFlexGridSizer5 =
new wxFlexGridSizer(0, 2, 0, 0);
129 itemFlexGridSizer5->AddGrowableCol(1);
130 itemStaticBoxSizer4->Add(itemFlexGridSizer5, 0, wxGROW|wxALL, 5);
133 itemFlexGridSizer5->Add(itemStaticText6, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
135 wxTextCtrl* itemTextCtrl7 =
new wxTextCtrl(
m_ParamsPanel,
ID_LABELTEXT, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
136 itemFlexGridSizer5->Add(itemTextCtrl7, 1, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
138 wxStaticText* itemStaticText8 =
new wxStaticText(
m_ParamsPanel, wxID_STATIC,
_(
"Type: "), wxDefaultPosition, wxDefaultSize, 0 );
139 itemFlexGridSizer5->Add(itemStaticText8, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
141 wxArrayString m_TypesBoxStrings;
143 itemFlexGridSizer5->Add(
m_TypesBox, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
145 wxStaticText* itemStaticText10 =
new wxStaticText(
m_ParamsPanel, wxID_STATIC,
_(
"From:"), wxDefaultPosition, wxDefaultSize, 0 );
146 itemFlexGridSizer5->Add(itemStaticText10, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
148 wxBoxSizer* itemBoxSizer11 =
new wxBoxSizer(wxHORIZONTAL);
149 itemFlexGridSizer5->Add(itemBoxSizer11, 1, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
151 wxTextCtrl* itemTextCtrl12 =
new wxTextCtrl(
m_ParamsPanel,
ID_FROMINT, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
152 itemBoxSizer11->Add(itemTextCtrl12, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM, 5);
154 itemBoxSizer11->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
156 wxStaticText* itemStaticText14 =
new wxStaticText(
m_ParamsPanel, wxID_STATIC,
_(
"To:"), wxDefaultPosition, wxDefaultSize, 0 );
157 itemBoxSizer11->Add(itemStaticText14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
159 wxTextCtrl* itemTextCtrl15 =
new wxTextCtrl(
m_ParamsPanel,
ID_TOINT, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
160 itemBoxSizer11->Add(itemTextCtrl15, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
162 itemFlexGridSizer5->Add(5, 5, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
164 wxBoxSizer* itemBoxSizer17 =
new wxBoxSizer(wxVERTICAL);
165 itemFlexGridSizer5->Add(itemBoxSizer17, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5);
167 wxRadioButton* itemRadioButton18 =
new wxRadioButton(
m_ParamsPanel,
ID_RADIOINTERSECT,
_(
"Features intersecting the range"), wxDefaultPosition, wxDefaultSize, 0 );
168 itemRadioButton18->SetValue(
false);
169 itemBoxSizer17->Add(itemRadioButton18, 0, wxALIGN_LEFT|wxALL, 5);
171 wxRadioButton* itemRadioButton19 =
new wxRadioButton(
m_ParamsPanel,
ID_RADIOINCLUDE,
_(
"Features within the range only"), wxDefaultPosition, wxDefaultSize, 0 );
172 itemRadioButton19->SetValue(
false);
173 itemBoxSizer17->Add(itemRadioButton19, 0, wxALIGN_LEFT|wxALL, 5);
175 wxStaticText* itemStaticText20 =
new wxStaticText(
m_ParamsPanel, wxID_STATIC,
_(
"Length:"), wxDefaultPosition, wxDefaultSize, 0 );
176 itemFlexGridSizer5->Add(itemStaticText20, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
178 wxTextCtrl* itemTextCtrl21 =
new wxTextCtrl(
m_ParamsPanel,
ID_TEXTCTRL3, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
179 itemFlexGridSizer5->Add(itemTextCtrl21, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
181 wxStaticText* itemStaticText22 =
new wxStaticText(
m_ParamsPanel, wxID_STATIC,
_(
"Product:"), wxDefaultPosition, wxDefaultSize, 0 );
182 itemFlexGridSizer5->Add(itemStaticText22, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
184 wxBoxSizer* itemBoxSizer23 =
new wxBoxSizer(wxHORIZONTAL);
185 itemFlexGridSizer5->Add(itemBoxSizer23, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
188 itemBoxSizer23->Add(
m_ProductCtrl, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM, 5);
190 itemBoxSizer23->Add(5, 5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
193 itemCheckBox26->SetValue(
false);
194 itemBoxSizer23->Add(itemCheckBox26, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
196 wxCheckBox* itemCheckBox27 =
new wxCheckBox( itemCDialog1,
ID_CANCEL_CHECK,
_(
"Cancel filtering"), wxDefaultPosition, wxDefaultSize, 0 );
197 itemCheckBox27->SetValue(
false);
198 itemBoxSizer2->Add(itemCheckBox27, 0, wxALIGN_LEFT|wxALL, 5);
200 wxStdDialogButtonSizer* itemStdDialogButtonSizer28 =
new wxStdDialogButtonSizer;
202 itemBoxSizer2->Add(itemStdDialogButtonSizer28, 0, wxALIGN_RIGHT|wxALL, 5);
203 wxButton* itemButton29 =
new wxButton( itemCDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
204 itemStdDialogButtonSizer28->AddButton(itemButton29);
206 wxButton* itemButton30 =
new wxButton( itemCDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
207 itemStdDialogButtonSizer28->AddButton(itemButton30);
209 itemStdDialogButtonSizer28->Realize();
212 itemTextCtrl7->SetValidator( wxTextValidator( wxFILTER_NONE, &
m_Params.
m_Label ) );
213 itemTextCtrl12->SetValidator( wxTextValidator(wxFILTER_NUMERIC, &
m_FromLocStr) );
214 itemTextCtrl15->SetValidator( wxTextValidator(wxFILTER_NUMERIC, &
m_ToLocStr) );
215 itemRadioButton18->SetValidator( wxGenericValidator(&
m_Intersect) );
217 itemTextCtrl21->SetValidator( wxTextValidator(wxFILTER_NUMERIC, &
m_LengthLocStr) );
234 if( type_ix !=wxNOT_FOUND ){
239 if( !CDialog::TransferDataToWindow() ){
252 if( !CDialog::TransferDataFromWindow() ){
261 for(
unsigned int ix = 0; ix <
m_TypesBox->GetCount(); ix++ ){
EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX, CAdjustFeaturesForGaps::OnKnownUnknownSelected) EVT_CHECKBOX(ID_CADJUSTFEATURES_CHECKBOX1
wxCheckListBox * m_TypesBox
virtual bool TransferDataFromWindow()
void OnCancelFilteringClick(wxCommandEvent &event)
wxBitmap GetBitmapResource(const wxString &name)
void OnNoProductClick(wxCommandEvent &event)
void SetTypeNames(wxArrayString &types)
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Feature Filter"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
virtual bool TransferDataToWindow()
static bool ShowToolTips()
wxTextCtrl * m_ProductCtrl
#define ID_RADIOINTERSECT
static const struct type types[]
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
static string LongToString(long value, TNumToStringFlags flags=0, int base=10)
Convert Int to string.
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)