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/add__secondary_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence_edit/add_secondary.cpp Source File

45 #include "wx/wxprec.h" 99  Create

(parent,

id

, caption, pos,

size

, style);

107 bool CAddSecondary::Create

( wxWindow* parent, wxWindowID

id

,

const

wxString& caption,

const

wxPoint& pos,

const

wxSize&

size

,

long

style )

110 

SetExtraStyle(wxWS_EX_BLOCK_EVENTS);

111

wxDialog::Create( parent,

id

, caption, pos,

size

, style );

116

GetSizer()->SetSizeHints(

this

);

177

wxBoxSizer* itemBoxSizer2 =

new

wxBoxSizer(wxVERTICAL);

178

itemDialog1->SetSizer(itemBoxSizer2);

180

wxFlexGridSizer* itemFlexGridSizer1 =

new

wxFlexGridSizer(0, 2, 0, 0);

181

itemBoxSizer2->Add(itemFlexGridSizer1, 0, wxGROW | wxALL, 5);

183

wxStaticText* itemStaticText4 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Division"

), wxDefaultPosition, wxDefaultSize, 0 );

184

itemFlexGridSizer1->Add(itemStaticText4, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);

187

itemFlexGridSizer1->Add(

m_Division

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

189

wxStaticText* itemStaticText6 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Origin"

), wxDefaultPosition, wxDefaultSize, 0 );

190

itemFlexGridSizer1->Add(itemStaticText6, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);

193

itemFlexGridSizer1->Add(

m_Origin

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

195

wxStaticText* itemStaticText8 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Old Date"

), wxDefaultPosition, wxDefaultSize, 0 );

196

itemFlexGridSizer1->Add(itemStaticText8, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);

199

itemFlexGridSizer1->Add(

m_OldDate

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

201

wxStaticText* itemStaticText10 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Source"

), wxDefaultPosition, wxDefaultSize, 0 );

202

itemFlexGridSizer1->Add(itemStaticText10, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);

205

itemFlexGridSizer1->Add(

m_Source

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

207

wxStaticText* itemStaticText12 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Taxonomy"

), wxDefaultPosition, wxDefaultSize, 0 );

208

itemFlexGridSizer1->Add(itemStaticText12, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);

211

