(parent,
id, caption, pos,
size, style);
87 bool CtmRNASubPanel::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
90SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
91wxPanel::Create( parent,
id, pos,
size, style );
96GetSizer()->SetSizeHints(
this);
138wxFlexGridSizer* itemFlexGridSizer2 =
newwxFlexGridSizer(0, 2, 0, 0);
139itemPanel1->SetSizer(itemFlexGridSizer2);
141wxStaticText* itemStaticText3 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Tag Peptide"), wxDefaultPosition, wxDefaultSize, 0 );
142itemFlexGridSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
144wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxHORIZONTAL);
145itemFlexGridSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
147wxStaticText* itemStaticText5 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Start"), wxDefaultPosition, wxDefaultSize, 0 );
148itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
153wxStaticText* itemStaticText7 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Stop"), wxDefaultPosition, wxDefaultSize, 0 );
154itemBoxSizer4->Add(itemStaticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
159wxStaticText* itemStaticText9 =
newwxStaticText( itemPanel1, wxID_STATIC,
_(
"Product"), wxDefaultPosition, wxDefaultSize, 0 );
160itemFlexGridSizer2->Add(itemStaticText9, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
163itemFlexGridSizer2->Add(
m_ProductCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
171 if(!wxPanel::TransferDataToWindow()) {
175 stringstart =
"", stop =
"";
176 if(
m_Gen->IsSetQuals()) {
179 if((*q)->IsSetQual() &&
NStr::Equal((*q)->GetQual(),
"tag_peptide")
180&& (*q)->IsSetVal()) {
182vector<string> tokens;
184 if(tokens.size() == 1) {
186}
else if(tokens.size() > 1) {
196 if(
m_Gen->IsSetProduct()) {
207 if(!wxPanel::TransferDataFromWindow()) {
218tm = stop +
".."+ stop;
222tm = start +
".."+ start;
224tm = start +
".."+ stop;
229 if(
m_Gen->IsSetQuals()) {
230CRNA_qual_set::Tdata::iterator q =
m_Gen->SetQuals().Set().begin();
231 while(q !=
m_Gen->SetQuals().Set().end()) {
232 if((*q)->IsSetQual() &&
NStr::Equal((*q)->GetQual(),
"tag_peptide")) {
235q =
m_Gen->SetQuals().Set().erase(q);
247tmqual->
SetQual(
"tag_peptide");
249 m_Gen->SetQuals().Set().push_back(tmqual);
251 if(
m_Gen->IsSetQuals() &&
m_Gen->GetQuals().Get().empty()) {
252 m_Gen->ResetQuals();
258 m_Gen->ResetProduct();
260 m_Gen->SetProduct(product);
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
wxTextCtrl * m_ProductCtrl
CtmRNASubPanel()
Constructors.
virtual bool TransferDataToWindow()
static bool ShowToolTips()
Should we show tooltips?
wxTextCtrl * m_TagPeptideStartCtrl
wxTextCtrl * m_TagPeptideStopCtrl
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
~CtmRNASubPanel()
Destructor.
CRef< objects::CRNA_gen > m_Gen
void Init()
Initialises member variables.
virtual bool TransferDataFromWindow()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool Create(wxWindow *parent, wxWindowID id=ID_CTMRNASUBPANEL, const wxString &caption=_("tmRNA SubPanel"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void CreateControls()
Creates the controls and sizers.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
Split a string using specified delimiters.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
static bool Equal(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2, ECase use_case=eCase)
Test for equality of a substring with another string.
@ fSplit_Tokenize
All delimiters are merged and trimmed, to get non-empty tokens only.
void SetQual(const TQual &value)
Assign a value to Qual data member.
list< CRef< CRNA_qual > > Tdata
void SetVal(const TVal &value)
Assign a value to Val data member.
const struct ncbi::grid::netcache::search::fields::SIZE size
wxString ToWxString(const string &s)
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