wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
116: m_TopSeqEntry(seh), m_CmdProcessor(cmdProcessor), m_SeqSubmit(submit)
119 Create(parent,
id, caption, pos,
size, style);
164 if(width >= 0 && height >= 0)
165SetSize(wxSize(width,height));
170 if(pos_x >= 0 && pos_y >= 0) {
172 for(
unsigned i= 0;
i< wxDisplay::GetCount();
i++)
174wxDisplay display(
i);
175max_x += display.GetGeometry().GetWidth();
177 if(pos_x + width > max_x)
178pos_x = wxGetDisplaySize().GetWidth()-width-5;
179 if(pos_y + height > wxGetDisplaySize().GetHeight())
180pos_y = wxGetDisplaySize().GetHeight()-height-5;
182SetPosition(wxPoint(pos_x,pos_y));
191wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
194SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
195wxDialog::Create( parent,
id, caption, pos,
size, style );
200GetSizer()->SetSizeHints(
this);
246wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
247itemDialog1->SetSizer(itemBoxSizer2);
249wxBoxSizer* itemBoxSizer3 =
newwxBoxSizer(wxHORIZONTAL);
250itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_LEFT|wxALL, 5);
252wxBoxSizer* itemBoxSizer4 =
newwxBoxSizer(wxVERTICAL);
253itemBoxSizer3->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);
255wxStaticText* text1 =
newwxStaticText(itemDialog1, wxID_STATIC,
_(
"Find"), wxDefaultPosition, wxDefaultSize, 0);
256itemBoxSizer4->Add(text1, 1, wxALIGN_LEFT|wxALL, 5);
258wxStaticText* text2 =
newwxStaticText(itemDialog1, wxID_STATIC,
_(
"Replace"), wxDefaultPosition, wxDefaultSize, 0);
259itemBoxSizer4->Add(text2, 1, wxALIGN_LEFT|wxALL, 5);
261wxBoxSizer* itemBoxSizer5 =
newwxBoxSizer(wxVERTICAL);
262itemBoxSizer3->Add(itemBoxSizer5, 0, wxGROW|wxALL, 5);
264 m_Find=
newwxTextCtrl( itemDialog1,
ID_FIND_TEXT, wxEmptyString, wxDefaultPosition, wxSize(400,-1), 0 );
265itemBoxSizer5->Add(
m_Find, 1, wxALIGN_LEFT|wxALL, 5);
267 m_Replace=
newwxTextCtrl( itemDialog1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(400,-1), 0 );
268itemBoxSizer5->Add(
m_Replace, 1, wxALIGN_LEFT|wxALL, 5);
270wxButton* itemButton1 =
newwxButton( itemDialog1,
ID_COPY_BUTTON,
_(
"Copy"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
271itemBoxSizer3->Add(itemButton1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
274itemBoxSizer3->Add(
m_AutoCopy, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
276wxBoxSizer* itemBoxSizer6 =
newwxBoxSizer(wxHORIZONTAL);
277itemBoxSizer2->Add(itemBoxSizer6, 0, wxALIGN_LEFT|wxALL, 5);
279 m_CaseSensitive=
newwxCheckBox( itemDialog1,
wxID_ANY,
_(
"Case Sensitive"), wxDefaultPosition, wxDefaultSize, 0 );
280itemBoxSizer6->Add(
m_CaseSensitive, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
282 m_EntireWord=
newwxCheckBox( itemDialog1,
wxID_ANY,
_(
"Entire Word"), wxDefaultPosition, wxDefaultSize, 0 );
283itemBoxSizer6->Add(
m_EntireWord, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
285wxBoxSizer* itemBoxSizer7 =
newwxBoxSizer(wxHORIZONTAL);
286itemBoxSizer2->Add(itemBoxSizer7, 0, wxEXPAND|wxALL, 5);
288wxButton* itemButton5 =
newwxButton( itemDialog1,
ID_REPLACE_BUTTON,
_(
"Replace All"), wxDefaultPosition, wxDefaultSize, 0 );
289itemBoxSizer7->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
291wxButton* itemButton6 =
newwxButton( itemDialog1,
ID_CLEAR_BUTTON,
_(
"Clear"), wxDefaultPosition, wxDefaultSize, 0 );
292itemBoxSizer7->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
294wxButton* itemButton7 =
newwxButton( itemDialog1,
ID_FIND_ASN1_CANCEL_BUTTON,
_(
"Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
295itemBoxSizer7->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
344 m_Find->SetValue(wxEmptyString);
356 stringfind =
m_Find->GetValue().ToStdString();
357 stringreplace =
m_Replace->GetValue().ToStdString();
366wxMessageBox(
wxT(
"Quotes are not allowed in find and replace strings"),
wxT(
"Error"), wxOK | wxICON_ERROR);
396 cmd->AddCommand(*chgFeat);
403 if(desc_iter->IsMolinfo())
407new_desc->
Assign(*desc_iter);
408 boolmodified =
ReplaceInDesc(new_desc, find, replace, options);
413 cmd->AddCommand (*ecmd);
421new_submit->
Assign(submit);
426 const CObject* actual =
dynamic_cast<const CObject*
>(&submit);
432 catch(
constexception&)
434wxMessageBox(
wxT(
"Unable to perform requested substitution"),
wxT(
"Error"), wxOK | wxICON_ERROR);
443 for(
size_t i= 0;
i<
input.size();
i++)
448 if((c ==
'\r'|| c ==
'\n') && quotes % 2 == 1)
471 boolmodified =
false;
474 const string&old_value = new_feat->
GetComment();
475 stringnew_value =
ReplaceValue(old_value, find, replace, options);
476modified |= new_value != old_value;
481 const string&old_value = new_feat->
GetTitle();
482 stringnew_value =
ReplaceValue(old_value, find, replace, options);
483modified |= new_value != old_value;
489 stringnew_value =
ReplaceValue(old_value, find, replace, options);
490modified |= new_value != old_value;
495 if((*qual)->IsSetQual())
497 const string&old_value = (*qual)->GetQual();
498 stringnew_value =
ReplaceValue(old_value, find, replace, options);
499modified |= new_value != old_value;
500(*qual)->SetQual(new_value);
502 if((*qual)->IsSetVal())
504 const string&old_value = (*qual)->GetVal();
505 stringnew_value =
ReplaceValue(old_value, find, replace, options);
506modified |= new_value != old_value;
507(*qual)->SetVal(new_value);
521 stringnew_value =
ReplaceValue(old_value, find, replace, options);
522modified |= new_value != old_value;
523new_feat->
SetData().SetGene().SetLocus(new_value);
528 stringnew_value =
ReplaceValue(old_value, find, replace, options);
529modified |= new_value != old_value;
530new_feat->
SetData().SetGene().SetAllele(new_value);
535 stringnew_value =
ReplaceValue(old_value, find, replace, options);
536modified |= new_value != old_value;
537new_feat->
SetData().SetGene().SetDesc(new_value);
542 stringnew_value =
ReplaceValue(old_value, find, replace, options);
543modified |= new_value != old_value;
544new_feat->
SetData().SetGene().SetMaploc(new_value);
549 stringnew_value =
ReplaceValue(old_value, find, replace, options);
550modified |= new_value != old_value;
551new_feat->
SetData().SetGene().SetLocus_tag(new_value);
555 for(
autodbtag : new_feat->
SetData().SetGene().SetDb())
562 for(
auto&syn : new_feat->
SetData().SetGene().SetSyn())
564 const string&old_value = syn;
565 stringnew_value =
ReplaceValue(old_value, find, replace, options);
566modified |= new_value != old_value;
576 stringnew_value =
ReplaceValue(old_value, find, replace, options);
577modified |= new_value != old_value;
578new_feat->
SetData().SetProt().SetDesc(new_value);
582 for(
auto&
str: new_feat->
SetData().SetProt().SetName())
584 const string&old_value =
str;
585 stringnew_value =
ReplaceValue(old_value, find, replace, options);
586modified |= new_value != old_value;
592 for(
auto&
str: new_feat->
SetData().SetProt().SetEc())
594 const string&old_value =
str;
595 stringnew_value =
ReplaceValue(old_value, find, replace, options);
596modified |= new_value != old_value;
602 for(
auto&
str: new_feat->
SetData().SetProt().SetActivity())
604 const string&old_value =
str;
605 stringnew_value =
ReplaceValue(old_value, find, replace, options);
606modified |= new_value != old_value;
612 for(
autodbtag : new_feat->
SetData().SetProt().SetDb())
623 stringnew_value =
ReplaceValue(old_value, find, replace, options);
624modified |= new_value != old_value;
625new_feat->
SetData().SetRna().SetExt().SetName(new_value);
632 stringnew_value =
ReplaceValue(old_value, find, replace, options);
633modified |= new_value != old_value;
634new_feat->
SetData().SetRna().SetExt().SetGen().SetClass(new_value);
639 stringnew_value =
ReplaceValue(old_value, find, replace, options);
640modified |= new_value != old_value;
641new_feat->
SetData().SetRna().SetExt().SetGen().SetProduct(new_value);
645 for(
autoqual : new_feat->
SetData().SetRna().SetExt().SetGen().SetQuals().Set())
647 if(qual->IsSetVal())
649 const string&old_value = qual->GetVal();
650 stringnew_value =
ReplaceValue(old_value, find, replace, options);
651modified |= new_value != old_value;
652qual->SetVal(new_value);
663 stringnew_value =
ReplaceValue(old_value, find, replace, options);
664modified |= new_value != old_value;
665new_feat->
SetData().SetImp().SetLoc(new_value);
670 stringnew_value =
ReplaceValue(old_value, find, replace, options);
671modified |= new_value != old_value;
672new_feat->
SetData().SetImp().SetDescr(new_value);
678 stringnew_value =
ReplaceValue(old_value, find, replace, options);
679modified |= new_value != old_value;
680new_feat->
SetData().SetRegion(new_value);
707 boolmodified =
false;
710 const string&old_value = new_desc->
GetName();
711 stringnew_value =
ReplaceValue(old_value, find, replace, options);
712modified |= new_value != old_value;
713new_desc->
SetName(new_value);
717 const string&old_value = new_desc->
GetTitle();
718 stringnew_value =
ReplaceValue(old_value, find, replace, options);
719modified |= new_value != old_value;
724 const string&old_value = new_desc->
GetComment();
725 stringnew_value =
ReplaceValue(old_value, find, replace, options);
726modified |= new_value != old_value;
731 const string&old_value = new_desc->
GetRegion();
732 stringnew_value =
ReplaceValue(old_value, find, replace, options);
733modified |= new_value != old_value;
736 if(new_desc->
IsOrg())
749 stringnew_value =
ReplaceValue(old_value, find, replace, options);
750modified |= new_value != old_value;
756 stringnew_value =
ReplaceValue(old_value, find, replace, options);
757modified |= new_value != old_value;
763 stringnew_value =
ReplaceValue(old_value, find, replace, options);
764modified |= new_value != old_value;
770 stringnew_value =
ReplaceValue(old_value, find, replace, options);
771modified |= new_value != old_value;
777 stringnew_value =
ReplaceValue(old_value, find, replace, options);
778modified |= new_value != old_value;
784 const string&old_value =
str;
785 stringnew_value =
ReplaceValue(old_value, find, replace, options);
786modified |= new_value != old_value;
792 const string&old_value =
str;
793 stringnew_value =
ReplaceValue(old_value, find, replace, options);
794modified |= new_value != old_value;
798 if(new_desc->
IsPub())
807 boolmodified =
false;
810 const string&old_value = new_submit->
GetTool();
811 stringnew_value =
ReplaceValue(old_value, find, replace, options);
812modified |= new_value != old_value;
813new_submit->
SetTool(new_value);
817 const string&old_value = new_submit->
GetUser_tag();
818 stringnew_value =
ReplaceValue(old_value, find, replace, options);
819modified |= new_value != old_value;
824 const string&old_value = new_submit->
GetComment();
825 stringnew_value =
ReplaceValue(old_value, find, replace, options);
826modified |= new_value != old_value;
834 stringnew_value =
ReplaceValue(old_value, find, replace, options);
835modified |= new_value != old_value;
836new_submit->
SetContact().SetName(new_value);
841 stringnew_value =
ReplaceValue(old_value, find, replace, options);
842modified |= new_value != old_value;
843new_submit->
SetContact().SetPhone(new_value);
848 stringnew_value =
ReplaceValue(old_value, find, replace, options);
849modified |= new_value != old_value;
855 stringnew_value =
ReplaceValue(old_value, find, replace, options);
856modified |= new_value != old_value;
857new_submit->
SetContact().SetEmail(new_value);
862 stringnew_value =
ReplaceValue(old_value, find, replace, options);
863modified |= new_value != old_value;
864new_submit->
SetContact().SetTelex(new_value);
869 stringnew_value =
ReplaceValue(old_value, find, replace, options);
870modified |= new_value != old_value;
871new_submit->
SetContact().SetLast_name(new_value);
876 stringnew_value =
ReplaceValue(old_value, find, replace, options);
877modified |= new_value != old_value;
878new_submit->
SetContact().SetFirst_name(new_value);
883 stringnew_value =
ReplaceValue(old_value, find, replace, options);
884modified |= new_value != old_value;
885new_submit->
SetContact().SetMiddle_initial(new_value);
891 const string&old_value =
str;
892 stringnew_value =
ReplaceValue(old_value, find, replace, options);
893modified |= new_value != old_value;
900 stringnew_value =
ReplaceValue(old_value, find, replace, options);
901modified |= new_value != old_value;
902new_submit->
SetContact().SetOwner_id().SetStr(new_value);
914 stringnew_value =
ReplaceValue(old_value, find, replace, options);
915modified |= new_value != old_value;
916new_submit->
SetCit().SetDescr(new_value);
928 boolmodified =
false;
931 const string&old_value = dbtag.
GetDb();
932 stringnew_value =
ReplaceValue(old_value, find, replace, options);
933modified |= new_value != old_value;
934dbtag.
SetDb(new_value);
939 stringnew_value =
ReplaceValue(old_value, find, replace, options);
940modified |= new_value != old_value;
941dbtag.
SetTag().SetStr(new_value);
948 boolmodified =
false;
952 stringnew_value =
ReplaceValue(old_value, find, replace, options);
953modified |= new_value != old_value;
954 if(old_value != new_value)
970 const string&old_value = org.
GetCommon();
971 stringnew_value =
ReplaceValue(old_value, find, replace, options);
972modified |= new_value != old_value;
979 const string&old_value =
str;
980 stringnew_value =
ReplaceValue(old_value, find, replace, options);
981modified |= new_value != old_value;
987 for(
auto&syn : org.
SetSyn())
989 const string&old_value = syn;
990 stringnew_value =
ReplaceValue(old_value, find, replace, options);
991modified |= new_value != old_value;
1007 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1008modified |= new_value != old_value;
1014 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1015modified |= new_value != old_value;
1021 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1022modified |= new_value != old_value;
1029 if(
mod->IsSetSubname())
1031 const string&old_value =
mod->GetSubname();
1032 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1033modified |= new_value != old_value;
1034 mod->SetSubname(new_value);
1036 if(
mod->IsSetAttrib())
1038 const string&old_value =
mod->GetAttrib();
1039 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1040modified |= new_value != old_value;
1041 mod->SetAttrib(new_value);
1051 boolmodified =
false;
1054 for(
autosubsource : biosource.
SetSubtype())
1056 if(subsource->IsSetAttrib())
1058 const string&old_value = subsource->GetAttrib();
1059 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1060modified |= new_value != old_value;
1061subsource->SetAttrib(new_value);
1063 if(subsource->IsSetName() && subsource->IsSetSubtype()
1070 const string&old_value = subsource->GetName();
1071 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1072modified |= new_value != old_value;
1073subsource->SetName(new_value);
1087 boolmodified =
false;
1090 const string&old_value = pubdesc.
GetComment();
1091 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1092modified |= new_value != old_value;
1097 for(
autopub : pubdesc.
SetPub().Set())
1099modified |=
ReplaceInPub(pub, find, replace, options);
1107 boolmodified =
false;
1113 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1114modified |= new_value != old_value;
1120 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1121modified |= new_value != old_value;
1127 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1128modified |= new_value != old_value;
1134 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1135modified |= new_value != old_value;
1141 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1142modified |= new_value != old_value;
1166 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1167modified |= new_value != old_value;
1180 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1181modified |= new_value != old_value;
1188 if(substance->IsSetCit())
1190 const string&old_value = substance->GetCit();
1191 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1192modified |= new_value != old_value;
1193substance->SetCit(new_value);
1195 if(substance->IsSetName())
1197 const string&old_value = substance->GetName();
1198 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1199modified |= new_value != old_value;
1200substance->SetName(new_value);
1208 if(mesh->IsSetTerm())
1210 const string&old_value = mesh->GetTerm();
1211 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1212modified |= new_value != old_value;
1213mesh->SetTerm(new_value);
1221 if(xref->IsSetCit())
1223 const string&old_value = xref->GetCit();
1224 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1225modified |= new_value != old_value;
1226xref->SetCit(new_value);
1234 const string&old_value =
str;
1235 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1236modified |= new_value != old_value;
1244 const string&old_value =
str;
1245 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1246modified |= new_value != old_value;
1254 const string&old_value =
str;
1255 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1256modified |= new_value != old_value;
1264 if(field->IsSetStr())
1266 const string&old_value = field->GetStr();
1267 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1268modified |= new_value != old_value;
1269field->SetStr(new_value);
1307 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1308modified |= new_value != old_value;
1334 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1335modified |= new_value != old_value;
1341 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1342modified |= new_value != old_value;
1348 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1349modified |= new_value != old_value;
1355 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1356modified |= new_value != old_value;
1362 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1363modified |= new_value != old_value;
1369 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1370modified |= new_value != old_value;
1380 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1381modified |= new_value != old_value;
1387 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1388modified |= new_value != old_value;
1394 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1395modified |= new_value != old_value;
1401 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1402modified |= new_value != old_value;
1414modified |=
ReplaceInPub(pub_equiv, find, replace, options);
1422 boolmodified =
false;
1431 for(
autoauthor : auth.
SetNames().SetStd())
1440 const string&old_value =
str;
1441 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1442modified |= new_value != old_value;
1450 const string&old_value =
str;
1451 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1452modified |= new_value != old_value;
1463 boolmodified =
false;
1482 const string&old_value = *
str;
1483 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1484modified |= new_value != old_value;
1492 boolmodified =
false;
1493 if(affil.
IsStr())
1495 const string&old_value = affil.
GetStr();
1496 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1497modified |= new_value != old_value;
1498affil.
SetStr(new_value);
1500 if(affil.
IsStd())
1505 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1506modified |= new_value != old_value;
1512 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1513modified |= new_value != old_value;
1519 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1520modified |= new_value != old_value;
1526 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1527modified |= new_value != old_value;
1533 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1534modified |= new_value != old_value;
1540 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1541modified |= new_value != old_value;
1547 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1548modified |= new_value != old_value;
1554 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1555modified |= new_value != old_value;
1561 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1562modified |= new_value != old_value;
1568 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1569modified |= new_value != old_value;
1578 boolmodified =
false;
1591 const string&old_value = author.
GetName().
GetMl();
1592 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1593modified |= new_value != old_value;
1594author.
SetName().SetMl(new_value);
1599 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1600modified |= new_value != old_value;
1601author.
SetName().SetStr(new_value);
1606 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1607modified |= new_value != old_value;
1608author.
SetName().SetConsortium(new_value);
1615 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1616modified |= new_value != old_value;
1617author.
SetName().SetName().SetLast(new_value);
1622 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1623modified |= new_value != old_value;
1624author.
SetName().SetName().SetFirst(new_value);
1629 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1630modified |= new_value != old_value;
1631author.
SetName().SetName().SetMiddle(new_value);
1636 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1637modified |= new_value != old_value;
1638author.
SetName().SetName().SetFull(new_value);
1643 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1644modified |= new_value != old_value;
1645author.
SetName().SetName().SetInitials(new_value);
1650 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1651modified |= new_value != old_value;
1652author.
SetName().SetName().SetSuffix(new_value);
1657 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1658modified |= new_value != old_value;
1659author.
SetName().SetName().SetTitle(new_value);
1669 boolmodified =
false;
1687 for(
auto journal: article.
SetFrom().SetJournal().SetTitle().Set())
1694modified |=
ReplaceInImp(article.
SetFrom().SetJournal().SetImp(), find, replace, options);
1714 boolmodified =
false;
1717 const string&old_value = imp.
GetVolume();
1718 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1719modified |= new_value != old_value;
1724 const string&old_value = imp.
GetIssue();
1725 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1726modified |= new_value != old_value;
1731 const string&old_value = imp.
GetPages();
1732 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1733modified |= new_value != old_value;
1738 const string&old_value = imp.
GetSection();
1739 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1740modified |= new_value != old_value;
1746 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1747modified |= new_value != old_value;
1753 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1754modified |= new_value != old_value;
1760 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1761modified |= new_value != old_value;
1771 stringnew_value =
ReplaceValue(old_value, find, replace, options);
1772modified |= new_value != old_value;
1781 boolmodified =
false;
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
@Affil.hpp User-defined methods of the data storage class.
@Auth_list.hpp User-defined methods of the data storage class.
bool ReplaceInPub(CRef< objects::CPub > pub, const string &find, const string &replace, CRegexp::TCompile options)
static bool ShowToolTips()
Should we show tooltips?
wxCheckBox * m_EntireWord
virtual void SetRegistryPath(const string ®_path)
void ReplaceLinebreaks(string &input)
bool ReplaceInJournal(CRef< objects::CTitle::C_E > journal, const string &find, const string &replace, CRegexp::TCompile options)
bool ReplaceInArticle(objects::CCit_art &article, const string &find, const string &replace, CRegexp::TCompile options)
string ReplaceValue(const string &input, const string &find, const string &replace, CRegexp::TCompile options)
virtual void SaveSettings() const
bool ReplaceInDbxref(objects::CDbtag &dbtag, const string &find, const string &replace, CRegexp::TCompile options)
CConstRef< objects::CSeq_submit > m_SeqSubmit
CFindASN1Dlg()
Constructors.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnFindText(wxCommandEvent &event)
void OnCancelButton(wxCommandEvent &event)
bool ReplaceInAuthList(objects::CAuth_list &auth, const string &find, const string &replace, CRegexp::TCompile options)
bool ReplaceInOrg(objects::COrg_ref &org, const string &find, const string &replace, CRegexp::TCompile options)
ICommandProccessor * m_CmdProcessor
bool ReplaceInImp(objects::CImprint &imp, const string &find, const string &replace, CRegexp::TCompile options)
bool ReplaceInSubmit(CRef< objects::CSubmit_block > new_submit, const string &find, const string &replace, CRegexp::TCompile options)
objects::CSeq_entry_Handle m_TopSeqEntry
wxCheckBox * m_CaseSensitive
bool ReplaceInAffil(objects::CAffil &affil, const string &find, const string &replace, CRegexp::TCompile options)
bool ReplaceInFeature(CRef< objects::CSeq_feat > new_feat, const string &find, const string &replace, CRegexp::TCompile options)
bool ReplaceInAuthor(objects::CAuthor &author, const string &find, const string &replace, CRegexp::TCompile options)
~CFindASN1Dlg()
Destructor.
void OnClearButton(wxCommandEvent &event)
bool ReplaceInBiosource(objects::CBioSource &biosource, const string &find, const string &replace, CRegexp::TCompile options)
void OnClose(wxCloseEvent &event)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("Find ASN1 Dialog"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(200, 100), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
virtual void LoadSettings()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
bool ReplaceInPubdesc(objects::CPubdesc &pubdesc, const string &find, const string &replace, CRegexp::TCompile options)
void Init()
Initialises member variables.
void OnCopyButton(wxCommandEvent &event)
void OnReplaceButton(wxCommandEvent &event)
void CreateControls()
Creates the controls and sizers.
bool ReplaceInDesc(CRef< objects::CSeqdesc > new_desc, const string &find, const string &replace, CRegexp::TCompile options)
bool ReplaceInBook(objects::CCit_book &book, const string &find, const string &replace, CRegexp::TCompile options)
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
@Pubdesc.hpp User-defined methods of the data storage class.
class CRegistryReadView provides a nested hierarchical view at a particular key.
int GetInt(const string &key, int default_val=0) const
access a named key at this level, with no recursion
bool GetBool(const string &key, bool default_val=false) const
void Set(const string &key, int val)
access a named key at this level, with no recursion
namespace ncbi::objects::
Undo/Redo interface for editing operations.
virtual void Execute(IEditCommand *command, wxWindow *window=0)=0
CChangeUnindexedObjectCommand< objects::CSubmit_block > CChangeSubmitBlockCommand
static const char * kFramePosX
static const char * kFrameHeight
static const char * kAutoCopy
static const char * kFramePosY
static const char * kFrameWidth
#define ID_REPLACE_BUTTON
#define ID_AUTOCOPY_CHECKBOX
#define ID_FIND_ASN1_CANCEL_BUTTON
static const char * str(char *buf, int n)
void swap(NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair1, NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair2)
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
CConstRef< CSeq_feat > GetOriginalSeq_feat(void) const
@ fIncludeGivenEntry
Include the top (given) entry.
@ fRecursive
Iterate recursively.
size_t Replace(CTempStringEx search, CTempString replace, CRegexp::TCompile compile_flags=CRegexp::fCompile_default, CRegexp::TMatch match_flags=CRegexp::fMatch_default, size_t max_replace=0)
Replace occurrences of a substring within a string by pattern.
static string Escape(CTempString str)
Escape all regular expression meta characters in the string.
unsigned int TCompile
Type definitions used for code clarity.
string GetResult(void)
Get result string.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
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 EqualNocase(const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
Case-insensitive equality of a substring with another string.
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.
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 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 SetDoc_type(const TDoc_type &value)
Assign a value to Doc_type data member.
bool IsProc(void) const
Check if variant Proc is selected.
const TDescr & GetDescr(void) const
Get the Descr member data.
const TTitle & GetTitle(void) const
Get the Title member data.
void SetBook(TBook &value)
Assign a value to Book data member.
bool IsSetVolume(void) const
Check if a value has been assigned to Volume data member.
void SetFax(const TFax &value)
Assign a value to Fax data member.
bool IsSetDescr(void) const
description of changes for public view Check if a value has been assigned to Descr data member.
void SetSection(const TSection &value)
Assign a value to Section data member.
void SetAffil(const TAffil &value)
Assign a value to Affil data member.
void SetIssue(const TIssue &value)
Assign a value to Issue data member.
const TPart_supi & GetPart_supi(void) const
Get the Part_supi member data.
bool IsSetPages(void) const
Check if a value has been assigned to Pages data member.
const TDoc_type & GetDoc_type(void) const
Get the Doc_type member data.
bool IsSetNumber(void) const
Patent Document Number Check if a value has been assigned to Number data member.
const TIssue & GetIssue(void) const
Get the Issue member data.
void SetPages(const TPages &value)
Assign a value to Pages data member.
bool IsSetAbstract(void) const
abstract of patent Check if a value has been assigned to Abstract data member.
void SetPostal_code(const TPostal_code &value)
Assign a value to Postal_code data member.
bool IsSetAffil(void) const
author affiliation Check if a value has been assigned to Affil data member.
bool IsSetExp(void) const
citation and/or explanation Check if a value has been assigned to Exp data member.
void SetCountry(const TCountry &value)
Assign a value to Country data member.
bool IsSetAuthors(void) const
Check if a value has been assigned to Authors data member.
bool IsSetAuthors(void) const
authors (ANSI requires) Check if a value has been assigned to Authors data member.
void SetTitle(TTitle &value)
Assign a value to Title data member.
const TJournal & GetJournal(void) const
Get the variant data.
void SetAuthors(TAuthors &value)
Assign a value to Authors data member.
void SetCountry(const TCountry &value)
Assign a value to Country data member.
bool IsSetTitle(void) const
title of journal Check if a value has been assigned to Title data member.
const TVolume & GetVolume(void) const
Get the Volume member data.
void SetSub(const TSub &value)
Assign a value to Sub data member.
const TNumber & GetNumber(void) const
Get the Number member data.
bool IsSetVolume(void) const
Check if a value has been assigned to Volume data member.
const TPages & GetPages(void) const
Get the Pages member data.
const TPages & GetPages(void) const
Get the Pages member data.
const TFrom & GetFrom(void) const
Get the From member data.
bool IsSetApplicants(void) const
Applicants Check if a value has been assigned to Applicants data member.
bool IsApp_number(void) const
Check if variant App_number is selected.
void SetRetract(TRetract &value)
Assign a value to Retract data member.
const TCit & GetCit(void) const
Get the Cit member data.
bool IsSetTitle(void) const
Title of book Check if a value has been assigned to Title data member.
bool IsSetPub(void) const
publisher, required for book Check if a value has been assigned to Pub data member.
bool IsSetPhone(void) const
Check if a value has been assigned to Phone data member.
void SetDoc_type(const TDoc_type &value)
Assign a value to Doc_type data member.
bool IsNumber(void) const
Check if variant Number is selected.
void SetApplicants(TApplicants &value)
Assign a value to Applicants data member.
bool IsSetCountry(void) const
Patent Document Country Check if a value has been assigned to Country data member.
void SetJournal(TJournal &value)
Assign a value to Journal data member.
void SetImp(TImp &value)
Assign a value to Imp data member.
void SetIssue(const TIssue &value)
Assign a value to Issue data member.
bool IsSetStreet(void) const
street address, not ANSI Check if a value has been assigned to Street data member.
const TLanguage & GetLanguage(void) const
Get the Language member data.
void SetTitle(TTitle &value)
Assign a value to Title data member.
const TStr & GetStr(void) const
Get the variant data.
void SetName(TName &value)
Assign a value to Name data member.
bool IsSetTitle(void) const
title of paper (ANSI requires) Check if a value has been assigned to Title data member.
const TTitle & GetTitle(void) const
Get the Title member data.
void SetFrom(TFrom &value)
Assign a value to From data member.
const TColl & GetColl(void) const
Get the Coll member data.
bool IsSetCity(void) const
Author Affiliation, City Check if a value has been assigned to City data member.
bool IsSetAffil(void) const
Check if a value has been assigned to Affil data member.
void SetLanguage(const TLanguage &value)
Assign a value to Language data member.
void SetAbstract(const TAbstract &value)
Assign a value to Abstract data member.
bool IsSetNumber(void) const
Check if a value has been assigned to Number data member.
const TIssue & GetIssue(void) const
Get the Issue member data.
const TEmail & GetEmail(void) const
Get the Email member data.
void SetAffil(TAffil &value)
Assign a value to Affil data member.
const TAbstract & GetAbstract(void) const
Get the Abstract member data.
bool IsSetFrom(void) const
Check if a value has been assigned to From data member.
void SetId(TId &value)
Assign a value to Id data member.
void SetAuthors(TAuthors &value)
Assign a value to Authors data member.
void SetCountry(const TCountry &value)
Assign a value to Country data member.
bool IsSetAuthors(void) const
not necessarily authors of the paper Check if a value has been assigned to Authors data member.
void SetPages(const TPages &value)
Assign a value to Pages data member.
bool IsSetImp(void) const
Check if a value has been assigned to Imp data member.
bool IsSetEmail(void) const
Check if a value has been assigned to Email data member.
const TStreet & GetStreet(void) const
Get the Street member data.
const TName & GetName(void) const
Get the Name member data.
void SetAuthors(TAuthors &value)
Assign a value to Authors data member.
const TAffil & GetAffil(void) const
Get the Affil member data.
bool IsSetCit(void) const
anything, not parsable Check if a value has been assigned to Cit data member.
const TMeet & GetMeet(void) const
Get the Meet member data.
void SetApp_number(const TApp_number &value)
Assign a value to App_number data member.
const TPart_sup & GetPart_sup(void) const
Get the Part_sup member data.
bool IsSetLanguage(void) const
put here for simplicity Check if a value has been assigned to Language data member.
void SetPub(TPub &value)
Assign a value to Pub data member.
const TSub & GetSub(void) const
Get the Sub member data.
const TProc & GetProc(void) const
Get the variant data.
bool IsSetPlace(void) const
Check if a value has been assigned to Place data member.
bool IsSetId(void) const
Check if a value has been assigned to Id data member.
void SetTitle(TTitle &value)
Assign a value to Title data member.
bool IsStr(void) const
Check if variant Str is selected.
bool IsSetDoc_type(void) const
Patent Doc Type Check if a value has been assigned to Doc_type data member.
const TVolume & GetVolume(void) const
Get the Volume member data.
const TDoc_type & GetDoc_type(void) const
Get the Doc_type member data.
const TTitle & GetTitle(void) const
Get the Title member data.
void SetColl(TColl &value)
Assign a value to Coll data member.
bool IsSetRetract(void) const
retraction info Check if a value has been assigned to Retract data member.
void SetImp(TImp &value)
Assign a value to Imp data member.
TStr & SetStr(void)
Select the variant.
void SetNumber(const TNumber &value)
Assign a value to Number data member.
void SetCit(TCit &value)
Assign a value to Cit data member.
void SetAffil(TAffil &value)
Assign a value to Affil data member.
void SetDescr(const TDescr &value)
Assign a value to Descr data member.
bool IsSetNames(void) const
Check if a value has been assigned to Names data member.
const TJournal & GetJournal(void) const
Get the Journal member data.
bool IsSetTitle(void) const
eg.
bool IsSetAuthors(void) const
author/inventor Check if a value has been assigned to Authors data member.
void SetCit(const TCit &value)
Assign a value to Cit data member.
void SetVolume(const TVolume &value)
Assign a value to Volume data member.
void SetNames(TNames &value)
Assign a value to Names data member.
bool IsSetIssue(void) const
Check if a value has been assigned to Issue data member.
const TRetract & GetRetract(void) const
Get the Retract member data.
bool IsSetDoc_type(void) const
Patent Document Type Check if a value has been assigned to Doc_type data member.
void SetAuthors(TAuthors &value)
Assign a value to Authors data member.
bool IsSetJournal(void) const
Check if a value has been assigned to Journal data member.
const TId & GetId(void) const
Get the Id member data.
const TNumber & GetNumber(void) const
Get the Number member data.
void SetEmail(const TEmail &value)
Assign a value to Email data member.
bool IsSetFax(void) const
Check if a value has been assigned to Fax data member.
void SetPhone(const TPhone &value)
Assign a value to Phone data member.
bool IsSetDiv(void) const
Author Affiliation, Division Check if a value has been assigned to Div data member.
const TCountry & GetCountry(void) const
Get the Country member data.
void SetVolume(const TVolume &value)
Assign a value to Volume data member.
const TStd & GetStd(void) const
Get the variant data.
const TPostal_code & GetPostal_code(void) const
Get the Postal_code member data.
void SetTitle(const TTitle &value)
Assign a value to Title data member.
bool IsSetName(void) const
Author, Primary or Secondary Check if a value has been assigned to Name data member.
bool IsSetTitle(void) const
Check if a value has been assigned to Title data member.
const TSection & GetSection(void) const
Get the Section member data.
bool IsStr(void) const
Check if variant Str is selected.
void SetCity(const TCity &value)
Assign a value to City data member.
const TPhone & GetPhone(void) const
Get the Phone member data.
bool IsSetPart_sup(void) const
part/sup of volume Check if a value has been assigned to Part_sup data member.
bool IsSet(void) const
Check if a value has been assigned to data member.
void SetStreet(const TStreet &value)
Assign a value to Street data member.
bool IsBook(void) const
Check if variant Book is selected.
bool IsSetAuthors(void) const
authors Check if a value has been assigned to Authors data member.
bool IsSetSection(void) const
Check if a value has been assigned to Section data member.
void SetTitle(const TTitle &value)
Assign a value to Title data member.
bool IsSetBook(void) const
citation to meeting Check if a value has been assigned to Book data member.
bool IsJournal(void) const
Check if variant Journal is selected.
const TNames & GetNames(void) const
Get the Names member data.
void SetDiv(const TDiv &value)
Assign a value to Div data member.
bool IsSetCit(void) const
same fields as a book Check if a value has been assigned to Cit data member.
bool IsMl(void) const
Check if variant Ml is selected.
void SetPart_sup(const TPart_sup &value)
Assign a value to Part_sup data member.
bool IsSetApp_number(void) const
Patent Doc Appl Number Check if a value has been assigned to App_number data member.
const TApp_number & GetApp_number(void) const
Get the App_number member data.
const TFax & GetFax(void) const
Get the Fax member data.
bool IsStd(void) const
Check if variant Std is selected.
const TNumber & GetNumber(void) const
Get the variant data.
const TApp_number & GetApp_number(void) const
Get the variant data.
bool IsSetPart_supi(void) const
part/sup on issue Check if a value has been assigned to Part_supi data member.
bool IsSetMeet(void) const
time and location of meeting Check if a value has been assigned to Meet data member.
void SetMeet(TMeet &value)
Assign a value to Meet data member.
const TTitle & GetTitle(void) const
Get the Title member data.
bool IsSetPostal_code(void) const
Check if a value has been assigned to Postal_code data member.
bool IsSetCountry(void) const
Author Affiliation, Country Check if a value has been assigned to Country data member.
bool IsSetIssue(void) const
Check if a value has been assigned to Issue data member.
const TTitle & GetTitle(void) const
Get the Title member data.
bool IsSetPages(void) const
Check if a value has been assigned to Pages data member.
const TCity & GetCity(void) const
Get the City member data.
bool IsSetAffil(void) const
Author Affiliation, Name Check if a value has been assigned to Affil data member.
void SetPart_supi(const TPart_supi &value)
Assign a value to Part_supi data member.
void SetAuthors(TAuthors &value)
Assign a value to Authors data member.
bool IsSetColl(void) const
part of a collection Check if a value has been assigned to Coll data member.
const TExp & GetExp(void) const
Get the Exp member data.
const TDiv & GetDiv(void) const
Get the Div member data.
TStd & SetStd(void)
Select the variant.
const TCountry & GetCountry(void) const
Get the Country member data.
const TCountry & GetCountry(void) const
Get the Country member data.
bool IsSetImp(void) const
Check if a value has been assigned to Imp data member.
bool IsSetSub(void) const
Author Affiliation, County Sub Check if a value has been assigned to Sub data member.
bool IsStd(void) const
Check if variant Std is selected.
bool IsSetCountry(void) const
Patent Document Country Check if a value has been assigned to Country data member.
@ e_Ml_jta
specifically MEDLINE jta J
@ e_Trans
Title, Translated AJB.
@ e_Abr
Title, Abbreviated B.
@ e_Jta
Title, Abbreviated J.
@ e_Tsub
Title, Subordinate A B.
@ e_Iso_jta
specifically ISO jta J
@ e_Name
Title, Anal,Coll,Mono AJB.
bool IsSetOrg(void) const
Check if a value has been assigned to Org data member.
bool IsSetSubtype(void) const
Check if a value has been assigned to Subtype data member.
void SetOrg(TOrg &value)
Assign a value to Org data member.
TSubtype & SetSubtype(void)
Assign a value to Subtype data member.
@ eSubtype_environmental_sample
bool IsSetSyn(void) const
synonyms for locus Check if a value has been assigned to Syn data member.
const TDesc & GetDesc(void) const
Get the Desc member data.
bool IsSetLocus_tag(void) const
systematic gene name (e.g., MI0001, ORF0069) Check if a value has been assigned to Locus_tag data mem...
bool IsSetLocus(void) const
Official gene symbol Check if a value has been assigned to Locus data member.
bool IsSetDesc(void) const
descriptive name Check if a value has been assigned to Desc data member.
bool IsSetDb(void) const
ids in other dbases Check if a value has been assigned to Db data member.
bool IsSetAllele(void) const
Official allele designation Check if a value has been assigned to Allele data member.
bool IsSetMaploc(void) const
descriptive map location Check if a value has been assigned to Maploc data member.
const TLocus_tag & GetLocus_tag(void) const
Get the Locus_tag member data.
const TLocus & GetLocus(void) const
Get the Locus member data.
const TAllele & GetAllele(void) const
Get the Allele member data.
const TMaploc & GetMaploc(void) const
Get the Maploc member data.
bool IsStr(void) const
Check if variant Str is selected.
const TStr & GetStr(void) const
Get the variant data.
bool IsConsortium(void) const
Check if variant Consortium is selected.
bool IsMl(void) const
Check if variant Ml is selected.
bool IsSetDb(void) const
name of database or system Check if a value has been assigned to Db data member.
const TTag & GetTag(void) const
Get the Tag member data.
void SetTag(TTag &value)
Assign a value to Tag data member.
bool IsSetSuffix(void) const
Jr, Sr, III Check if a value has been assigned to Suffix data member.
bool IsSetTag(void) const
appropriate tag Check if a value has been assigned to Tag data member.
const TInitials & GetInitials(void) const
Get the Initials member data.
bool IsName(void) const
Check if variant Name is selected.
bool IsSetMiddle(void) const
Check if a value has been assigned to Middle data member.
const TFull & GetFull(void) const
Get the Full member data.
const TDb & GetDb(void) const
Get the Db member data.
bool IsSetFull(void) const
full name eg.
bool IsSetInitials(void) const
first + middle initials Check if a value has been assigned to Initials data member.
bool IsSetTitle(void) const
Dr., Sister, etc Check if a value has been assigned to Title data member.
const TMl & GetMl(void) const
Get the variant data.
bool IsSetLast(void) const
Check if a value has been assigned to Last data member.
const TStr & GetStr(void) const
Get the variant data.
const TMiddle & GetMiddle(void) const
Get the Middle member data.
const TConsortium & GetConsortium(void) const
Get the variant data.
bool IsStr(void) const
Check if variant Str is selected.
const TTitle & GetTitle(void) const
Get the Title member data.
const TSuffix & GetSuffix(void) const
Get the Suffix member data.
const TFirst & GetFirst(void) const
Get the First member data.
const TLast & GetLast(void) const
Get the Last member data.
void SetDb(const TDb &value)
Assign a value to Db data member.
bool IsDbtag(void) const
Check if variant Dbtag is selected.
const TName & GetName(void) const
Get the variant data.
bool IsSetFirst(void) const
Check if a value has been assigned to First data member.
TGene & SetGene(void)
Assign a value to Gene data member.
bool IsSetXref(void) const
Check if a value has been assigned to Xref data member.
TIdnum & SetIdnum(void)
Assign a value to Idnum data member.
void SetCit(TCit &value)
Assign a value to Cit data member.
bool IsSetIdnum(void) const
ID Number (grants, contracts) Check if a value has been assigned to Idnum data member.
bool IsSetCit(void) const
article citation Check if a value has been assigned to Cit data member.
bool IsSetAbstract(void) const
Check if a value has been assigned to Abstract data member.
bool IsSetMesh(void) const
Check if a value has been assigned to Mesh data member.
void SetAbstract(const TAbstract &value)
Assign a value to Abstract data member.
TXref & SetXref(void)
Assign a value to Xref data member.
bool IsSetSubstance(void) const
Check if a value has been assigned to Substance data member.
TMlfield & SetMlfield(void)
Assign a value to Mlfield data member.
const TAbstract & GetAbstract(void) const
Get the Abstract member data.
bool IsSetPub_type(void) const
may show publication types (review, etc) Check if a value has been assigned to Pub_type data member.
TPub_type & SetPub_type(void)
Assign a value to Pub_type data member.
TMesh & SetMesh(void)
Assign a value to Mesh data member.
TSubstance & SetSubstance(void)
Assign a value to Substance data member.
bool IsSetMlfield(void) const
additional Medline field types Check if a value has been assigned to Mlfield data member.
bool IsSetGene(void) const
Check if a value has been assigned to Gene data member.
bool IsSetDb(void) const
ids in taxonomic or culture dbases Check if a value has been assigned to Db data member.
const TLineage & GetLineage(void) const
Get the Lineage member data.
const TDiv & GetDiv(void) const
Get the Div member data.
void SetCommon(const TCommon &value)
Assign a value to Common data member.
bool IsSetCommon(void) const
common name Check if a value has been assigned to Common data member.
bool IsSetLineage(void) const
lineage with semicolon separators Check if a value has been assigned to Lineage data member.
bool IsSetMod(void) const
unstructured modifiers Check if a value has been assigned to Mod data member.
TSyn & SetSyn(void)
Assign a value to Syn data member.
const TTaxname & GetTaxname(void) const
Get the Taxname member data.
const TCommon & GetCommon(void) const
Get the Common member data.
bool IsSetDiv(void) const
GenBank division code Check if a value has been assigned to Div data member.
void SetTaxname(const TTaxname &value)
Assign a value to Taxname data member.
bool IsSetMod(void) const
Check if a value has been assigned to Mod data member.
void ResetCommon(void)
Reset Common data member.
bool IsSetAttrib(void) const
attribution of name Check if a value has been assigned to Attrib data member.
bool IsSetOrgname(void) const
Check if a value has been assigned to Orgname data member.
bool IsSetTaxname(void) const
preferred formal name Check if a value has been assigned to Taxname data member.
TMod & SetMod(void)
Assign a value to Mod data member.
void SetOrgname(TOrgname &value)
Assign a value to Orgname data member.
bool IsSetSyn(void) const
synonyms for taxname or common Check if a value has been assigned to Syn data member.
const TAttrib & GetAttrib(void) const
Get the Attrib member data.
const TOrgname & GetOrgname(void) const
Get the Orgname member data.
bool IsSetDesc(void) const
description (instead of name) Check if a value has been assigned to Desc data member.
bool IsSetDb(void) const
ids in other dbases Check if a value has been assigned to Db data member.
bool IsSetEc(void) const
E.C.
bool IsSetName(void) const
protein name Check if a value has been assigned to Name data member.
const TDesc & GetDesc(void) const
Get the Desc member data.
bool IsSetActivity(void) const
activities Check if a value has been assigned to Activity data member.
TProc & SetProc(void)
Select the variant.
bool IsMedline(void) const
Check if variant Medline is selected.
bool IsBook(void) const
Check if variant Book is selected.
const TMedline & GetMedline(void) const
Get the variant data.
const TMan & GetMan(void) const
Get the variant data.
TBook & SetBook(void)
Select the variant.
Tdata & Set(void)
Assign a value to data member.
const TJournal & GetJournal(void) const
Get the variant data.
const TSub & GetSub(void) const
Get the variant data.
bool IsPat_id(void) const
Check if variant Pat_id is selected.
bool IsSet(void) const
Check if a value has been assigned to data member.
bool IsJournal(void) const
Check if variant Journal is selected.
const TPatent & GetPatent(void) const
Get the variant data.
const TProc & GetProc(void) const
Get the variant data.
TEquiv & SetEquiv(void)
Select the variant.
const TEquiv & GetEquiv(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
const TPat_id & GetPat_id(void) const
Get the variant data.
TMan & SetMan(void)
Select the variant.
bool IsEquiv(void) const
Check if variant Equiv is selected.
bool IsProc(void) const
Check if variant Proc is selected.
TSub & SetSub(void)
Select the variant.
bool IsSub(void) const
Check if variant Sub is selected.
TGen & SetGen(void)
Select the variant.
TMedline & SetMedline(void)
Select the variant.
const TGen & GetGen(void) const
Get the variant data.
TJournal & SetJournal(void)
Select the variant.
TPatent & SetPatent(void)
Select the variant.
bool IsPatent(void) const
Check if variant Patent is selected.
bool IsArticle(void) const
Check if variant Article is selected.
TArticle & SetArticle(void)
Select the variant.
TPat_id & SetPat_id(void)
Select the variant.
bool IsGen(void) const
Check if variant Gen is selected.
bool IsMan(void) const
Check if variant Man is selected.
const TQuals & GetQuals(void) const
Get the Quals member data.
bool IsSetProduct(void) const
Check if a value has been assigned to Product data member.
bool IsSetExt(void) const
generic fields for ncRNA, tmRNA, miscRNA Check if a value has been assigned to Ext data member.
bool IsGen(void) const
Check if variant Gen is selected.
bool IsSet(void) const
Check if a value has been assigned to data member.
bool IsSetQuals(void) const
e.g., tag_peptide qualifier for tmRNAs Check if a value has been assigned to Quals data member.
const TGen & GetGen(void) const
Get the variant data.
const TName & GetName(void) const
Get the variant data.
bool IsSetClass(void) const
for ncRNAs, the class of non-coding RNA: examples: antisense_RNA, guide_RNA, snRNA Check if a value h...
const TProduct & GetProduct(void) const
Get the Product member data.
const TExt & GetExt(void) const
Get the Ext member data.
bool IsName(void) const
Check if variant Name is selected.
const TClass & GetClass(void) const
Get the Class member data.
bool IsSetTitle(void) const
for user defined label Check if a value has been assigned to Title data member.
bool IsSetLoc(void) const
original location string Check if a value has been assigned to Loc data member.
bool IsSetComment(void) const
Check if a value has been assigned to Comment data member.
bool IsSetData(void) const
the specific data Check if a value has been assigned to Data data member.
bool IsProt(void) const
Check if variant Prot is selected.
bool IsImp(void) const
Check if variant Imp is selected.
const TRegion & GetRegion(void) const
Get the variant data.
const TTitle & GetTitle(void) const
Get the Title member data.
void SetComment(const TComment &value)
Assign a value to Comment data member.
bool IsSetDescr(void) const
text description Check if a value has been assigned to Descr data member.
void SetTitle(const TTitle &value)
Assign a value to Title data member.
bool IsGene(void) const
Check if variant Gene is selected.
const TData & GetData(void) const
Get the Data member data.
const TExcept_text & GetExcept_text(void) const
Get the Except_text member data.
bool IsPub(void) const
Check if variant Pub is selected.
bool IsSetExcept_text(void) const
explain if except=TRUE Check if a value has been assigned to Except_text data member.
void SetData(TData &value)
Assign a value to Data data member.
const TDescr & GetDescr(void) const
Get the Descr member data.
const TComment & GetComment(void) const
Get the Comment member data.
bool IsBiosrc(void) const
Check if variant Biosrc is selected.
const TGene & GetGene(void) const
Get the variant data.
void SetExcept_text(const TExcept_text &value)
Assign a value to Except_text data member.
const TProt & GetProt(void) const
Get the variant data.
const TRna & GetRna(void) const
Get the variant data.
bool IsOrg(void) const
Check if variant Org is selected.
const TLoc & GetLoc(void) const
Get the Loc member data.
bool IsRna(void) const
Check if variant Rna is selected.
bool IsRegion(void) const
Check if variant Region is selected.
const TImp & GetImp(void) const
Get the variant data.
bool IsSetComment(void) const
any comment on this pub in context Check if a value has been assigned to Comment data member.
bool IsGenbank(void) const
Check if variant Genbank is selected.
void SetPub(TPub &value)
Assign a value to Pub data member.
TTitle & SetTitle(void)
Select the variant.
TPub & SetPub(void)
Select the variant.
TOrg & SetOrg(void)
Select the variant.
const TComment & GetComment(void) const
Get the Comment member data.
bool IsOrg(void) const
Check if variant Org is selected.
bool IsComment(void) const
Check if variant Comment is selected.
const TTitle & GetTitle(void) const
Get the variant data.
bool IsSource(void) const
Check if variant Source is selected.
TGenbank & SetGenbank(void)
Select the variant.
TName & SetName(void)
Select the variant.
const TGenbank & GetGenbank(void) const
Get the variant data.
bool IsName(void) const
Check if variant Name is selected.
TComment & SetComment(void)
Select the variant.
TSource & SetSource(void)
Select the variant.
bool IsPub(void) const
Check if variant Pub is selected.
bool IsSetPub(void) const
the citation(s) Check if a value has been assigned to Pub data member.
void SetComment(const TComment &value)
Assign a value to Comment data member.
bool IsTitle(void) const
Check if variant Title is selected.
const TPub & GetPub(void) const
Get the Pub member data.
const TComment & GetComment(void) const
Get the variant data.
bool IsRegion(void) const
Check if variant Region is selected.
const TName & GetName(void) const
Get the variant data.
const TRegion & GetRegion(void) const
Get the variant data.
TRegion & SetRegion(void)
Select the variant.
@ e_not_set
No variant selected.
bool IsSetTool(void) const
tool used to make submission Check if a value has been assigned to Tool data member.
const TTool & GetTool(void) const
Get the Tool member data.
const TTelex & GetTelex(void) const
Get the Telex member data.
bool IsSetAddress(void) const
Check if a value has been assigned to Address data member.
const TCit & GetCit(void) const
Get the Cit member data.
const TComment & GetComment(void) const
Get the Comment member data.
void SetComment(const TComment &value)
Assign a value to Comment data member.
void SetCit(TCit &value)
Assign a value to Cit data member.
const TPhone & GetPhone(void) const
Get the Phone member data.
const TFirst_name & GetFirst_name(void) const
Get the First_name member data.
bool IsSetTelex(void) const
Check if a value has been assigned to Telex data member.
void SetTool(const TTool &value)
Assign a value to Tool data member.
bool IsSetFax(void) const
Check if a value has been assigned to Fax data member.
const TName & GetName(void) const
Get the Name member data.
bool IsSetFirst_name(void) const
Check if a value has been assigned to First_name data member.
const TEmail & GetEmail(void) const
Get the Email member data.
const TLast_name & GetLast_name(void) const
Get the Last_name member data.
bool IsSetOwner_id(void) const
for owner accounts Check if a value has been assigned to Owner_id data member.
const TUser_tag & GetUser_tag(void) const
Get the User_tag member data.
void SetUser_tag(const TUser_tag &value)
Assign a value to User_tag data member.
bool IsSetEmail(void) const
Check if a value has been assigned to Email data member.
bool IsSetLast_name(void) const
structured to replace name above Check if a value has been assigned to Last_name data member.
bool IsSetMiddle_initial(void) const
Check if a value has been assigned to Middle_initial data member.
bool IsSetUser_tag(void) const
user supplied id for this submission Check if a value has been assigned to User_tag data member.
bool IsSetName(void) const
OBSOLETE: will be removed Check if a value has been assigned to Name data member.
const TContact & GetContact(void) const
Get the Contact member data.
bool IsSetCit(void) const
citation for this submission Check if a value has been assigned to Cit data member.
const TOwner_id & GetOwner_id(void) const
Get the Owner_id member data.
bool IsSetComment(void) const
user comments/advice to database Check if a value has been assigned to Comment data member.
const TMiddle_initial & GetMiddle_initial(void) const
Get the Middle_initial member data.
bool IsSetContact(void) const
who to contact Check if a value has been assigned to Contact data member.
void SetContact(TContact &value)
Assign a value to Contact data member.
bool IsSetContact(void) const
WARNING: this will replace the above Check if a value has been assigned to Contact data member.
bool IsSetPhone(void) const
Check if a value has been assigned to Phone data member.
const TFax & GetFax(void) const
Get the Fax member data.
const struct ncbi::grid::netcache::search::fields::SIZE size
CRef< CPub > journal(ParserPtr pp, char *bptr, char *eptr, CRef< CAuth_list > &auth_list, CRef< CTitle::C_E > &title, bool has_muid, CRef< CCit_art > &cit_art, Int4 er)
Utility macros and typedefs for exploring NCBI objects from seqfeat.asn.
#define ERASE_DBXREF_ON_ORGREF(Itr, Var)
ERASE_DBXREF_ON_ORGREF.
#define EDIT_EACH_DBXREF_ON_ORGREF(Itr, Var)
#define EDIT_EACH_DBXREF_ON_SEQFEAT(Itr, Var)
#define EDIT_EACH_GBQUAL_ON_SEQFEAT(Itr, Var)
C++ wrappers for the Perl-compatible regular expression (PCRE) library.
wxRect GetScreenRect(const wxWindow &win)
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