90 wxPanel::Create( parent,
id, pos,
size, style );
95 GetSizer()->SetSizeHints(
this);
138 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
139 itemPanel1->SetSizer(itemBoxSizer2);
141 wxFlexGridSizer* itemFlexGridSizer3 =
new wxFlexGridSizer(0, 2, 0, 0);
142 itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_LEFT|wxALL, 5);
144 wxStaticText* itemStaticText4 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Common Name"), wxDefaultPosition, wxDefaultSize, 0 );
145 itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
148 itemFlexGridSizer3->Add(
m_CommonNameCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
150 wxStaticText* itemStaticText6 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Taxonomic Lineage"), wxDefaultPosition, wxDefaultSize, 0 );
151 itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
153 m_LineageCtrl =
new wxTextCtrl( itemPanel1,
ID_TEXTCTRL2, wxEmptyString, wxDefaultPosition, wxSize(200, -1), wxTE_MULTILINE );
154 itemFlexGridSizer3->Add(
m_LineageCtrl, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
156 wxStaticText* itemStaticText8 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Division"), wxDefaultPosition, wxDefaultSize, 0 );
157 itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
160 itemFlexGridSizer3->Add(
m_DivisionCtrl, 0, wxALIGN_LEFT|wxGROW|wxALL, 5);
164 wxBoxSizer* itemBoxSizer4 =
new wxBoxSizer(wxHORIZONTAL);
165 itemBoxSizer2->Add(itemBoxSizer4, 1, wxALIGN_LEFT|wxALL, 0);
168 itemBoxSizer4->Add(
m_Dbxrefs, 0, wxEXPAND|wxALL, 5);
240 TransferDataFromWindow();
virtual bool TransferDataToWindow()
void PopulateDbxrefs(objects::CSeq_feat &seq_feat)
const string & GetLineage(void) const
const string & GetDivision(void) const
bool IsSetDivision(void) const
bool IsSetLineage(void) const
void CreateControls()
Creates the controls and sizers.
CRef< objects::COrg_ref > m_OrgRef
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
~CSourceOtherPanel()
Destructor.
bool Create(wxWindow *parent, wxWindowID id=ID_CSOURCEOTHERPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
static bool ShowToolTips()
Should we show tooltips?
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnChangedTaxname(void)
void TransferToOrgRef(objects::COrg_ref &org)
wxTextCtrl * m_LineageCtrl
wxTextCtrl * m_DivisionCtrl
void Init()
Initialises member variables.
CSourceOtherPanel()
Constructors.
void TransferFromOrgRef(const objects::COrg_ref &org)
wxTextCtrl * m_CommonNameCtrl
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
bool IsSetDb(void) const
ids in taxonomic or culture dbases Check if a value has been assigned to Db data member.
void SetCommon(const TCommon &value)
Assign a value to Common data member.
bool IsSetCommon(void) const
common name Check if a value has been assigned to Common data member.
vector< CRef< CDbtag > > TDb
const TCommon & GetCommon(void) const
Get the Common member data.
const TDb & GetDb(void) const
Get the Db member data.
void ResetCommon(void)
Reset Common data member.
void SetOrgname(TOrgname &value)
Assign a value to Orgname data member.
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
string ToStdString(const wxString &s)