35 #include <wx/checkbox.h>
36 #include <wx/choice.h>
37 #include <wx/bmpbuttn.h>
38 #include <wx/textctrl.h>
39 #include <wx/stattext.h>
40 #include <wx/valgen.h>
41 #include <wx/valtext.h>
42 #include <wx/msgdlg.h>
43 #include <wx/filedlg.h>
44 #include <wx/bitmap.h>
46 #include <wx/artprov.h>
82 SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
83 wxPanel::Create( parent,
id, pos,
size, style );
88 GetSizer()->SetSizeHints(
this);
113 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
114 itemPanel1->SetSizer(itemBoxSizer2);
119 wxBoxSizer* itemBoxSizer4 =
new wxBoxSizer(wxHORIZONTAL);
120 itemBoxSizer2->Add(itemBoxSizer4, 0, wxGROW|wxALL, 0);
122 wxStaticText* itemStaticText5 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"File name"), wxDefaultPosition, wxDefaultSize, 0 );
123 itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
125 wxTextCtrl* itemTextCtrl6 =
new wxTextCtrl( itemPanel1,
ID_TEXTCTRL14, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
126 itemBoxSizer4->Add(itemTextCtrl6, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
128 wxBitmapButton* itemBitmapButton7 =
new wxBitmapButton( itemPanel1,
ID_BITMAPBUTTON, itemPanel1->
GetBitmapResource(
wxT(
"menu::open")), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
129 itemBitmapButton7->SetHelpText(
_(
"Select File"));
131 itemBitmapButton7->SetToolTip(
_(
"Select File"));
132 itemBoxSizer4->Add(itemBitmapButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
135 itemTextCtrl6->SetValidator( wxTextValidator(wxFILTER_NONE, &
GetData().m_FileName) );
155 return wxArtProvider::GetBitmap(name);
167 return wxPanel::TransferDataToWindow();
171 if (!wxPanel::TransferDataFromWindow())
175 if (selection.size() != 1) {
176 wxMessageBox(
wxT(
"Please select a single location"),
wxT(
"Error"),
177 wxOK | wxICON_ERROR,
this);
182 const objects::CSeq_loc* seq_loc =
dynamic_cast<const objects::CSeq_loc*
>(selection[0].object.GetPointerOrNull());
184 wxMessageBox(
wxT(
"Internal error. The selections is not a location,\n")
185 wxT(
"please, try to select another location"),
wxT(
"Internal Error"),
186 wxOK | wxICON_ERROR,
this);
static const char * kLocationList
CAlignTabExportParams & GetData()
virtual bool TransferDataToWindow()
void SetObjects(map< string, TConstScopedObjects > *objects)
void OnSelectFileClick(wxCommandEvent &event)
virtual void SaveSettings() const
std::unique_ptr< CSaveFileHelper > m_SaveFile
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void LoadSettings()
wxIcon GetIconResource(const wxString &name)
CObjectListWidgetSel * m_LocationSel
virtual bool TransferDataFromWindow()
static bool ShowToolTips()
wxBitmap GetBitmapResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=ID_CALIGNTABEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
wxString GetFileName() const
SConstScopedObject & SetObject()
vector< SConstScopedObject > TConstScopedObjects
#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