itemFlexGridSizer1->Add(

m_Taxonomy

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

213

wxStaticText* itemStaticText14 =

new

wxStaticText( itemDialog1, wxID_STATIC,

_

(

"Secondary Accessions"

), wxDefaultPosition, wxDefaultSize, 0 );

214

itemFlexGridSizer1->Add(itemStaticText14, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);

216

wxArrayString secondary_accessions;

220

wxStaticText* itemStaticText18 =

new

wxStaticText(itemDialog1, wxID_STATIC,

_

(

"Keywords"

), wxDefaultPosition, wxDefaultSize, 0);

221

itemFlexGridSizer1->Add(itemStaticText18, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);

223

wxArrayString keywords;

225

itemFlexGridSizer1->Add(

m_Keywords

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

227

wxBoxSizer* itemBoxSizer3 =

new

wxBoxSizer(wxVERTICAL);

228

itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);

238

wxBoxSizer* itemBoxSizer20 =

new

wxBoxSizer(wxHORIZONTAL);

239

itemBoxSizer2->Add(itemBoxSizer20, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);

241

wxBoxSizer* itemBoxSizer21 =

new

wxBoxSizer(wxVERTICAL);

242

itemBoxSizer20->Add(itemBoxSizer21, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

246

itemBoxSizer21->Add(

m_HTGS_DRAFT

, 0, wxALIGN_LEFT|wxALL, 5);

262

itemBoxSizer21->Add(

m_BARCODE

, 0, wxALIGN_LEFT|wxALL, 5);

264

wxBoxSizer* itemBoxSizer26 =

new

wxBoxSizer(wxVERTICAL);

265

itemBoxSizer20->Add(itemBoxSizer26, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

285

itemBoxSizer26->Add(

m_UNORDERED

, 0, wxALIGN_LEFT|wxALL, 5);

287

wxButton* itemButton20 =

new

wxButton( itemDialog1,

ID_CADDSECONDARY_BUTTON

,

_

(

"Delete All Keywords"

), wxDefaultPosition, wxDefaultSize, 0 );

288

itemBoxSizer2->Add(itemButton20, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

291

itemBoxSizer2->Add(

m_Date

, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

293

wxBoxSizer* itemBoxSizer22 =

new

wxBoxSizer(wxHORIZONTAL);

294

itemBoxSizer2->Add(itemBoxSizer22, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);

296

wxButton* itemButton23 =

new

wxButton( itemDialog1, wxID_OK,

_

(

"Accept"

), wxDefaultPosition, wxDefaultSize, 0 );

297

itemBoxSizer22->Add(itemButton23, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

299

wxButton* itemButton24 =

new

wxButton( itemDialog1, wxID_CANCEL,

_

(

"Cancel"

), wxDefaultPosition, wxDefaultSize, 0 );

300

itemBoxSizer22->Add(itemButton24, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);

332

wxDateTime dmy(day, wxDateTime::Month(wxDateTime::Jan + month - 1), year,0,0,0,0);

338

wxArrayString secondary_accessions;

341

secondary_accessions.Add(wxString(*accession));

347

wxArrayString keywords;

350  if

(*keyword ==

"HTGS_DRAFT"

)

352  else if

(*keyword ==

"HTGS_FULLTOP"

)

354  else if

(*keyword ==

"HTGS_ACTIVEFIN"

)

356  else if

(*keyword ==

"HTGS_CANCELLED"

)

358  else if

(*keyword ==

"TPA:experimental"

)

360  else if

(*keyword ==

"TPA:inferential"

)

362  else if

(*keyword ==

"TPA:assembly"

)

364  else if

(*keyword ==

"TPA:specialist_db"

)

366  else if

(*keyword ==

"BARCODE"

)

368  else if

(*keyword ==

"UNORDERED"

)

371

keywords.Add(wxString(*keyword));

376  return

wxDialog::TransferDataToWindow();

422  if

(!

m_Origin

->GetValue().IsEmpty())

426  if

(!

m_Source

->GetValue().IsEmpty())

432

new_genbank.

SetEntry_date

().SetStd().SetMonth(

m_Date

->GetValue().GetMonth() - wxDateTime::Jan + 1);

435

vector<string> secondary_accessions;

437  for

(

size_t i

= 0;

i

< secondary_accessions.size();

i

++)

450  for

( ; start <= end; ++start)

463

new_genbank.

SetKeywords

().push_back(

"HTGS_DRAFT"

);

465

new_genbank.

SetKeywords

().push_back(

"HTGS_FULLTOP"

);

467

new_genbank.

SetKeywords

().push_back(

"HTGS_ACTIVEFIN"

);

469

new_genbank.

SetKeywords

().push_back(

"HTGS_CANCELLED"

);

471

new_genbank.

SetKeywords

().push_back(

"TPA:experimental"

);

473

new_genbank.

SetKeywords

().push_back(

"TPA:inferential"

);

475

new_genbank.

SetKeywords

().push_back(

"TPA:assembly"

);

477

new_genbank.

SetKeywords

().push_back(

"TPA:specialist_db"

);

479

new_genbank.

SetKeywords

().push_back(

"BARCODE"

);

481

new_genbank.

SetKeywords

().push_back(

"UNORDERED"

);

483

vector<string> keywords;

485  for

(

size_t i

= 0;

i

< keywords.size();

i

++)

492  cmd

->AddCommand (*ecmd);

504

new_inst->

SetHist

().ResetReplaces();

506  for

(

size_t i

= 0;

i

< secondary_accessions.size();

i

++)

509

new_inst->

SetHist

().SetReplaces().SetIds().push_back(

id

);

520

new_inst->

SetHist

().SetReplaces().SetIds().push_back(

id

);

540

wxArrayString keywords;

User-defined methods of the data storage class.

User-defined methods of the data storage class.

User-defined methods of the data storage class.

#define ID_CADDSECONDARY_DATECTRL

#define ID_CADDSECONDARY_TEXTCTRL4

#define ID_CADDSECONDARY_CHECKBOX10

#define ID_CADDSECONDARY_CHECKBOX6

#define ID_CADDSECONDARY_TEXTCTRL3

#define ID_CADDSECONDARY_CHECKBOX5

#define ID_CADDSECONDARY_CHECKBOX11

#define ID_CADDSECONDARY_CHECKBOX9

#define ID_CADDSECONDARY_TEXTCTRL2

#define ID_CADDSECONDARY_CHECKBOX3

#define ID_CADDSECONDARY_CHECKBOX8

#define ID_CADDSECONDARY_CHECKBOX2

#define ID_CADDSECONDARY_TEXTCTRL1

#define ID_CADDSECONDARY_TEXTCTRL

#define ID_CADDSECONDARY_CHECKBOX

#define ID_CADDSECONDARY_CHECKBOX4

#define ID_CADDSECONDARY_CHECKBOX1

#define ID_CADDSECONDARY_CHECKBOX7

#define ID_CADDSECONDARY_BUTTON

wxCheckBox * m_HTGS_FULLTOP

void CreateControls()

Creates the controls and sizers.

wxIcon GetIconResource(const wxString &name)

Retrieves icon resources.

void Init()

Initialises member variables.

wxCheckBox * m_HTGS_ACTIVEFIN

CAddSecondary()

Constructors.

wxCheckBox * m_RetainReplaces

void DeleteAllKeywords(wxCommandEvent &event)

wxDatePickerCtrl * m_Date

wxCheckBox * m_TPA_INFERENTIAL

wxCheckBox * m_HTGS_CANCELLED

CGrowableListCtrl * m_Keywords

static bool ShowToolTips()

Should we show tooltips?

wxCheckBox * m_CopyToReplaces

CRef< CCmdComposite > GetCommand()

wxCheckBox * m_TPA_SPECIALIST_DB

CGrowableListCtrl * m_SecondaryAccessions

bool TransferDataToWindow()

objects::CSeq_entry_Handle m_TopSeqEntry

wxCheckBox * m_HTGS_DRAFT

wxBitmap GetBitmapResource(const wxString &name)

Retrieves bitmap resources.

wxCheckBox * m_TPA_REASSEMBLY

~CAddSecondary()

Destructor.

wxCheckBox * m_TPA_EXPERIMENTAL

bool Create(wxWindow *parent, wxWindowID id=10000, const wxString &caption=_("Add Secondary"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)

Creation.

void GetItems(vector< string > &items)

void SetItems(const wxArrayString &items)

static DLIST_TYPE *DLIST_NAME() first(DLIST_LIST_TYPE *list)

static DLIST_TYPE *DLIST_NAME() last(DLIST_LIST_TYPE *list)

virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)

Set object to copy of another one.

@ fParse_Default

By default in ParseIDs and IsValid, allow raw parsable non-numeric accessions and plausible local acc...

TBioseqCore GetBioseqCore(void) const

Get bioseq core structure.

CSeq_entry_Handle GetSeq_entry_Handle(void) const

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)

Convert string to int.

static string IntToString(int value, TNumToStringFlags flags=0, int base=10)

Convert int to string.

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.

static bool SplitInTwo(const CTempString str, const CTempString delim, string &str1, string &str2, TSplitFlags flags=0)

Split a string into two pieces using the specified delimiters.

static string & ReplaceInPlace(string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)

Replace occurrences of a substring within a string.

@ fConvErr_NoThrow

Do not throw an exception on error.

@ fAllowLeadingSymbols

Ignore leading non-numeric characters.

void SetTaxonomy(const TTaxonomy &value)

Assign a value to Taxonomy data member.

void SetSource(const TSource &value)

Assign a value to Source data member.

TKeywords & SetKeywords(void)

Assign a value to Keywords data member.

const TDate & GetDate(void) const

Get the Date member data.

bool IsSetExtra_accessions(void) const

Check if a value has been assigned to Extra_accessions data member.

bool IsSetDiv(void) const

GenBank division Check if a value has been assigned to Div data member.

bool IsSetTaxonomy(void) const

continuation line of organism Check if a value has been assigned to Taxonomy data member.

const TOrigin & GetOrigin(void) const

Get the Origin member data.

bool IsSetSource(void) const

source line Check if a value has been assigned to Source data member.

void SetDate(const TDate &value)

Assign a value to Date data member.

const TEntry_date & GetEntry_date(void) const

Get the Entry_date member data.

bool IsSetEntry_date(void) const

replaces date Check if a value has been assigned to Entry_date data member.

const TDiv & GetDiv(void) const

Get the Div member data.

TExtra_accessions & SetExtra_accessions(void)

Assign a value to Extra_accessions data member.

bool IsSetOrigin(void) const

Check if a value has been assigned to Origin data member.

const TTaxonomy & GetTaxonomy(void) const

Get the Taxonomy member data.

void SetDiv(const TDiv &value)

Assign a value to Div data member.

bool IsSetKeywords(void) const

Check if a value has been assigned to Keywords data member.

const TSource & GetSource(void) const

Get the Source member data.

bool IsSetDate(void) const

OBSOLETE old form Entry Date Check if a value has been assigned to Date data member.

void SetOrigin(const TOrigin &value)

Assign a value to Origin data member.

void SetEntry_date(TEntry_date &value)

Assign a value to Entry_date data member.

bool IsSetYear(void) const

full year (including 1900) Check if a value has been assigned to Year data member.

bool IsStd(void) const

Check if variant Std is selected.

bool IsSetDay(void) const

day of month (1-31) Check if a value has been assigned to Day data member.

bool IsSetMonth(void) const

month (1-12) Check if a value has been assigned to Month data member.

TYear GetYear(void) const

Get the Year member data.

TMonth GetMonth(void) const

Get the Month member data.

TDay GetDay(void) const

Get the Day member data.

const TStd & GetStd(void) const

Get the variant data.

const TInst & GetInst(void) const

Get the Inst member data.

bool IsSetIds(void) const

Check if a value has been assigned to Ids data member.

void SetHist(THist &value)

Assign a value to Hist data member.

bool IsSetHist(void) const

sequence history Check if a value has been assigned to Hist data member.

bool IsSetReplaces(void) const

seq makes these seqs obsolete Check if a value has been assigned to Replaces data member.

bool IsSetInst(void) const

the sequence data Check if a value has been assigned to Inst data member.

const TGenbank & GetGenbank(void) const

Get the variant data.

const TIds & GetIds(void) const

Get the Ids member data.

const THist & GetHist(void) const

Get the Hist member data.

const TReplaces & GetReplaces(void) const

Get the Replaces member data.

@ e_Genbank

GenBank specific info.

const struct ncbi::grid::netcache::search::fields::SIZE size

Utility macros and typedefs for exploring NCBI objects from seqblock.asn.

#define FOR_EACH_KEYWORD_ON_GENBANKBLOCK(Itr, Var)

FOR_EACH_KEYWORD_ON_GENBANKBLOCK EDIT_EACH_KEYWORD_ON_GENBANKBLOCK.

#define FOR_EACH_EXTRAACCN_ON_GENBANKBLOCK(Itr, Var)

FOR_EACH_EXTRAACCN_ON_GENBANKBLOCK EDIT_EACH_EXTRAACCN_ON_GENBANKBLOCK.


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