(parent,
id, caption, pos,
size, style);
107 bool CAddSecondary::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
110SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
111wxDialog::Create( parent,
id, caption, pos,
size, style );
116GetSizer()->SetSizeHints(
this);
177wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
178itemDialog1->SetSizer(itemBoxSizer2);
180wxFlexGridSizer* itemFlexGridSizer1 =
newwxFlexGridSizer(0, 2, 0, 0);
181itemBoxSizer2->Add(itemFlexGridSizer1, 0, wxGROW | wxALL, 5);
183wxStaticText* itemStaticText4 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Division"), wxDefaultPosition, wxDefaultSize, 0 );
184itemFlexGridSizer1->Add(itemStaticText4, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);
187itemFlexGridSizer1->Add(
m_Division, 0, wxGROW | wxALIGN_CENTER_VERTICAL | wxALL, 5);
189wxStaticText* itemStaticText6 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Origin"), wxDefaultPosition, wxDefaultSize, 0 );
190itemFlexGridSizer1->Add(itemStaticText6, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);
193itemFlexGridSizer1->Add(
m_Origin, 0, wxGROW | wxALIGN_CENTER_VERTICAL | wxALL, 5);
195wxStaticText* itemStaticText8 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Old Date"), wxDefaultPosition, wxDefaultSize, 0 );
196itemFlexGridSizer1->Add(itemStaticText8, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);
199itemFlexGridSizer1->Add(
m_OldDate, 0, wxGROW | wxALIGN_CENTER_VERTICAL | wxALL, 5);
201wxStaticText* itemStaticText10 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Source"), wxDefaultPosition, wxDefaultSize, 0 );
202itemFlexGridSizer1->Add(itemStaticText10, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);
205itemFlexGridSizer1->Add(
m_Source, 0, wxGROW | wxALIGN_CENTER_VERTICAL | wxALL, 5);
207wxStaticText* itemStaticText12 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Taxonomy"), wxDefaultPosition, wxDefaultSize, 0 );
208itemFlexGridSizer1->Add(itemStaticText12, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);
211itemFlexGridSizer1->Add(
m_Taxonomy, 0, wxGROW | wxALIGN_CENTER_VERTICAL | wxALL, 5);
213wxStaticText* itemStaticText14 =
newwxStaticText( itemDialog1, wxID_STATIC,
_(
"Secondary Accessions"), wxDefaultPosition, wxDefaultSize, 0 );
214itemFlexGridSizer1->Add(itemStaticText14, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);
216wxArrayString secondary_accessions;
220wxStaticText* itemStaticText18 =
newwxStaticText(itemDialog1, wxID_STATIC,
_(
"Keywords"), wxDefaultPosition, wxDefaultSize, 0);
221itemFlexGridSizer1->Add(itemStaticText18, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL | wxALL, 5);
223wxArrayString keywords;
225itemFlexGridSizer1->Add(
m_Keywords, 0, wxGROW | wxALIGN_CENTER_VERTICAL | wxALL, 5);
227wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxVERTICAL);
228itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
238wxBoxSizer* itemBoxSizer20 =
newwxBoxSizer(wxHORIZONTAL);
239itemBoxSizer2->Add(itemBoxSizer20, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 0);
241wxBoxSizer* itemBoxSizer21 =
newwxBoxSizer(wxVERTICAL);
242itemBoxSizer20->Add(itemBoxSizer21, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
246itemBoxSizer21->Add(
m_HTGS_DRAFT, 0, wxALIGN_LEFT|wxALL, 5);
262itemBoxSizer21->Add(
m_BARCODE, 0, wxALIGN_LEFT|wxALL, 5);
264wxBoxSizer* itemBoxSizer26 =
newwxBoxSizer(wxVERTICAL);
265itemBoxSizer20->Add(itemBoxSizer26, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
285itemBoxSizer26->Add(
m_UNORDERED, 0, wxALIGN_LEFT|wxALL, 5);
287wxButton* itemButton20 =
newwxButton( itemDialog1,
ID_CADDSECONDARY_BUTTON,
_(
"Delete All Keywords"), wxDefaultPosition, wxDefaultSize, 0 );
288itemBoxSizer2->Add(itemButton20, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
291itemBoxSizer2->Add(
m_Date, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
293wxBoxSizer* itemBoxSizer22 =
newwxBoxSizer(wxHORIZONTAL);
294itemBoxSizer2->Add(itemBoxSizer22, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
296wxButton* itemButton23 =
newwxButton( itemDialog1, wxID_OK,
_(
"Accept"), wxDefaultPosition, wxDefaultSize, 0 );
297itemBoxSizer22->Add(itemButton23, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
299wxButton* itemButton24 =
newwxButton( itemDialog1, wxID_CANCEL,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
300itemBoxSizer22->Add(itemButton24, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
332wxDateTime dmy(day, wxDateTime::Month(wxDateTime::Jan + month - 1), year,0,0,0,0);
338wxArrayString secondary_accessions;
341secondary_accessions.Add(wxString(*accession));
347wxArrayString 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")
371keywords.Add(wxString(*keyword));
376 returnwxDialog::TransferDataToWindow();
422 if(!
m_Origin->GetValue().IsEmpty())
426 if(!
m_Source->GetValue().IsEmpty())
432new_genbank.
SetEntry_date().SetStd().SetMonth(
m_Date->GetValue().GetMonth() - wxDateTime::Jan + 1);
435vector<string> secondary_accessions;
437 for(
size_t i= 0;
i< secondary_accessions.size();
i++)
450 for( ; start <= end; ++start)
463new_genbank.
SetKeywords().push_back(
"HTGS_DRAFT");
465new_genbank.
SetKeywords().push_back(
"HTGS_FULLTOP");
467new_genbank.
SetKeywords().push_back(
"HTGS_ACTIVEFIN");
469new_genbank.
SetKeywords().push_back(
"HTGS_CANCELLED");
471new_genbank.
SetKeywords().push_back(
"TPA:experimental");
473new_genbank.
SetKeywords().push_back(
"TPA:inferential");
475new_genbank.
SetKeywords().push_back(
"TPA:assembly");
477new_genbank.
SetKeywords().push_back(
"TPA:specialist_db");
479new_genbank.
SetKeywords().push_back(
"BARCODE");
481new_genbank.
SetKeywords().push_back(
"UNORDERED");
483vector<string> keywords;
485 for(
size_t i= 0;
i< keywords.size();
i++)
492 cmd->AddCommand (*ecmd);
504new_inst->
SetHist().ResetReplaces();
506 for(
size_t i= 0;
i< secondary_accessions.size();
i++)
509new_inst->
SetHist().SetReplaces().SetIds().push_back(
id);
520new_inst->
SetHist().SetReplaces().SetIds().push_back(
id);
540wxArrayString 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