40 #include <wx/stattext.h>
41 #include <wx/choice.h>
42 #include <wx/bmpbuttn.h>
43 #include <wx/checkbox.h>
44 #include <wx/valgen.h>
45 #include <wx/valtext.h>
46 #include <wx/msgdlg.h>
47 #include <wx/filedlg.h>
48 #include <wx/filename.h>
49 #include <wx/artprov.h>
50 #include <wx/bitmap.h>
83 SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
84 CAlgoToolManagerParamsPanel::Create( parent,
id, pos,
size, style );
89 GetSizer()->SetSizeHints(
this);
119 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
120 itemCAlgoToolManagerParamsPanel1->SetSizer(itemBoxSizer2);
125 wxCheckBox* itemCheckBox4 =
new wxCheckBox( itemCAlgoToolManagerParamsPanel1,
ID_CHECKBOX1,
_(
"Automatically select an appropriate strategy from L-INS-i, FFT-NS-i and FFT-NS-2 (default is FFT-NS-2). "), wxDefaultPosition, wxDefaultSize, 0 );
126 itemCheckBox4->SetValue(
false);
127 itemBoxSizer2->Add(itemCheckBox4, 0, wxGROW|wxALL, 5);
129 wxCheckBox* itemCheckBox5 =
new wxCheckBox( itemCAlgoToolManagerParamsPanel1,
ID_CHECKBOX,
_(
"Quiet mode (prints nothing to the console)"), wxDefaultPosition, wxDefaultSize, 0 );
130 itemCheckBox5->SetValue(
true);
131 itemBoxSizer2->Add(itemCheckBox5, 0, wxGROW|wxALL, 5);
133 wxBoxSizer* itemBoxSizer6 =
new wxBoxSizer(wxHORIZONTAL);
134 itemBoxSizer2->Add(itemBoxSizer6, 0, wxGROW|wxALL, 0);
136 wxStaticText* itemStaticText7 =
new wxStaticText( itemCAlgoToolManagerParamsPanel1, wxID_STATIC,
_(
"Command line options"), wxDefaultPosition, wxDefaultSize, 0 );
137 itemBoxSizer6->Add(itemStaticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
139 wxTextCtrl* itemTextCtrl8 =
new wxTextCtrl( itemCAlgoToolManagerParamsPanel1,
ID_TEXTCTRL11, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
140 itemBoxSizer6->Add(itemTextCtrl8, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
142 wxBoxSizer* itemBoxSizer9 =
new wxBoxSizer(wxHORIZONTAL);
143 itemBoxSizer2->Add(itemBoxSizer9, 0, wxGROW|wxALL, 0);
145 wxStaticText* itemStaticText10 =
new wxStaticText( itemCAlgoToolManagerParamsPanel1, wxID_STATIC,
_(
"Path to executable"), wxDefaultPosition, wxDefaultSize, 0 );
146 itemBoxSizer9->Add(itemStaticText10, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
148 wxTextCtrl* itemTextCtrl11 =
new wxTextCtrl( itemCAlgoToolManagerParamsPanel1,
ID_TEXTCTRL12, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
149 itemBoxSizer9->Add(itemTextCtrl11, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
151 wxBitmapButton* itemBitmapButton12 =
new wxBitmapButton( itemCAlgoToolManagerParamsPanel1,
ID_BITMAPBUTTON1, itemCAlgoToolManagerParamsPanel1->
GetBitmapResource(
wxT(
"menu::open")), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
152 itemBitmapButton12->SetHelpText(
_(
"Select MAFFT executable"));
154 itemBitmapButton12->SetToolTip(
_(
"Select MAFFT executable"));
155 itemBoxSizer9->Add(itemBitmapButton12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
158 itemCheckBox5->SetValidator( wxGenericValidator(&
GetData().m_QuietFlag) );
159 itemTextCtrl8->SetValidator( wxTextValidator(wxFILTER_NONE, &
GetData().m_CommandLine) );
176 return wxArtProvider::GetBitmap(name);
189 if (!CAlgoToolManagerParamsPanel::TransferDataFromWindow())
217 wxTextCtrl* textCtrl =
dynamic_cast<wxTextCtrl*
>(FindWindow(
ID_TEXTCTRL12));
220 wxString path = textCtrl->GetValue();
222 wxFileDialog dlg(
this,
wxT(
"Select a file"),
wxT(
""),
wxT(
""),
wxT(
"*"),
223 wxFD_OPEN|wxFD_FILE_MUST_EXIST);
227 if (dlg.ShowModal() != wxID_OK)
230 path = dlg.GetPath();
231 textCtrl->SetValue(path);
237 TransferDataToWindow();
TConstScopedObjects & SetObjects()
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size