wxPanel::Create( parent,
id, pos,
size, style );
95GetSizer()->SetSizeHints(
this);
142wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
143itemPanel1->SetSizer(itemBoxSizer2);
145wxFlexGridSizer* itemFlexGridSizer3 =
newwxFlexGridSizer(0, 2, 0, 0);
146itemBoxSizer2->Add(itemFlexGridSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
148 m_IstRNA=
newwxRadioButton( itemPanel1,
ID_RADIOBUTTON,
_(
"tRNA"), wxDefaultPosition, wxDefaultSize, 0 );
150itemFlexGridSizer3->Add(
m_IstRNA, 0, wxALIGN_LEFT|wxALIGN_CENTER_VERTICAL|wxALL, 5);
152wxBoxSizer* itemBoxSizer5 =
newwxBoxSizer(wxHORIZONTAL);
153itemFlexGridSizer3->Add(itemBoxSizer5, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
155wxStaticText* itemStaticText6 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Select tRNA"), wxDefaultPosition, wxDefaultSize, 0 );
156itemBoxSizer5->Add(itemStaticText6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
158wxArrayString m_tRNAStrings;
159m_tRNAStrings.Add(
_(
"A Alanine"));
160m_tRNAStrings.Add(
_(
"B Asp or Asn"));
161m_tRNAStrings.Add(
_(
"C Cysteine"));
162m_tRNAStrings.Add(
_(
"D Aspartic Acid"));
163m_tRNAStrings.Add(
_(
"E Glutamic Acid"));
164m_tRNAStrings.Add(
_(
"F Phenylalanine"));
165m_tRNAStrings.Add(
_(
"G Glycine"));
166m_tRNAStrings.Add(
_(
"H Histidine"));
167m_tRNAStrings.Add(
_(
"I Isoleucine"));
168m_tRNAStrings.Add(
_(
"J Leu or Ile"));
169m_tRNAStrings.Add(
_(
"K Lysine"));
170m_tRNAStrings.Add(
_(
"L Leucine"));
171m_tRNAStrings.Add(
_(
"M Methionine"));
172m_tRNAStrings.Add(
_(
"N Asparagine"));
173m_tRNAStrings.Add(
_(
"O Pyrrolysine"));
174m_tRNAStrings.Add(
_(
"P Proline"));
175m_tRNAStrings.Add(
_(
"Q Glutamine"));
176m_tRNAStrings.Add(
_(
"R Arginine"));
177m_tRNAStrings.Add(
_(
"S Serine"));
178m_tRNAStrings.Add(
_(
"T Threonine"));
179m_tRNAStrings.Add(
_(
"U Selenocysteine"));
180m_tRNAStrings.Add(
_(
"V Valine"));
181m_tRNAStrings.Add(
_(
"W Tryptophan"));
182m_tRNAStrings.Add(
_(
"X Undetermined or atypical"));
183m_tRNAStrings.Add(
_(
"Y Tyrosine"));
184m_tRNAStrings.Add(
_(
"Z Glu or Gln"));
185 m_tRNA=
newwxChoice( itemPanel1,
ID_CHOICE, wxDefaultPosition, wxDefaultSize, m_tRNAStrings, 0 );
186itemBoxSizer5->Add(
m_tRNA, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
190itemFlexGridSizer3->Add(
m_IsProtein, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
192wxFlexGridSizer* itemFlexGridSizer9 =
newwxFlexGridSizer(0, 2, 0, 0);
193itemFlexGridSizer3->Add(itemFlexGridSizer9, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
195wxStaticText* itemStaticText10 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Protein Name"), wxDefaultPosition, wxDefaultSize, 0 );
196itemFlexGridSizer9->Add(itemStaticText10, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
200itemFlexGridSizer9->Add(
m_ProteinName, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
202wxStaticText* itemStaticText12 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Gene Symbol"), wxDefaultPosition, wxDefaultSize, 0 );
203itemFlexGridSizer9->Add(itemStaticText12, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
207itemFlexGridSizer9->Add(
m_GeneSymbol, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
209wxArrayString m_IncludeFeatStrings;
210m_IncludeFeatStrings.Add(
_(
"&Yes"));
211m_IncludeFeatStrings.Add(
_(
"Yes, &but only in some of the sequences"));
212m_IncludeFeatStrings.Add(
_(
"&No, it is only the intergenic spacer on this end"));
213 m_IncludeFeat=
newwxRadioBox( itemPanel1,
ID_RADIOBOX1,
_(
"Do your sequences contain part of the feature described above?"), wxDefaultPosition, wxDefaultSize, m_IncludeFeatStrings, 1, wxRA_SPECIFY_COLS );
262name =
"trn"+ trna.substr(0, 1);
283abbrev = trna_label.substr(0, 2) +
"x";
285abbrev = trna_label.substr(0, 3);
297name =
"tRNA-"+
s_GetTRNAAbbrev(trna.substr(2)) +
" (trn"+ trna.substr(0, 1) +
")";
310name =
prot+
" ("+ gene +
")";
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
static bool ShowToolTips()
Should we show tooltips?
CIGSFlankPanel()
Constructors.
wxTextCtrl * m_ProteinName
void OnProteinSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON1
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
wxTextCtrl * m_GeneSymbol
void OntrnabuttonSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON
~CIGSFlankPanel()
Destructor.
wxRadioBox * m_IncludeFeat
wxRadioButton * m_IsProtein
bool Create(wxWindow *parent, wxWindowID id=10036, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
Creation.
#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).
static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
string s_GetTRNAAbbrev(string trna_label)
const struct ncbi::grid::netcache::search::fields::SIZE size
string ToStdString(const wxString &s)
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