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>
51 #include "wx/bitmap.h"
83 SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
85 CAlgoToolManagerParamsPanel::Create( parent,
id, pos,
size, style );
94 GetSizer()->SetSizeHints(
this);
120 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
121 itemCAlgoToolManagerParamsPanel1->SetSizer(itemBoxSizer2);
126 wxBoxSizer* itemBoxSizer4 =
new wxBoxSizer(wxHORIZONTAL);
127 itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_RIGHT|wxALL, 0);
129 wxStaticText* itemStaticText5 =
new wxStaticText( itemCAlgoToolManagerParamsPanel1, wxID_STATIC,
_(
"Scoring method"), wxDefaultPosition, wxDefaultSize, 0 );
130 itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
132 wxArrayString itemChoice6Strings;
133 itemChoice6Strings.Add(
_(
"log-expectation score (default)"));
134 itemChoice6Strings.Add(
_(
"PAM200"));
135 itemChoice6Strings.Add(
_(
"VTML240"));
136 wxChoice* itemChoice6 =
new wxChoice( itemCAlgoToolManagerParamsPanel1,
ID_CHOICE2, wxDefaultPosition, wxDefaultSize, itemChoice6Strings, 0 );
137 itemChoice6->SetStringSelection(
_(
"log-expectation score (default)"));
138 itemBoxSizer4->Add(itemChoice6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
140 wxCheckBox* itemCheckBox7 =
new wxCheckBox( itemCAlgoToolManagerParamsPanel1,
ID_CHECKBOX12,
_(
"Generate reconstructed tree from alignment"), wxDefaultPosition, wxDefaultSize, 0 );
141 itemCheckBox7->SetValue(
false);
142 itemBoxSizer2->Add(itemCheckBox7, 0, wxALIGN_LEFT|wxALL, 5);
144 wxBoxSizer* itemBoxSizer8 =
new wxBoxSizer(wxHORIZONTAL);
145 itemBoxSizer2->Add(itemBoxSizer8, 0, wxGROW|wxALL, 0);
147 wxStaticText* itemStaticText9 =
new wxStaticText( itemCAlgoToolManagerParamsPanel1, wxID_STATIC,
_(
"Command line options"), wxDefaultPosition, wxDefaultSize, 0 );
148 itemBoxSizer8->Add(itemStaticText9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
150 wxTextCtrl* itemTextCtrl10 =
new wxTextCtrl( itemCAlgoToolManagerParamsPanel1,
ID_TEXTCTRL11, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
151 itemBoxSizer8->Add(itemTextCtrl10, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
153 wxBoxSizer* itemBoxSizer11 =
new wxBoxSizer(wxHORIZONTAL);
154 itemBoxSizer2->Add(itemBoxSizer11, 0, wxGROW|wxALL, 0);
156 wxStaticText* itemStaticText12 =
new wxStaticText( itemCAlgoToolManagerParamsPanel1, wxID_STATIC,
_(
"Path to executable"), wxDefaultPosition, wxDefaultSize, 0 );
157 itemBoxSizer11->Add(itemStaticText12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
159 wxTextCtrl* itemTextCtrl13 =
new wxTextCtrl( itemCAlgoToolManagerParamsPanel1,
ID_TEXTCTRL12, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
160 itemBoxSizer11->Add(itemTextCtrl13, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
162 wxBitmapButton* itemBitmapButton14 =
new wxBitmapButton( itemCAlgoToolManagerParamsPanel1,
ID_BITMAPBUTTON1, itemCAlgoToolManagerParamsPanel1->
GetBitmapResource(
wxT(
"menu::open")), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
163 itemBitmapButton14->SetHelpText(
_(
"Select MUSCLE executable"));
165 itemBitmapButton14->SetToolTip(
_(
"Select MUSCLE executable"));
166 itemBoxSizer11->Add(itemBitmapButton14, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
169 itemChoice6->SetValidator( wxGenericValidator(&
GetData().m_ScoringMethod) );
170 itemCheckBox7->SetValidator( wxGenericValidator(&
GetData().m_GenerateTree) );
171 itemTextCtrl10->SetValidator( wxTextValidator(wxFILTER_NONE, &
GetData().m_CommandLine) );
195 return wxArtProvider::GetBitmap(name);
209 if (!CAlgoToolManagerParamsPanel::TransferDataFromWindow())
237 wxTextCtrl* textCtrl =
dynamic_cast<wxTextCtrl*
>(FindWindow(
ID_TEXTCTRL12));
240 wxString path = textCtrl->GetValue();
242 wxFileDialog dlg(
this,
wxT(
"Select a file"),
wxT(
""),
wxT(
""),
wxT(
"*"),
243 wxFD_OPEN|wxFD_FILE_MUST_EXIST);
247 if (dlg.ShowModal() != wxID_OK)
250 path = dlg.GetPath();
251 textCtrl->SetValue(path);
257 TransferDataToWindow();
virtual bool TransferDataFromWindow()
wxIcon GetIconResource(const wxString &name)
virtual void LoadSettings()
void RestoreDefaults()
override in derived classes
void OnMusclePathClick(wxCommandEvent &event)
CMuscleToolParams & GetData()
bool Create(wxWindow *parent, wxWindowID id=ID_CMUSCLEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL, bool visible=true)
virtual void SaveSettings() const
override in derived classes
CObjectListWidgetSel * m_LocationSel
void SetObjects(map< string, TConstScopedObjects > *objects)
wxBitmap GetBitmapResource(const wxString &name)
static bool ShowToolTips()
TConstScopedObjects & SetObjects()
virtual void SetRegistryPath(const string &path)
CAlgoToolManagerParamsPanel.
#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