76 #include <wx/button.h>
77 #include <wx/stattext.h>
78 #include <wx/msgdlg.h>
79 #include <wx/display.h>
115 wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
116 : m_TopSeqEntry(seh), m_CmdProcessor(cmdProcessor), m_SeqSubmit(submit)
119 Create(parent,
id, caption, pos,
size, style);
164 if (width >= 0 && height >= 0)
165 SetSize(wxSize(width,height));
170 if (pos_x >= 0 && pos_y >= 0)
173 for (
auto i = 0;
i < wxDisplay::GetCount();
i++)
175 wxDisplay display(
i);
176 max_x += display.GetGeometry().GetWidth();
178 if (pos_x + width > max_x) pos_x = wxGetDisplaySize().GetWidth()-width-5;
179 if (pos_y + height > wxGetDisplaySize().GetHeight()) pos_y = wxGetDisplaySize().GetHeight()-height-5;
181 SetPosition(wxPoint(pos_x,pos_y));
190 wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
193 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
194 wxDialog::Create( parent,
id, caption, pos,
size, style );
199 GetSizer()->SetSizeHints(
this);
245 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
246 itemDialog1->SetSizer(itemBoxSizer2);
248 wxBoxSizer* itemBoxSizer3 =
new wxBoxSizer(wxHORIZONTAL);
249 itemBoxSizer2->Add(itemBoxSizer3, 0, wxALIGN_LEFT|wxALL, 5);
251 wxBoxSizer* itemBoxSizer4 =
new wxBoxSizer(wxVERTICAL);
252 itemBoxSizer3->Add(itemBoxSizer4, 0, wxGROW|wxALL, 5);
254 wxStaticText* text1 =
new wxStaticText(itemDialog1, wxID_STATIC,
_(
"Find"), wxDefaultPosition, wxDefaultSize, 0);
255 itemBoxSizer4->Add(text1, 1, wxALIGN_LEFT|wxALL, 5);
257 wxStaticText* text2 =
new wxStaticText(itemDialog1, wxID_STATIC,
_(
"Replace"), wxDefaultPosition, wxDefaultSize, 0);
258 itemBoxSizer4->Add(text2, 1, wxALIGN_LEFT|wxALL, 5);
260 wxBoxSizer* itemBoxSizer5 =
new wxBoxSizer(wxVERTICAL);
261 itemBoxSizer3->Add(itemBoxSizer5, 0, wxGROW|wxALL, 5);
263 m_Find =
new wxTextCtrl( itemDialog1,
ID_FIND_TEXT, wxEmptyString, wxDefaultPosition, wxSize(400,-1), 0 );
264 itemBoxSizer5->Add(
m_Find, 1, wxALIGN_LEFT|wxALL, 5);
266 m_Replace =
new wxTextCtrl( itemDialog1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(400,-1), 0 );
267 itemBoxSizer5->Add(
m_Replace, 1, wxALIGN_LEFT|wxALL, 5);
269 wxButton* itemButton1 =
new wxButton( itemDialog1,
ID_COPY_BUTTON,
_(
"Copy"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
270 itemBoxSizer3->Add(itemButton1, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
273 itemBoxSizer3->Add(
m_AutoCopy, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
275 wxBoxSizer* itemBoxSizer6 =
new wxBoxSizer(wxHORIZONTAL);
276 itemBoxSizer2->Add(itemBoxSizer6, 0, wxALIGN_LEFT|wxALL, 5);
278 m_CaseSensitive =
new wxCheckBox( itemDialog1,
wxID_ANY,
_(
"Case Sensitive"), wxDefaultPosition, wxDefaultSize, 0 );
279 itemBoxSizer6->Add(
m_CaseSensitive, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
281 m_EntireWord =
new wxCheckBox( itemDialog1,
wxID_ANY,
_(
"Entire Word"), wxDefaultPosition, wxDefaultSize, 0 );
282 itemBoxSizer6->Add(
m_EntireWord, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
284 wxBoxSizer* itemBoxSizer7 =
new wxBoxSizer(wxHORIZONTAL);
285 itemBoxSizer2->Add(itemBoxSizer7, 0, wxEXPAND|wxALL, 5);
287 wxButton* itemButton5 =
new wxButton( itemDialog1,
ID_REPLACE_BUTTON,
_(
"Replace All"), wxDefaultPosition, wxDefaultSize, 0 );
288 itemBoxSizer7->Add(itemButton5, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
290 wxButton* itemButton6 =
new wxButton( itemDialog1,
ID_CLEAR_BUTTON,
_(
"Clear"), wxDefaultPosition, wxDefaultSize, 0 );
291 itemBoxSizer7->Add(itemButton6, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
294 itemBoxSizer7->Add(itemButton7, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
343 m_Find->SetValue(wxEmptyString);
355 string find =
m_Find->GetValue().ToStdString();
356 string replace =
m_Replace->GetValue().ToStdString();
365 wxMessageBox(
wxT(
"Quotes are not allowed in find and replace strings"),
wxT(
"Error"), wxOK | wxICON_ERROR);
395 cmd->AddCommand(*chgFeat);
402 if (desc_iter->IsMolinfo())
406 new_desc->
Assign(*desc_iter);
407 bool modified =
ReplaceInDesc(new_desc, find, replace, options);
412 cmd->AddCommand (*ecmd);
420 new_submit->
Assign(submit);
431 catch(
const exception&)
433 wxMessageBox(
wxT(
"Unable to perform requested substitution"),
wxT(
"Error"), wxOK | wxICON_ERROR);
442 for (
size_t i = 0;
i <
input.size();
i++)
447 if ((c ==
'\r' || c ==
'\n') && quotes % 2 == 1)
470 bool modified =
false;
473 const string &old_value = new_feat->
GetComment();
474 string new_value =
ReplaceValue(old_value, find, replace, options);
475 modified |= new_value != old_value;
480 const string &old_value = new_feat->
GetTitle();
481 string new_value =
ReplaceValue(old_value, find, replace, options);
482 modified |= new_value != old_value;
488 string new_value =
ReplaceValue(old_value, find, replace, options);
489 modified |= new_value != old_value;
494 if ((*qual)->IsSetQual())
496 const string &old_value = (*qual)->GetQual();
497 string new_value =
ReplaceValue(old_value, find, replace, options);
498 modified |= new_value != old_value;
499 (*qual)->SetQual(new_value);
501 if ((*qual)->IsSetVal())
503 const string &old_value = (*qual)->GetVal();
504 string new_value =
ReplaceValue(old_value, find, replace, options);
505 modified |= new_value != old_value;
506 (*qual)->SetVal(new_value);
520 string new_value =
ReplaceValue(old_value, find, replace, options);
521 modified |= new_value != old_value;
522 new_feat->
SetData().SetGene().SetLocus(new_value);
527 string new_value =
ReplaceValue(old_value, find, replace, options);
528 modified |= new_value != old_value;
529 new_feat->
SetData().SetGene().SetAllele(new_value);
534 string new_value =
ReplaceValue(old_value, find, replace, options);
535 modified |= new_value != old_value;
536 new_feat->
SetData().SetGene().SetDesc(new_value);
541 string new_value =
ReplaceValue(old_value, find, replace, options);
542 modified |= new_value != old_value;
543 new_feat->
SetData().SetGene().SetMaploc(new_value);
548 string new_value =
ReplaceValue(old_value, find, replace, options);
549 modified |= new_value != old_value;
550 new_feat->
SetData().SetGene().SetLocus_tag(new_value);
554 for (
auto dbtag : new_feat->
SetData().SetGene().SetDb())
561 for (
auto &syn : new_feat->
SetData().SetGene().SetSyn())
563 const string &old_value = syn;
564 string new_value =
ReplaceValue(old_value, find, replace, options);
565 modified |= new_value != old_value;
575 string new_value =
ReplaceValue(old_value, find, replace, options);
576 modified |= new_value != old_value;
577 new_feat->
SetData().SetProt().SetDesc(new_value);
581 for (
auto &
str : new_feat->
SetData().SetProt().SetName())
583 const string &old_value =
str;
584 string new_value =
ReplaceValue(old_value, find, replace, options);
585 modified |= new_value != old_value;
591 for (
auto &
str : new_feat->
SetData().SetProt().SetEc())
593 const string &old_value =
str;
594 string new_value =
ReplaceValue(old_value, find, replace, options);
595 modified |= new_value != old_value;
601 for (
auto &
str : new_feat->
SetData().SetProt().SetActivity())
603 const string &old_value =
str;
604 string new_value =
ReplaceValue(old_value, find, replace, options);
605 modified |= new_value != old_value;
611 for (
auto dbtag : new_feat->
SetData().SetProt().SetDb())
622 string new_value =
ReplaceValue(old_value, find, replace, options);
623 modified |= new_value != old_value;
624 new_feat->
SetData().SetRna().SetExt().SetName(new_value);
631 string new_value =
ReplaceValue(old_value, find, replace, options);
632 modified |= new_value != old_value;
633 new_feat->
SetData().SetRna().SetExt().SetGen().SetClass(new_value);
638 string new_value =
ReplaceValue(old_value, find, replace, options);
639 modified |= new_value != old_value;
640 new_feat->
SetData().SetRna().SetExt().SetGen().SetProduct(new_value);
644 for (
auto qual : new_feat->
SetData().SetRna().SetExt().SetGen().SetQuals().Set())
646 if (qual->IsSetVal())
648 const string &old_value = qual->GetVal();
649 string new_value =
ReplaceValue(old_value, find, replace, options);
650 modified |= new_value != old_value;
651 qual->SetVal(new_value);
662 string new_value =
ReplaceValue(old_value, find, replace, options);
663 modified |= new_value != old_value;
664 new_feat->
SetData().SetImp().SetLoc(new_value);
669 string new_value =
ReplaceValue(old_value, find, replace, options);
670 modified |= new_value != old_value;
671 new_feat->
SetData().SetImp().SetDescr(new_value);
677 string new_value =
ReplaceValue(old_value, find, replace, options);
678 modified |= new_value != old_value;
679 new_feat->
SetData().SetRegion(new_value);
706 bool modified =
false;
709 const string &old_value = new_desc->
GetName();
710 string new_value =
ReplaceValue(old_value, find, replace, options);
711 modified |= new_value != old_value;
716 const string &old_value = new_desc->
GetTitle();
717 string new_value =
ReplaceValue(old_value, find, replace, options);
718 modified |= new_value != old_value;
723 const string &old_value = new_desc->
GetComment();
724 string new_value =
ReplaceValue(old_value, find, replace, options);
725 modified |= new_value != old_value;
730 const string &old_value = new_desc->
GetRegion();
731 string new_value =
ReplaceValue(old_value, find, replace, options);
732 modified |= new_value != old_value;
735 if (new_desc->
IsOrg())
748 string new_value =
ReplaceValue(old_value, find, replace, options);
749 modified |= new_value != old_value;
755 string new_value =
ReplaceValue(old_value, find, replace, options);
756 modified |= new_value != old_value;
762 string new_value =
ReplaceValue(old_value, find, replace, options);
763 modified |= new_value != old_value;
769 string new_value =
ReplaceValue(old_value, find, replace, options);
770 modified |= new_value != old_value;
776 string new_value =
ReplaceValue(old_value, find, replace, options);
777 modified |= new_value != old_value;
783 const string &old_value =
str;
784 string new_value =
ReplaceValue(old_value, find, replace, options);
785 modified |= new_value != old_value;
791 const string &old_value =
str;
792 string new_value =
ReplaceValue(old_value, find, replace, options);
793 modified |= new_value != old_value;
797 if (new_desc->
IsPub())
806 bool modified =
false;
809 const string &old_value = new_submit->
GetTool();
810 string new_value =
ReplaceValue(old_value, find, replace, options);
811 modified |= new_value != old_value;
812 new_submit->
SetTool(new_value);
816 const string &old_value = new_submit->
GetUser_tag();
817 string new_value =
ReplaceValue(old_value, find, replace, options);
818 modified |= new_value != old_value;
823 const string &old_value = new_submit->
GetComment();
824 string new_value =
ReplaceValue(old_value, find, replace, options);
825 modified |= new_value != old_value;
833 string new_value =
ReplaceValue(old_value, find, replace, options);
834 modified |= new_value != old_value;
840 string new_value =
ReplaceValue(old_value, find, replace, options);
841 modified |= new_value != old_value;
847 string new_value =
ReplaceValue(old_value, find, replace, options);
848 modified |= new_value != old_value;
854 string new_value =
ReplaceValue(old_value, find, replace, options);
855 modified |= new_value != old_value;
861 string new_value =
ReplaceValue(old_value, find, replace, options);
862 modified |= new_value != old_value;
868 string new_value =
ReplaceValue(old_value, find, replace, options);
869 modified |= new_value != old_value;
870 new_submit->
SetContact().SetLast_name(new_value);
875 string new_value =
ReplaceValue(old_value, find, replace, options);
876 modified |= new_value != old_value;
877 new_submit->
SetContact().SetFirst_name(new_value);
882 string new_value =
ReplaceValue(old_value, find, replace, options);
883 modified |= new_value != old_value;
884 new_submit->
SetContact().SetMiddle_initial(new_value);
890 const string &old_value =
str;
891 string new_value =
ReplaceValue(old_value, find, replace, options);
892 modified |= new_value != old_value;
899 string new_value =
ReplaceValue(old_value, find, replace, options);
900 modified |= new_value != old_value;
901 new_submit->
SetContact().SetOwner_id().SetStr(new_value);
913 string new_value =
ReplaceValue(old_value, find, replace, options);
914 modified |= new_value != old_value;
915 new_submit->
SetCit().SetDescr(new_value);
927 bool modified =
false;
930 const string &old_value = dbtag.
GetDb();
931 string new_value =
ReplaceValue(old_value, find, replace, options);
932 modified |= new_value != old_value;
933 dbtag.
SetDb(new_value);
938 string new_value =
ReplaceValue(old_value, find, replace, options);
939 modified |= new_value != old_value;
940 dbtag.
SetTag().SetStr(new_value);
947 bool modified =
false;
951 string new_value =
ReplaceValue(old_value, find, replace, options);
952 modified |= new_value != old_value;
953 if (old_value != new_value)
969 const string &old_value = org.
GetCommon();
970 string new_value =
ReplaceValue(old_value, find, replace, options);
971 modified |= new_value != old_value;
978 const string &old_value =
str;
979 string new_value =
ReplaceValue(old_value, find, replace, options);
980 modified |= new_value != old_value;
986 for (
auto &syn : org.
SetSyn())
988 const string &old_value = syn;
989 string new_value =
ReplaceValue(old_value, find, replace, options);
990 modified |= new_value != old_value;
1006 string new_value =
ReplaceValue(old_value, find, replace, options);
1007 modified |= new_value != old_value;
1013 string new_value =
ReplaceValue(old_value, find, replace, options);
1014 modified |= new_value != old_value;
1020 string new_value =
ReplaceValue(old_value, find, replace, options);
1021 modified |= new_value != old_value;
1028 if (
mod->IsSetSubname())
1030 const string &old_value =
mod->GetSubname();
1031 string new_value =
ReplaceValue(old_value, find, replace, options);
1032 modified |= new_value != old_value;
1033 mod->SetSubname(new_value);
1035 if (
mod->IsSetAttrib())
1037 const string &old_value =
mod->GetAttrib();
1038 string new_value =
ReplaceValue(old_value, find, replace, options);
1039 modified |= new_value != old_value;
1040 mod->SetAttrib(new_value);
1050 bool modified =
false;
1053 for (
auto subsource : biosource.
SetSubtype())
1055 if (subsource->IsSetAttrib())
1057 const string &old_value = subsource->GetAttrib();
1058 string new_value =
ReplaceValue(old_value, find, replace, options);
1059 modified |= new_value != old_value;
1060 subsource->SetAttrib(new_value);
1062 if (subsource->IsSetName() && subsource->IsSetSubtype()
1069 const string &old_value = subsource->GetName();
1070 string new_value =
ReplaceValue(old_value, find, replace, options);
1071 modified |= new_value != old_value;
1072 subsource->SetName(new_value);
1086 bool modified =
false;
1089 const string &old_value = pubdesc.
GetComment();
1090 string new_value =
ReplaceValue(old_value, find, replace, options);
1091 modified |= new_value != old_value;
1096 for (
auto pub : pubdesc.
SetPub().Set())
1106 bool modified =
false;
1112 string new_value =
ReplaceValue(old_value, find, replace, options);
1113 modified |= new_value != old_value;
1119 string new_value =
ReplaceValue(old_value, find, replace, options);
1120 modified |= new_value != old_value;
1126 string new_value =
ReplaceValue(old_value, find, replace, options);
1127 modified |= new_value != old_value;
1133 string new_value =
ReplaceValue(old_value, find, replace, options);
1134 modified |= new_value != old_value;
1140 string new_value =
ReplaceValue(old_value, find, replace, options);
1141 modified |= new_value != old_value;
1165 string new_value =
ReplaceValue(old_value, find, replace, options);
1166 modified |= new_value != old_value;
1179 string new_value =
ReplaceValue(old_value, find, replace, options);
1180 modified |= new_value != old_value;
1187 if (substance->IsSetCit())
1189 const string &old_value = substance->GetCit();
1190 string new_value =
ReplaceValue(old_value, find, replace, options);
1191 modified |= new_value != old_value;
1192 substance->SetCit(new_value);
1194 if (substance->IsSetName())
1196 const string &old_value = substance->GetName();
1197 string new_value =
ReplaceValue(old_value, find, replace, options);
1198 modified |= new_value != old_value;
1199 substance->SetName(new_value);
1207 if (mesh->IsSetTerm())
1209 const string &old_value = mesh->GetTerm();
1210 string new_value =
ReplaceValue(old_value, find, replace, options);
1211 modified |= new_value != old_value;
1212 mesh->SetTerm(new_value);
1220 if (xref->IsSetCit())
1222 const string &old_value = xref->GetCit();
1223 string new_value =
ReplaceValue(old_value, find, replace, options);
1224 modified |= new_value != old_value;
1225 xref->SetCit(new_value);
1233 const string &old_value =
str;
1234 string new_value =
ReplaceValue(old_value, find, replace, options);
1235 modified |= new_value != old_value;
1243 const string &old_value =
str;
1244 string new_value =
ReplaceValue(old_value, find, replace, options);
1245 modified |= new_value != old_value;
1253 const string &old_value =
str;
1254 string new_value =
ReplaceValue(old_value, find, replace, options);
1255 modified |= new_value != old_value;
1263 if (field->IsSetStr())
1265 const string &old_value = field->GetStr();
1266 string new_value =
ReplaceValue(old_value, find, replace, options);
1267 modified |= new_value != old_value;
1268 field->SetStr(new_value);
1306 string new_value =
ReplaceValue(old_value, find, replace, options);
1307 modified |= new_value != old_value;
1333 string new_value =
ReplaceValue(old_value, find, replace, options);
1334 modified |= new_value != old_value;
1340 string new_value =
ReplaceValue(old_value, find, replace, options);
1341 modified |= new_value != old_value;
1347 string new_value =
ReplaceValue(old_value, find, replace, options);
1348 modified |= new_value != old_value;
1354 string new_value =
ReplaceValue(old_value, find, replace, options);
1355 modified |= new_value != old_value;
1361 string new_value =
ReplaceValue(old_value, find, replace, options);
1362 modified |= new_value != old_value;
1368 string new_value =
ReplaceValue(old_value, find, replace, options);
1369 modified |= new_value != old_value;
1379 string new_value =
ReplaceValue(old_value, find, replace, options);
1380 modified |= new_value != old_value;
1386 string new_value =
ReplaceValue(old_value, find, replace, options);
1387 modified |= new_value != old_value;
1393 string new_value =
ReplaceValue(old_value, find, replace, options);
1394 modified |= new_value != old_value;
1400 string new_value =
ReplaceValue(old_value, find, replace, options);
1401 modified |= new_value != old_value;
1413 modified |=
ReplaceInPub(pub_equiv, find, replace, options);
1421 bool modified =
false;
1430 for (
auto author : auth.
SetNames().SetStd())
1439 const string &old_value =
str;
1440 string new_value =
ReplaceValue(old_value, find, replace, options);
1441 modified |= new_value != old_value;
1449 const string &old_value =
str;
1450 string new_value =
ReplaceValue(old_value, find, replace, options);
1451 modified |= new_value != old_value;
1462 bool modified =
false;
1481 const string &old_value = *
str;
1482 string new_value =
ReplaceValue(old_value, find, replace, options);
1483 modified |= new_value != old_value;
1491 bool modified =
false;
1494 const string &old_value = affil.
GetStr();
1495 string new_value =
ReplaceValue(old_value, find, replace, options);
1496 modified |= new_value != old_value;
1504 string new_value =
ReplaceValue(old_value, find, replace, options);
1505 modified |= new_value != old_value;
1511 string new_value =
ReplaceValue(old_value, find, replace, options);
1512 modified |= new_value != old_value;
1518 string new_value =
ReplaceValue(old_value, find, replace, options);
1519 modified |= new_value != old_value;
1525 string new_value =
ReplaceValue(old_value, find, replace, options);
1526 modified |= new_value != old_value;
1532 string new_value =
ReplaceValue(old_value, find, replace, options);
1533 modified |= new_value != old_value;
1539 string new_value =
ReplaceValue(old_value, find, replace, options);
1540 modified |= new_value != old_value;
1546 string new_value =
ReplaceValue(old_value, find, replace, options);
1547 modified |= new_value != old_value;
1553 string new_value =
ReplaceValue(old_value, find, replace, options);
1554 modified |= new_value != old_value;
1560 string new_value =
ReplaceValue(old_value, find, replace, options);
1561 modified |= new_value != old_value;
1567 string new_value =
ReplaceValue(old_value, find, replace, options);
1568 modified |= new_value != old_value;
1577 bool modified =
false;
1591 string new_value =
ReplaceValue(old_value, find, replace, options);
1592 modified |= new_value != old_value;
1593 author.
SetName().SetMl(new_value);
1598 string new_value =
ReplaceValue(old_value, find, replace, options);
1599 modified |= new_value != old_value;
1600 author.
SetName().SetStr(new_value);
1605 string new_value =
ReplaceValue(old_value, find, replace, options);
1606 modified |= new_value != old_value;
1607 author.
SetName().SetConsortium(new_value);
1614 string new_value =
ReplaceValue(old_value, find, replace, options);
1615 modified |= new_value != old_value;
1616 author.
SetName().SetName().SetLast(new_value);
1621 string new_value =
ReplaceValue(old_value, find, replace, options);
1622 modified |= new_value != old_value;
1623 author.
SetName().SetName().SetFirst(new_value);
1628 string new_value =
ReplaceValue(old_value, find, replace, options);
1629 modified |= new_value != old_value;
1630 author.
SetName().SetName().SetMiddle(new_value);
1635 string new_value =
ReplaceValue(old_value, find, replace, options);
1636 modified |= new_value != old_value;
1637 author.
SetName().SetName().SetFull(new_value);
1642 string new_value =
ReplaceValue(old_value, find, replace, options);
1643 modified |= new_value != old_value;
1644 author.
SetName().SetName().SetInitials(new_value);
1649 string new_value =
ReplaceValue(old_value, find, replace, options);
1650 modified |= new_value != old_value;
1651 author.
SetName().SetName().SetSuffix(new_value);
1656 string new_value =
ReplaceValue(old_value, find, replace, options);
1657 modified |= new_value != old_value;
1658 author.
SetName().SetName().SetTitle(new_value);
1668 bool modified =
false;
1686 for (
auto journal : article.
SetFrom().SetJournal().SetTitle().Set())
1693 modified |=
ReplaceInImp(article.
SetFrom().SetJournal().SetImp(), find, replace, options);
1713 bool modified =
false;
1716 const string &old_value = imp.
GetVolume();
1717 string new_value =
ReplaceValue(old_value, find, replace, options);
1718 modified |= new_value != old_value;
1723 const string &old_value = imp.
GetIssue();
1724 string new_value =
ReplaceValue(old_value, find, replace, options);
1725 modified |= new_value != old_value;
1730 const string &old_value = imp.
GetPages();
1731 string new_value =
ReplaceValue(old_value, find, replace, options);
1732 modified |= new_value != old_value;
1738 string new_value =
ReplaceValue(old_value, find, replace, options);
1739 modified |= new_value != old_value;
1745 string new_value =
ReplaceValue(old_value, find, replace, options);
1746 modified |= new_value != old_value;
1752 string new_value =
ReplaceValue(old_value, find, replace, options);
1753 modified |= new_value != old_value;
1759 string new_value =
ReplaceValue(old_value, find, replace, options);
1760 modified |= new_value != old_value;
1770 string new_value =
ReplaceValue(old_value, find, replace, options);
1771 modified |= new_value != old_value;
1780 bool modified =
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
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)
static const char * str(char *buf, int n)
C++ wrappers for the Perl-compatible regular expression (PCRE) library.
wxRect GetScreenRect(const wxWindow &win)