38 #include <wx/stattext.h>
39 #include <wx/bmpbuttn.h>
40 #include <wx/radiobox.h>
41 #include <wx/valgen.h>
42 #include <wx/valtext.h>
44 #include <wx/bitmap.h>
45 #include <wx/textctrl.h>
46 #include <wx/filedlg.h>
47 #include <wx/msgdlg.h>
48 #include <wx/artprov.h>
76 Create(parent,
id, pos, style);
81 wxPanel::Create( parent,
id, pos, wxSize(0,0), style );
87 GetSizer()->SetSizeHints(
this);
113 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
114 itemPanel1->SetSizer(itemBoxSizer2);
117 itemBoxSizer2->Add(
m_ObjectSel, 1, wxGROW|wxALL, 0);
119 wxBoxSizer* itemBoxSizer4 =
new wxBoxSizer(wxHORIZONTAL);
120 itemBoxSizer2->Add(itemBoxSizer4, 0, wxALIGN_LEFT|wxALL, 0);
122 wxArrayString itemRadioBox5Strings;
123 itemRadioBox5Strings.Add(
_(
"&Text"));
124 itemRadioBox5Strings.Add(
_(
"&Binary"));
125 wxRadioBox* itemRadioBox5 =
new wxRadioBox( itemPanel1,
ID_RADIOBOX3,
_(
"ASN Type"), wxDefaultPosition, wxDefaultSize, itemRadioBox5Strings, 1, wxRA_SPECIFY_ROWS );
126 itemRadioBox5->SetSelection(0);
127 itemBoxSizer4->Add(itemRadioBox5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
129 wxBoxSizer* itemBoxSizer6 =
new wxBoxSizer(wxHORIZONTAL);
130 itemBoxSizer2->Add(itemBoxSizer6, 0, wxGROW|wxALL, 0);
132 wxStaticText* itemStaticText7 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"File name"), wxDefaultPosition, wxDefaultSize, 0 );
133 itemBoxSizer6->Add(itemStaticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
136 itemBoxSizer6->Add(
m_FileNameCtrl, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5);
138 wxBitmapButton* itemBitmapButton9 =
new wxBitmapButton( itemPanel1,
ID_BITMAPBUTTON, itemPanel1->
GetBitmapResource(
wxT(
"menu::open")), wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW );
139 itemBitmapButton9->SetHelpText(
_(
"Select ASN.1 File"));
141 itemBitmapButton9->SetToolTip(
_(
"Select ASN.1 File"));
142 itemBoxSizer6->Add(itemBitmapButton9, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
145 itemRadioBox5->SetValidator( wxGenericValidator(&
GetData().m_AsnType) );
158 return wxArtProvider::GetBitmap(name);
171 if (!wxPanel::TransferDataToWindow())
181 if (!wxPanel::TransferDataFromWindow())
188 wxMessageBox(
wxT(
"Please, select at least one object to export"),
wxT(
"Error"),
189 wxOK | wxICON_ERROR,
this);
static const char * kObjectList
virtual void LoadSettings()
wxIcon GetIconResource(const wxString &name)
virtual bool TransferDataToWindow()
virtual bool TransferDataFromWindow()
CAsnExportParams & GetData()
std::unique_ptr< CSaveFileHelper > m_SaveFile
wxBitmap GetBitmapResource(const wxString &name)
void OnSelectFileClick(wxCommandEvent &event)
static bool ShowToolTips()
wxTextCtrl * m_FileNameCtrl
CObjectListWidget * m_ObjectSel
virtual void SetRegistryPath(const string &path)
IRegSettings.
virtual void SaveSettings() const
bool Create(wxWindow *parent, wxWindowID id=ID_CASNEXPORTPAGE, const wxPoint &pos=wxDefaultPosition, long style=wxTAB_TRAVERSAL)
wxString GetFileName() const
TConstScopedObjects m_Objects
static string MakeKey(const string §ion, const string &key, const string &delim=CGuiRegistry::kDecimalDot)
create a key from a section and a subkey
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
class CRegistryReadView provides a nested hierarchical view at a particular key.
void LoadTableSettings(const CRegistryReadView &view, bool byName=false)
void SaveTableSettings(CRegistryWriteView &view, bool saveSorting=true) const
vector< SConstScopedObject > TConstScopedObjects
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.