NCBI C++ ToolKit
|
Search Toolkit Book for CAssemblySelPanel
#include <gui/widgets/loaders/assembly_sel_panel.hpp>
Public Types | |
enum | { ID_CASSEMBLYSELPANEL = 10116 , ID_CHECKBOX6 = 10038 , ID_BUTTON1 = 10118 } |
Control identifiers. More... | |
Public Member Functions | |
CAssemblySelPanel () | |
CAssemblySelPanel (wxWindow *parent, wxWindowID id=ID_CASSEMBLYSELPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CASSEMBLYSELPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
~CAssemblySelPanel () | |
void | Init () |
void | CreateControls () |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
void | OnUseMappingClick (wxCommandEvent &event) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX6 More... | |
void | OnSelectAssemBtnClick (wxCommandEvent &event) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1 More... | |
CMapAssemblyParams & | GetData () |
Data access. More... | |
const CMapAssemblyParams & | GetData () const |
void | SetData (const CMapAssemblyParams &data) |
void | EnableUseMapping (bool enable=true) |
void | SetUseMapping (bool mapping=true) |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
Static Public Member Functions | |
static bool | ShowToolTips () |
Protected Member Functions | |
void | x_UpdateControls () |
void | x_UpdateAssembly () |
void | x_SetTextCompleter (wxTextCompleter *textCompleter) |
Private Attributes | |
wxCheckBox * | m_UseMappingCtrl |
wxStaticText * | m_AssemblyName |
wxStaticText * | m_AssemblyAccession |
wxStaticText * | m_AssemblyDescription |
CMapAssemblyParams | m_data |
The data edited by this window. More... | |
CAssemblySelPanel class declaration
Definition at line 84 of file assembly_sel_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CASSEMBLYSELPANEL | |
ID_CHECKBOX6 | |
ID_BUTTON1 |
Definition at line 143 of file assembly_sel_panel.hpp.
CAssemblySelPanel::CAssemblySelPanel | ( | ) |
Definition at line 70 of file assembly_sel_panel.cpp.
References Init().
CAssemblySelPanel::CAssemblySelPanel | ( | wxWindow * | parent, |
wxWindowID | id = ID_CASSEMBLYSELPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 75 of file assembly_sel_panel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CAssemblySelPanel::~CAssemblySelPanel | ( | ) |
Definition at line 95 of file assembly_sel_panel.cpp.
bool CAssemblySelPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CASSEMBLYSELPANEL , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 81 of file assembly_sel_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CAssemblySelPanel().
void CAssemblySelPanel::CreateControls | ( | ) |
Definition at line 111 of file assembly_sel_panel.cpp.
References _, GetData(), ID_BUTTON1, ID_CHECKBOX6, m_AssemblyAccession, m_AssemblyDescription, m_AssemblyName, m_UseMappingCtrl, and wxID_ANY.
Referenced by Create().
Definition at line 214 of file assembly_sel_panel.cpp.
References _ASSERT, and m_UseMappingCtrl.
Referenced by CVcfAssemblySelectionPanel::CreateControls().
wxBitmap CAssemblySelPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Definition at line 179 of file assembly_sel_panel.cpp.
|
inline |
Data access.
Definition at line 126 of file assembly_sel_panel.hpp.
Referenced by CreateControls(), CBamUILoadManager::DoTransition(), CColumnarVCFLoaderManager::DoTransition(), CBamCoverageGraphPanel::LoadSettings(), CVcfAssemblySelectionPanel::LoadSettings(), CTableColumnIdPanel::OnAssemblyChanged(), OnSelectAssemBtnClick(), CBamCoverageGraphPanel::SaveSettings(), CVcfAssemblySelectionPanel::SaveSettings(), TransferDataFromWindow(), CBedParamsPanel::TransferDataFromWindow(), CGffParamsPanel::TransferDataFromWindow(), CPslParamsPanel::TransferDataFromWindow(), CWigParamsPanel::TransferDataFromWindow(), and x_UpdateAssembly().
|
inline |
Definition at line 127 of file assembly_sel_panel.hpp.
wxIcon CAssemblySelPanel::GetIconResource | ( | const wxString & | name | ) |
Retrieves icon resources.
Definition at line 187 of file assembly_sel_panel.cpp.
void CAssemblySelPanel::Init | ( | void | ) |
Definition at line 101 of file assembly_sel_panel.cpp.
References m_AssemblyAccession, m_AssemblyDescription, m_AssemblyName, m_UseMappingCtrl, and NULL.
Referenced by CAssemblySelPanel().
void CAssemblySelPanel::OnSelectAssemBtnClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON1
Definition at line 196 of file assembly_sel_panel.cpp.
References CSelectAssemblyDialog::GetAssmSearchTerm(), GetData(), CSelectAssemblyDialog::GetSelectedAssembly(), CMapAssemblyParams::m_AssemblyAcc, m_AssemblyName, CMapAssemblyParams::m_SearchTerm, CSelectAssemblyDialog::SetAssmSearchTerm(), CSelectAssemblyDialog::SetRegistryPath(), NStr::TruncateSpaces(), and x_UpdateAssembly().
void CAssemblySelPanel::OnUseMappingClick | ( | wxCommandEvent & | event | ) |
wxEVT_COMMAND_CHECKBOX_CLICKED event handler for ID_CHECKBOX6
Definition at line 226 of file assembly_sel_panel.cpp.
References x_UpdateControls().
|
inline |
Definition at line 128 of file assembly_sel_panel.hpp.
References data.
Referenced by CVcfAssemblySelectionPanel::OnIdle(), CBedParamsPanel::TransferDataToWindow(), CGffParamsPanel::TransferDataToWindow(), CPslParamsPanel::TransferDataToWindow(), CWigParamsPanel::TransferDataToWindow(), and CTableColumnIdPanel::x_UpdateAssemblyPanel().
Definition at line 220 of file assembly_sel_panel.cpp.
References _ASSERT, and m_UseMappingCtrl.
Referenced by CVcfAssemblySelectionPanel::CreateControls().
|
static |
Definition at line 175 of file assembly_sel_panel.cpp.
|
virtual |
Definition at line 251 of file assembly_sel_panel.cpp.
References GetData(), and wxT.
Referenced by CBamCoverageGraphPanel::IsInputValid(), CVcfAssemblySelectionPanel::IsInputValid(), and CTableColumnIdPanel::OnAssemblyChanged().
|
virtual |
Definition at line 164 of file assembly_sel_panel.cpp.
References x_UpdateAssembly(), and x_UpdateControls().
Referenced by CVcfAssemblySelectionPanel::OnIdle(), and CTableColumnIdPanel::x_UpdateAssemblyPanel().
|
protected |
|
protected |
Definition at line 153 of file assembly_sel_panel.cpp.
References GetData(), m_AssemblyAccession, m_AssemblyDescription, m_AssemblyName, and ToWxString().
Referenced by OnSelectAssemBtnClick(), and TransferDataToWindow().
|
protected |
Definition at line 235 of file assembly_sel_panel.cpp.
References ID_BUTTON1, m_AssemblyAccession, m_AssemblyDescription, m_AssemblyName, and m_UseMappingCtrl.
Referenced by OnUseMappingClick(), and TransferDataToWindow().
|
private |
Definition at line 158 of file assembly_sel_panel.hpp.
Referenced by CreateControls(), Init(), x_UpdateAssembly(), and x_UpdateControls().
|
private |
Definition at line 159 of file assembly_sel_panel.hpp.
Referenced by CreateControls(), Init(), x_UpdateAssembly(), and x_UpdateControls().
|
private |
Definition at line 157 of file assembly_sel_panel.hpp.
Referenced by CreateControls(), Init(), OnSelectAssemBtnClick(), x_UpdateAssembly(), and x_UpdateControls().
|
private |
The data edited by this window.
Definition at line 161 of file assembly_sel_panel.hpp.
|
private |
Definition at line 156 of file assembly_sel_panel.hpp.
Referenced by CreateControls(), EnableUseMapping(), Init(), SetUseMapping(), and x_UpdateControls().