47 #include <wx/button.h>
48 #include <wx/bitmap.h>
50 #include <wx/checkbox.h>
51 #include <wx/valgen.h>
80 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
81 CDialog::Create( parent,
id, caption, pos,
size, style );
86 GetSizer()->SetSizeHints(
this);
112 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
113 itemCDialog1->SetSizer(itemBoxSizer2);
118 wxStaticLine* itemStaticLine4 =
new wxStaticLine( itemCDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
119 itemBoxSizer2->Add(itemStaticLine4, 0, wxGROW|wxALL, 5);
121 wxStdDialogButtonSizer* itemStdDialogButtonSizer5 =
new wxStdDialogButtonSizer;
123 itemBoxSizer2->Add(itemStdDialogButtonSizer5, 0, wxALIGN_RIGHT|wxALL, 5);
124 wxButton* itemButton6 =
new wxButton( itemCDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
125 itemStdDialogButtonSizer5->AddButton(itemButton6);
127 wxButton* itemButton7 =
new wxButton( itemCDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
128 itemStdDialogButtonSizer5->AddButton(itemButton7);
130 itemStdDialogButtonSizer5->Realize();
160 CDialog::OnInitDialog(event);
179 string& description)
const
183 if (accs.size() >= 1) {
void SaveSettings() const
void SetSearchTerm(const string &term)
void SetMultiSelection(bool flag)
void SetRegistryPath(const string &path)
vector< string > GetSelectedAssemblies() const
Get accessions of all selected assemblies.
void GetAssmNameAndDesc(const string &accession, string &name, string &description) const
Get the name and (if available) description for an accession.
string GetSearchTerm() const
class CRegistryReadView provides a nested hierarchical view at a particular key.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void OnInitDialog(wxInitDialogEvent &event)
wxEVT_INIT_DIALOG event handler for ID_CSELECTASSEMBLYDIALOG
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
string GetSelectedAssembly(string &name, string &description) const
Get selected assemblies, if any.
virtual bool TransferDataFromWindow()
CAssemblyListPanel * m_AssemblyPanel
string GetAssmSearchTerm() const
Get assembly query search term.
static bool ShowToolTips()
bool Create(wxWindow *parent, wxWindowID id=10096, const wxString &caption=_("Select Assembly"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxWANTS_CHARS|wxTAB_TRAVERSAL)
void SetRegistryPath(const string &path)
virtual void x_LoadSettings(const CRegistryReadView &view)
override these functions in derived classes
virtual void x_SaveSettings(CRegistryWriteView view) const
void SetAssmSearchTerm(const string &str)
Set assembly query search term.
static const char * str(char *buf, int n)
#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
#define ID_SELECTASSEMBLYPANEL