NCBI C++ ToolKit
|
Search Toolkit Book for CSelectAssemblyDialog
#include <gui/widgets/loaders/select_assembly_dialog.hpp>
Public Member Functions | |
CSelectAssemblyDialog () | |
CSelectAssemblyDialog (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) | |
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) |
~CSelectAssemblyDialog () | |
void | Init () |
void | CreateControls () |
virtual bool | TransferDataFromWindow () |
void | OnInitDialog (wxInitDialogEvent &event) |
wxEVT_INIT_DIALOG event handler for ID_CSELECTASSEMBLYDIALOG More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
void | SetAssmSearchTerm (const string &str) |
Set assembly query search term. More... | |
string | GetAssmSearchTerm () const |
Get assembly query search term. More... | |
string | GetSelectedAssembly (string &name, string &description) const |
Get selected assemblies, if any. More... | |
void | SetRegistryPath (const string &path) |
Public Member Functions inherited from CDialog | |
CDialog () | |
virtual void | InitDialog () |
virtual void | EndModal (int retCode) |
virtual void | LoadSettings () |
virtual void | SaveSettings () const |
Static Public Member Functions | |
static bool | ShowToolTips () |
Public Attributes | |
CAssemblyListPanel * | m_AssemblyPanel |
Protected Member Functions | |
virtual void | x_LoadSettings (const CRegistryReadView &view) |
override these functions in derived classes More... | |
virtual void | x_SaveSettings (CRegistryWriteView view) const |
Protected Member Functions inherited from CDialog | |
void | x_CorrectDisplay (wxRect &rc) |
move to the parent display More... | |
Additional Inherited Members | |
Protected Attributes inherited from CDialog | |
string | m_RegPath |
Definition at line 76 of file select_assembly_dialog.hpp.
CSelectAssemblyDialog::CSelectAssemblyDialog | ( | ) |
Definition at line 66 of file select_assembly_dialog.cpp.
References Init().
CSelectAssemblyDialog::CSelectAssemblyDialog | ( | 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 |
||
) |
Definition at line 71 of file select_assembly_dialog.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CSelectAssemblyDialog::~CSelectAssemblyDialog | ( | ) |
Definition at line 94 of file select_assembly_dialog.cpp.
bool CSelectAssemblyDialog::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 |
||
) |
Definition at line 77 of file select_assembly_dialog.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CSelectAssemblyDialog().
void CSelectAssemblyDialog::CreateControls | ( | ) |
Definition at line 107 of file select_assembly_dialog.cpp.
References _, ID_SELECTASSEMBLYPANEL, m_AssemblyPanel, and CAssemblyListPanel::SetMultiSelection().
Referenced by Create().
string CSelectAssemblyDialog::GetAssmSearchTerm | ( | ) | const |
Get assembly query search term.
Definition at line 173 of file select_assembly_dialog.cpp.
References CAssemblyListPanel::GetSearchTerm(), and m_AssemblyPanel.
Referenced by CAssemblySelPanel::OnSelectAssemBtnClick().
wxBitmap CSelectAssemblyDialog::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 141 of file select_assembly_dialog.cpp.
wxIcon CSelectAssemblyDialog::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 149 of file select_assembly_dialog.cpp.
Get selected assemblies, if any.
Definition at line 178 of file select_assembly_dialog.cpp.
References CAssemblyListPanel::GetAssmNameAndDesc(), CAssemblyListPanel::GetSelectedAssemblies(), and m_AssemblyPanel.
Referenced by CAssemblySelPanel::OnSelectAssemBtnClick().
void CSelectAssemblyDialog::Init | ( | void | ) |
Definition at line 100 of file select_assembly_dialog.cpp.
References m_AssemblyPanel, and NULL.
Referenced by CSelectAssemblyDialog().
void CSelectAssemblyDialog::OnInitDialog | ( | wxInitDialogEvent & | event | ) |
wxEVT_INIT_DIALOG event handler for ID_CSELECTASSEMBLYDIALOG
Definition at line 158 of file select_assembly_dialog.cpp.
Set assembly query search term.
Definition at line 168 of file select_assembly_dialog.cpp.
References m_AssemblyPanel, CAssemblyListPanel::SetSearchTerm(), and str().
Referenced by CAssemblySelPanel::OnSelectAssemBtnClick().
Reimplemented from CDialog.
Definition at line 194 of file select_assembly_dialog.cpp.
References m_AssemblyPanel, CDialog::m_RegPath, and CAssemblyListPanel::SetRegistryPath().
Referenced by CAssemblySelPanel::OnSelectAssemBtnClick().
|
static |
Definition at line 137 of file select_assembly_dialog.cpp.
|
virtual |
Definition at line 163 of file select_assembly_dialog.cpp.
References CAssemblyListPanel::IsInputValid(), and m_AssemblyPanel.
|
protectedvirtual |
override these functions in derived classes
Reimplemented from CDialog.
Definition at line 206 of file select_assembly_dialog.cpp.
References CAssemblyListPanel::LoadSettings(), and m_AssemblyPanel.
|
protectedvirtual |
Reimplemented from CDialog.
Definition at line 201 of file select_assembly_dialog.cpp.
References m_AssemblyPanel, and CAssemblyListPanel::SaveSettings().
CAssemblyListPanel* CSelectAssemblyDialog::m_AssemblyPanel |
Definition at line 114 of file select_assembly_dialog.hpp.
Referenced by CreateControls(), GetAssmSearchTerm(), GetSelectedAssembly(), Init(), SetAssmSearchTerm(), SetRegistryPath(), TransferDataFromWindow(), x_LoadSettings(), and x_SaveSettings().