31 #include <wx/msgdlg.h>
42 bool ask_about_invalid =
false;
43 bool remove_invalid =
false;
44 bool ask_about_unknown =
false;
45 bool remove_unknown =
false;
50 if (
orig.IsSetData() &&
orig.GetData().IsProt())
52 if (!
orig.GetData().GetProt().IsSetEc())
58 bool modified =
false;
59 CProt_ref::TEc::iterator it = new_feat->
SetData().SetProt().SetEc().begin();
60 while (it != new_feat->
SetData().SetProt().SetEc().end())
67 if (!ask_about_invalid)
69 int answer = wxMessageBox (
_(
"Remove invalid EC numbers?"),
_(
"Delete Invalid"), wxYES_NO | wxICON_QUESTION);
70 remove_invalid = (answer == wxYES);
71 ask_about_invalid =
true;
84 if (!ask_about_unknown)
86 int answer = wxMessageBox (
_(
"Remove unknown EC numbers?"),
_(
"Delete Unknown"), wxYES_NO | wxICON_QUESTION);
87 remove_unknown = (answer == wxYES);
88 ask_about_unknown =
true;
95 it = new_feat->
SetData().SetProt().SetEc().erase(it);
108 if (new_feat->
SetData().SetProt().SetEc().empty())
110 new_feat->
SetData().SetProt().ResetEc();
static bool IsValidECNumberFormat(const string &ecno)
Verify correct form of EC number.
static const string & GetECNumberReplacement(const string &old_ecno)
Return a replaced EC number's replacement.
EECNumberStatus
Enzyme Commission number status.
@ eEC_replaced
Obsolete synonym for some other EC number.
@ eEC_unknown
Unrecognized; possibly malformed.
@ eEC_deleted
Withdrawn, with no (single?) replacement.
static EECNumberStatus GetECNumberStatus(const string &ecno)
Determine an EC number's validity and specificity.
namespace ncbi::objects::
void apply(CSeq_entry_Handle tse, ICommandProccessor *cmdProcessor, string title)
Undo/Redo interface for editing operations.
virtual void Execute(IEditCommand *command, wxWindow *window=0)=0
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
void SetData(TData &value)
Assign a value to Data data member.
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig