IMPLEMENT_DYNAMIC_CLASS(
CGenePanel, wxPanel )
82wxWindowID
id,
constwxPoint& pos,
constwxSize&
size,
longstyle )
99wxPanel::Create( parent,
id, pos,
size, style );
104GetSizer()->SetSizeHints(
this);
143wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
144itemPanel1->SetSizer(itemBoxSizer2);
146wxFlexGridSizer* itemFlexGridSizer3 =
newwxFlexGridSizer(0, 2, 0, 0);
147itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_LEFT|wxALL, 5);
149wxStaticText* itemStaticText4 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Locus"), wxDefaultPosition, wxDefaultSize, 0 );
150itemFlexGridSizer3->Add(itemStaticText4, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);
152wxTextCtrl* itemTextCtrl5 =
newwxTextCtrl( itemPanel1,
ID_TEXT1_GENEPNL, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0 );
153itemFlexGridSizer3->Add(itemTextCtrl5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);
155wxStaticText* itemStaticText6 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Allele"), wxDefaultPosition, wxDefaultSize, 0 );
156itemFlexGridSizer3->Add(itemStaticText6, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);
158wxTextCtrl* itemTextCtrl7 =
newwxTextCtrl( itemPanel1,
ID_TEXT2_GENEPNL, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0 );
159itemFlexGridSizer3->Add(itemTextCtrl7, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);
161wxStaticText* itemStaticText8 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Description"), wxDefaultPosition, wxDefaultSize, 0 );
162itemFlexGridSizer3->Add(itemStaticText8, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);
164wxTextCtrl* itemTextCtrl9 =
newwxTextCtrl( itemPanel1,
ID_TEXT3_GENEPNL, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0 );
165itemFlexGridSizer3->Add(itemTextCtrl9, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 1);
167wxStaticText* itemStaticText12 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Locus Tag"), wxDefaultPosition, wxDefaultSize, 0 );
168itemFlexGridSizer3->Add(itemStaticText12, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);
170wxTextCtrl* itemTextCtrl13 =
newwxTextCtrl( itemPanel1,
ID_TEXT5_GENEPNL, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0 );
171itemFlexGridSizer3->Add(itemTextCtrl13, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 1);
173wxStaticText* itemStaticText10 =
newwxStaticText(itemPanel1, wxID_STATIC,
_(
"Map Location"), wxDefaultPosition, wxDefaultSize, wxALIGN_LEFT);
174itemFlexGridSizer3->Add(itemStaticText10, 0, wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 1);
176wxTextCtrl* itemTextCtrl11 =
newwxTextCtrl(itemPanel1,
ID_TEXT4_GENEPNL, wxEmptyString, wxDefaultPosition, wxSize(itemPanel1->ConvertDialogToPixels(wxSize(150, -1)).x, -1), 0);
177itemFlexGridSizer3->Add(itemTextCtrl11, 0, wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL | wxALL, 1);
179objects::CGene_ref *gene =
dynamic_cast<objects::CGene_ref*
>(
m_Object);
180 if(gene->IsSetLocus())
181itemTextCtrl5->SetValue(gene->GetLocus());
182 if(gene->IsSetAllele())
183itemTextCtrl7->SetValue(gene->GetAllele());
184 if(gene->IsSetDesc())
185itemTextCtrl9->SetValue(gene->GetDesc());
186 if(gene->IsSetLocus_tag())
187itemTextCtrl13->SetValue(gene->GetLocus_tag());
188 if(gene->IsSetMaploc()) {
189itemTextCtrl11->SetValue(gene->GetMaploc());
191itemTextCtrl11->Show(
false);
192itemStaticText10->Show(
false);
bool Create(wxWindow *parent, wxWindowID id=ID_CGENEPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
~CGenePanel()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
CGenePanel()
Constructors.
static bool ShowToolTips()
Should we show tooltips?
Base class for all serializable objects.
virtual const CTypeInfo * GetThisTypeInfo(void) const =0
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const string & GetName(void) const
Get name of this type.
const struct ncbi::grid::netcache::search::fields::SIZE size
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4