NCBI C++ ToolKit
|
Search Toolkit Book for CDbxrefPanel
#include "dbxref_panel.hpp"
(Private to src/gui/widgets/edit
.)
Public Types | |
enum | { ID_CDBXREFPANEL = 10091 , ID_SCROLLEDWINDOW2 = 10092 } |
Control identifiers. More... | |
Public Member Functions | |
CDbxrefPanel () | |
Constructors. More... | |
CDbxrefPanel (wxWindow *parent, CSerialObject &object, wxWindowID id=ID_CDBXREFPANEL, const wxString &caption=_("DbxrefPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=ID_CDBXREFPANEL, const wxString &caption=_("DbxrefPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
Creation. More... | |
~CDbxrefPanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
virtual bool | TransferDataToWindow () |
virtual bool | TransferDataFromWindow () |
void | PopulateDbxrefs (objects::CSeq_feat &seq_feat) |
void | PopulateDbxrefs (objects::COrg_ref &org) |
void | AddLastDbxref (wxWindow *link) |
void | DeleteTaxonRef () |
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 () |
Should we show tooltips? More... | |
Public Attributes | |
wxScrolledWindow * | m_ScrolledWindow |
wxBoxSizer * | m_Sizer |
Private Member Functions | |
void | x_UpdateXrefs () |
wxWindow * | x_AddRow (CRef< objects::CDbtag > tag) |
Private Attributes | |
CSerialObject * | m_Object |
vector< CRef< objects::CDbtag > > | m_Xrefs |
int | m_NumRows |
int | m_TotalHeight |
int | m_TotalWidth |
int | m_ScrollRate |
int | m_MaxRowsDisplayed |
CDbxrefPanel class declaration
Definition at line 81 of file dbxref_panel.hpp.
anonymous enum |
Control identifiers.
Enumerator | |
---|---|
ID_CDBXREFPANEL | |
ID_SCROLLEDWINDOW2 |
Definition at line 133 of file dbxref_panel.hpp.
CDbxrefPanel::CDbxrefPanel | ( | ) |
Constructors.
CDbxrefPanel type definition
CDbxrefPanel event table definition
CDbxrefPanel constructors
Definition at line 68 of file dbxref_panel.cpp.
References Init().
CDbxrefPanel::CDbxrefPanel | ( | wxWindow * | parent, |
CSerialObject & | object, | ||
wxWindowID | id = ID_CDBXREFPANEL , |
||
const wxString & | caption = _("DbxrefPanel") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 73 of file dbxref_panel.cpp.
References Create(), Init(), ncbi::grid::netcache::search::fields::size, and x_UpdateXrefs().
CDbxrefPanel::~CDbxrefPanel | ( | ) |
void CDbxrefPanel::AddLastDbxref | ( | wxWindow * | link | ) |
Definition at line 419 of file dbxref_panel.cpp.
References m_ScrolledWindow, m_ScrollRate, m_Sizer, m_TotalHeight, m_TotalWidth, m_Xrefs, s_IsLastRow(), TransferDataFromWindow(), and x_AddRow().
Referenced by CSingleDbxref_SubPanel::OnTextctrl32TextUpdated().
bool CDbxrefPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = ID_CDBXREFPANEL , |
||
const wxString & | caption = _("DbxrefPanel") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Creation.
CDbxrefPanel creator
Definition at line 116 of file dbxref_panel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CDbxrefPanel().
void CDbxrefPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CDbxrefPanel
Definition at line 161 of file dbxref_panel.cpp.
References _, ID_SCROLLEDWINDOW2, m_ScrolledWindow, and m_Sizer.
Referenced by Create().
void CDbxrefPanel::DeleteTaxonRef | ( | ) |
Definition at line 320 of file dbxref_panel.cpp.
References NStr::eNocase, NStr::Equal(), ERASE_ITERATE, CSingleDbxref_SubPanel::GetDbtag(), m_NumRows, m_ScrolledWindow, m_Sizer, m_TotalHeight, m_TotalWidth, m_Xrefs, tag, and VECTOR_ERASE.
Referenced by CSourceOtherPanel::OnChangedTaxname().
wxBitmap CDbxrefPanel::GetBitmapResource | ( | const wxString & | name | ) |
wxIcon CDbxrefPanel::GetIconResource | ( | const wxString & | name | ) |
void CDbxrefPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 148 of file dbxref_panel.cpp.
References m_ScrolledWindow, m_Sizer, and NULL.
Referenced by CDbxrefPanel().
void CDbxrefPanel::PopulateDbxrefs | ( | objects::COrg_ref & | org | ) |
void CDbxrefPanel::PopulateDbxrefs | ( | objects::CSeq_feat & | seq_feat | ) |
Referenced by CSourceOtherPanel::TransferToOrgRef(), and CEditObjectSeq_feat::x_SetCrossRefs().
|
static |
|
virtual |
Definition at line 246 of file dbxref_panel.cpp.
References CSingleDbxref_SubPanel::GetDbtag(), m_Sizer, and m_Xrefs.
Referenced by AddLastDbxref().
|
virtual |
Definition at line 209 of file dbxref_panel.cpp.
References ITERATE, m_NumRows, m_ScrolledWindow, m_ScrollRate, m_Sizer, m_TotalHeight, m_TotalWidth, m_Xrefs, x_AddRow(), and x_UpdateXrefs().
Referenced by CSourceOtherPanel::TransferFromOrgRef().
|
private |
Definition at line 192 of file dbxref_panel.cpp.
References m_NumRows, m_ScrolledWindow, m_ScrollRate, m_Sizer, m_TotalHeight, m_TotalWidth, row, and tag.
Referenced by AddLastDbxref(), and TransferDataToWindow().
|
private |
Definition at line 81 of file dbxref_panel.cpp.
References COrg_ref_Base::GetDb(), CSeq_feat_Base::GetDbxref(), COrg_ref_Base::IsSetDb(), CSeq_feat_Base::IsSetDbxref(), m_Object, m_Xrefs, and tag.
Referenced by CDbxrefPanel(), and TransferDataToWindow().
|
private |
Definition at line 148 of file dbxref_panel.hpp.
|
private |
Definition at line 144 of file dbxref_panel.hpp.
Referenced by DeleteTaxonRef(), TransferDataToWindow(), and x_AddRow().
|
private |
Definition at line 140 of file dbxref_panel.hpp.
Referenced by x_UpdateXrefs().
wxScrolledWindow* CDbxrefPanel::m_ScrolledWindow |
Definition at line 130 of file dbxref_panel.hpp.
Referenced by AddLastDbxref(), CreateControls(), DeleteTaxonRef(), Init(), TransferDataToWindow(), and x_AddRow().
|
private |
Definition at line 147 of file dbxref_panel.hpp.
Referenced by AddLastDbxref(), TransferDataToWindow(), and x_AddRow().
wxBoxSizer* CDbxrefPanel::m_Sizer |
Definition at line 131 of file dbxref_panel.hpp.
Referenced by AddLastDbxref(), CreateControls(), DeleteTaxonRef(), Init(), TransferDataFromWindow(), TransferDataToWindow(), and x_AddRow().
|
private |
Definition at line 145 of file dbxref_panel.hpp.
Referenced by AddLastDbxref(), DeleteTaxonRef(), TransferDataToWindow(), and x_AddRow().
|
private |
Definition at line 146 of file dbxref_panel.hpp.
Referenced by AddLastDbxref(), DeleteTaxonRef(), TransferDataToWindow(), and x_AddRow().
|
private |
Definition at line 142 of file dbxref_panel.hpp.
Referenced by AddLastDbxref(), DeleteTaxonRef(), TransferDataFromWindow(), TransferDataToWindow(), and x_UpdateXrefs().