A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/tmrna__subpanel_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/edit/tmrna_subpanel.cpp Source File

79  Create

(parent,

id

, caption, pos,

size

, style);

87 bool CtmRNASubPanel::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

90 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

91

wxPanel::Create( parent,

id

, pos,

size

, style );

96

GetSizer()->SetSizeHints(

this

);

138

wxFlexGridSizer* itemFlexGridSizer2 =

new

wxFlexGridSizer(0, 2, 0, 0);

139

itemPanel1->SetSizer(itemFlexGridSizer2);

141

wxStaticText* itemStaticText3 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Tag Peptide"

), wxDefaultPosition, wxDefaultSize, 0 );

142

itemFlexGridSizer2->Add(itemStaticText3, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

144

wxBoxSizer* itemBoxSizer4 =

new

wxBoxSizer(wxHORIZONTAL);

145

itemFlexGridSizer2->Add(itemBoxSizer4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

147

wxStaticText* itemStaticText5 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Start"

), wxDefaultPosition, wxDefaultSize, 0 );

148

itemBoxSizer4->Add(itemStaticText5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

153

wxStaticText* itemStaticText7 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Stop"

), wxDefaultPosition, wxDefaultSize, 0 );

154

itemBoxSizer4->Add(itemStaticText7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

159

wxStaticText* itemStaticText9 =

new

wxStaticText( itemPanel1, wxID_STATIC,

_

(

"Product"

), wxDefaultPosition, wxDefaultSize, 0 );

160

itemFlexGridSizer2->Add(itemStaticText9, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);

163

itemFlexGridSizer2->Add(

m_ProductCtrl

, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);

171  if

(!wxPanel::TransferDataToWindow()) {

175  string

start =

""

, stop =

""

;

176  if

(

m_Gen

->IsSetQuals()) {

179  if

((*q)->IsSetQual() &&

NStr::Equal

((*q)->GetQual(),

"tag_peptide"

)

180

&& (*q)->IsSetVal()) {

182

vector<string> tokens;

184  if

(tokens.size() == 1) {

186

}

else if

(tokens.size() > 1) {

196  if

(

m_Gen

->IsSetProduct()) {

207  if

(!wxPanel::TransferDataFromWindow()) {

218

tm = stop +

".."

+ stop;

222

tm = start +

".."

+ start;

224

tm = start +

".."

+ stop;

229  if

(

m_Gen

->IsSetQuals()) {

230

CRNA_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"

)) {

235

q =

m_Gen

->SetQuals().Set().erase(q);

247

tmqual->

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