44 #include <wx/stattext.h>
45 #include <wx/msgdlg.h>
46 #include <wx/display.h>
85 Create(parent, wb,
id, caption, pos,
size, style);
98 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
104 GetSizer()->SetSizeHints(
this);
158 if (width >= 0 && height >= 0)
159 SetSize(wxSize(width,height));
164 if (pos_x >= 0 && pos_y >= 0)
167 for (
auto i = 0;
i < wxDisplay::GetCount();
i++)
169 wxDisplay display(
i);
170 max_x += display.GetGeometry().GetWidth();
172 if (pos_x + width > max_x) pos_x = wxGetDisplaySize().GetWidth()-width-5;
173 if (pos_y + height > wxGetDisplaySize().GetHeight()) pos_y = wxGetDisplaySize().GetHeight()-height-5;
175 SetPosition(wxPoint(pos_x,pos_y));
201 wxBoxSizer* itemBoxSizer1 =
new wxBoxSizer(wxVERTICAL);
202 SetSizer(itemBoxSizer1);
204 wxPanel* itemCBulkCmdDlg1 =
new wxPanel(
this,
wxID_ANY);
205 itemBoxSizer1->Add(itemCBulkCmdDlg1, 1, wxGROW, 0);
207 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
208 itemCBulkCmdDlg1->SetSizer(itemBoxSizer2);
211 itemBoxSizer2->Add(
m_FeatureType, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
220 m_Notebook =
new wxNotebook(itemCBulkCmdDlg1,
wxID_ANY,wxDefaultPosition,wxDefaultSize);
221 itemBoxSizer2->Add(
m_Notebook, 1, wxGROW|wxALL, 5);
233 m_Notebook->AddPage(panel4,
_(
"Reverse Location Interval Order"));
236 m_Notebook->AddPage(panel5,
_(
"Resynchronize Partials"));
251 itemBoxSizer2->Add(
m_Constraint, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
254 itemBoxSizer2->Add(
m_OkCancel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
266 for (CBioseq_Handle::TId::const_iterator idh = bsh.
GetId().begin(); idh != bsh.
GetId().end(); ++idh)
325 wxWindowList &slist = win->GetChildren();
326 for (wxWindowList::iterator iter = slist.begin(); iter != slist.end(); ++iter)
328 wxWindow* child = *iter;
345 int sel = editing_type;
366 vector<CConstRef<CObject> > objs;
385 objs.push_back(
object);
390 if (objs.size() == 0) {
391 wxMessageBox(
wxT(
"No features found!"),
wxT(
"Error"),
392 wxOK | wxICON_ERROR,
NULL);
396 bool any_change(
false);
404 wxMessageBox(
wxT(
"No effect!"),
wxT(
"Error"),
405 wxOK | wxICON_ERROR,
NULL);
453 wxPanel::Create( parent,
id, pos,
size, style );
458 GetSizer()->SetSizeHints(
this);
497 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
498 itemPanel1->SetSizer(itemBoxSizer2);
500 wxStaticText* text1 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Click OK to clear feature evidence"), wxDefaultPosition, wxDefaultSize, 0 );
501 itemBoxSizer2->Add(text1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
544 bool any_change(
false);
547 if (
f &&
f->IsSetExp_ev()) {
553 cmd->AddCommand(*ecmd);
601 wxPanel::Create( parent,
id, pos,
size, style );
606 GetSizer()->SetSizeHints(
this);
645 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
646 itemPanel1->SetSizer(itemBoxSizer2);
649 itemBoxSizer2->Add(
m_EditLoc, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
692 bool any_change(
false);
696 bool create_general_only =
false;
699 if (!vec_tse.empty())
705 if (
f->IsSetData() &&
f->GetData().IsCdregion() &&
706 f->IsSetExcept_text() &&
NStr::Find(
f->GetExcept_text(),
"RNA editing") != string::npos)
713 *
f, scope,
offset, create_general_only);
715 cmd->AddCommand(*ecmd);
764 wxPanel::Create( parent,
id, pos,
size, style );
769 GetSizer()->SetSizeHints(
this);
810 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
811 itemPanel1->SetSizer(itemBoxSizer2);
814 wxStaticText* stattext =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Convert location strand from"), wxDefaultPosition, wxDefaultSize, 0 );
815 itemBoxSizer2->Add(stattext, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
817 wxArrayString strand_strings;
818 strand_strings.Add(
_(
"Any"));
819 strand_strings.Add(
_(
"Unknown"));
820 strand_strings.Add(
_(
"Plus"));
821 strand_strings.Add(
_(
"Minus"));
822 strand_strings.Add(
_(
"Both"));
823 m_StrandFrom =
new wxChoice( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, strand_strings, 0 );
825 itemBoxSizer2->Add(
m_StrandFrom, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
827 wxStaticText* stattext2 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"To"), wxDefaultPosition, wxDefaultSize, 0 );
828 itemBoxSizer2->Add(stattext2, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
830 strand_strings[0] =
_(
"Reverse");
831 m_StrandTo =
new wxChoice( itemPanel1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, strand_strings, 0 );
833 itemBoxSizer2->Add(
m_StrandTo, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
876 bool any_change(
false);
892 if (!bsh || !bsh.
IsAa())
896 bool this_change = macro::CMacroFunction_ConvertLocStrand::s_ConvertLocationStrand(*new_feat, scope, strand_from, strand_to);
900 cmd->AddCommand(*ecmd);
951 wxPanel::Create( parent,
id, pos,
size, style );
956 GetSizer()->SetSizeHints(
this);
995 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
996 itemPanel1->SetSizer(itemBoxSizer2);
998 wxStaticText* text1 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Click OK to reverse location interval order"), wxDefaultPosition, wxDefaultSize, 0 );
999 itemBoxSizer2->Add(text1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
1023 return wxNullBitmap;
1042 bool any_change(
false);
1045 if (
f &&
f->IsSetLocation()) {
1055 cmd->AddCommand(*ecmd);
1105 wxPanel::Create( parent,
id, pos,
size, style );
1110 GetSizer()->SetSizeHints(
this);
1149 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
1150 itemPanel1->SetSizer(itemBoxSizer2);
1152 wxStaticText* text1 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Click OK to resynch partials"), wxDefaultPosition, wxDefaultSize, 0 );
1153 itemBoxSizer2->Add(text1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
1177 return wxNullBitmap;
1196 bool any_change(
false);
1210 cmd->AddCommand(*synch);
1257 wxPanel::Create( parent,
id, pos,
size, style );
1262 GetSizer()->SetSizeHints(
this);
1301 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
1302 itemPanel1->SetSizer(itemBoxSizer2);
1304 wxArrayString pseudogeneChoiceStrings;
1305 pseudogeneChoiceStrings.Add(wxEmptyString);
1306 pseudogeneChoiceStrings.Add(
_(
"Processed"));
1307 pseudogeneChoiceStrings.Add(
_(
"Unprocessed"));
1308 pseudogeneChoiceStrings.Add(
_(
"Unitary"));
1309 pseudogeneChoiceStrings.Add(
_(
"Allelic"));
1310 pseudogeneChoiceStrings.Add(
_(
"Unknown"));
1311 pseudogeneChoiceStrings.Add(
_(
"Unqualified"));
1313 itemBoxSizer2->Add(
m_PseudogeneChoice, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
1337 return wxNullBitmap;
1358 bool any_change(
false);
1369 CSeq_feat::TQual::iterator it = new_feat->
SetQual().begin();
1370 while (it != new_feat->
SetQual().end()) {
1372 it = new_feat->
SetQual().erase(it);
1377 if (new_feat->
SetQual().empty()) {
1382 if (pseudo_choice !=
"unqualified")
1385 new_feat->
SetQual().push_back(qual);
1424 : m_is_refseq(
false)
1430 : m_is_refseq(is_refseq)
1444 wxPanel::Create( parent,
id, pos,
size, style );
1449 GetSizer()->SetSizeHints(
this);
1488 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
1489 itemPanel1->SetSizer(itemBoxSizer2);
1491 wxStaticText* text1 =
new wxStaticText( itemPanel1, wxID_STATIC,
_(
"Set Explanation to"), wxDefaultPosition, wxDefaultSize, 0 );
1492 itemBoxSizer2->Add(text1, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
1494 wxArrayString exceptionStrings;
1505 for (vector<string>::const_iterator s = explanation_strings.begin(); s != explanation_strings.end(); ++s)
1506 exceptionStrings.Add(wxString(*s));
1508 m_Exception =
new wxComboBox( itemPanel1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, exceptionStrings, wxCB_DROPDOWN);
1509 itemBoxSizer2->Add(
m_Exception, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
1511 wxArrayString featureProductStrings;
1512 featureProductStrings.Add(
_(
"Present"));
1513 featureProductStrings.Add(
_(
"Absent"));
1514 featureProductStrings.Add(
_(
"Either"));
1515 m_FeatureProduct =
new wxRadioBox( itemPanel1,
wxID_ANY,
_(
"Where feature product is"), wxDefaultPosition, wxDefaultSize, featureProductStrings, 0, wxRA_SPECIFY_COLS );
1517 itemBoxSizer2->Add(
m_FeatureProduct, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);
1519 m_MoveToComment =
new wxCheckBox( itemPanel1,
wxID_ANY,
_(
"Move explanation to comment"), wxDefaultPosition, wxDefaultSize, 0 );
1521 itemBoxSizer2->Add(
m_MoveToComment, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 2);
1545 return wxNullBitmap;
1565 bool any_change(
false);
1575 if (feat_product_present == 2 || (new_feat->
IsSetProduct() && feat_product_present == 0) || (!new_feat->
IsSetProduct() && feat_product_present == 1))
1589 if (!old_value.empty() && move_to_comment)
1592 comment +=
"; " + old_value;
1594 comment = old_value;
1660 wxPanel::Create( parent,
id, pos,
size, style );
1665 GetSizer()->SetSizeHints(
this);
1704 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxHORIZONTAL);
1705 itemPanel1->SetSizer(itemBoxSizer2);
1707 wxArrayString create_or_delete;
1708 create_or_delete.Add(
_(
"Set Experiment"));
1709 create_or_delete.Add(
_(
"Remove Experiments"));
1710 m_CreateOrDelete =
new wxRadioBox( itemPanel1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, create_or_delete, 0, wxRA_SPECIFY_ROWS );
1742 return wxNullBitmap;
1762 bool any_change(
false);
1767 if (create_or_delete == 0)
1779 if (create_or_delete == 0 && !
value.empty())
1782 new_feat->
SetQual().push_back(edited_qual);
1785 if (create_or_delete == 1)
1850 wxPanel::Create( parent,
id, pos,
size, style );
1855 GetSizer()->SetSizeHints(
this);
1894 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxHORIZONTAL);
1895 itemPanel1->SetSizer(itemBoxSizer2);
1897 wxArrayString create_or_delete;
1898 create_or_delete.Add(
_(
"Set Inference"));
1899 create_or_delete.Add(
_(
"Remove Inferences"));
1900 m_CreateOrDelete =
new wxRadioBox( itemPanel1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, create_or_delete, 0, wxRA_SPECIFY_ROWS );
1932 return wxNullBitmap;
1952 bool any_change(
false);
1957 if (create_or_delete == 0)
1969 if (create_or_delete == 0 && !
value.empty())
1972 new_feat->
SetQual().push_back(edited_qual);
1975 if (create_or_delete == 1)
static const char * kFramePosX
static const char * kFrameHeight
static const char * kFramePosY
static const char * kFrameWidth
static const char * kPseudogene
#define ID_EFL_FEATURETYPE
bool IsGeneralIdProtPresent(objects::CSeq_entry_Handle tse)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxIcon GetIconResource(const wxString &name)
CBlkEdtFeatLocationPanel()
CEditFeatLocPanel * m_EditLoc
static bool ShowToolTips()
~CBlkEdtFeatLocationPanel()
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
wxBitmap GetBitmapResource(const wxString &name)
objects::CSeq_entry_Handle m_TopSeqEntry
bool Create(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr)
bool GetTopLevelSeqEntryAndProcessor()
CBulkEditFeatDlg()
Constructors.
virtual string GetErrorMessage()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
virtual void LoadSettings()
CFeatureTypePanel * m_FeatureType
virtual void SetRegistryPath(const string ®_path)
virtual CRef< CCmdComposite > GetCommand()
void SetEditingType(EEditingType editing_type)
COkCancelPanel * m_OkCancel
void Init()
Initialises member variables.
void UpdateChildrenFeaturePanels(wxWindow *win)
void ProcessUpdateFeatEvent(wxCommandEvent &event)
bool Create(wxWindow *parent, IWorkbench *wb, wxWindowID id=10268, const wxString &caption=_("BulkEditFeatDlg"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(800, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
~CBulkEditFeatDlg()
Destructor.
virtual void SaveSettings() const
static bool ShowToolTips()
Should we show tooltips?
void CreateControls()
Creates the controls and sizers.
CConstraintPanel * m_Constraint
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
virtual CRef< CEditingActionConstraint > GetConstraint(const string &field, CFieldNamePanel::EFieldType field_type, int subtype, const string &ncRNA_class)
CRef< objects::edit::CLocationEditPolicy > GetPolicy()
void OnCreateOrDelete(wxCommandEvent &event)
CInferencePanel * m_SingleInference
wxBitmap GetBitmapResource(const wxString &name)
wxRadioBox * m_CreateOrDelete
wxIcon GetIconResource(const wxString &name)
static bool ShowToolTips()
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
virtual bool Match(const string &value)
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxBitmap GetBitmapResource(const wxString &name)
static bool ShowToolTips()
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
wxRadioBox * m_FeatureProduct
static bool ShowToolTips()
wxCheckBox * m_MoveToComment
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxBitmap GetBitmapResource(const wxString &name)
void OnCreateOrDelete(wxCommandEvent &event)
wxIcon GetIconResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
static bool ShowToolTips()
wxRadioBox * m_CreateOrDelete
wxBitmap GetBitmapResource(const wxString &name)
CSingleExperimentPanel * m_SingleExperiment
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
virtual string GetFieldName(const bool subfield=false)
Returns the name of the field as selected in the panel.
void ListPresentFeaturesFirst(const objects::CSeq_entry_Handle &entry, vector< const objects::CFeatListItem * > *featlist=nullptr)
@Gb_qual.hpp User-defined methods of the data storage class.
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.
virtual void SetValue(string val)
virtual string GetValue()
Base class for all object manager exceptions.
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
static bool ShowToolTips()
wxBitmap GetBitmapResource(const wxString &name)
wxChoice * m_PseudogeneChoice
wxIcon GetIconResource(const wxString &name)
static void RemoveRepresentedQuals(objects::CSeq_feat &feat, const string &qual_name)
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
void Set(const string &key, int val)
access a named key at this level, with no recursion
wxIcon GetIconResource(const wxString &name)
wxBitmap GetBitmapResource(const wxString &name)
static bool ShowToolTips()
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
static bool ShowToolTips()
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
wxIcon GetIconResource(const wxString &name)
wxBitmap GetBitmapResource(const wxString &name)
static ESubtype SubtypeNameToValue(CTempString sName)
Turn a string into its ESubtype which is NOT necessarily related to the identifier of the enum.
namespace ncbi::objects::
static vector< string > GetListOfLegalExceptions(bool include_refseq)
Produces the list of legal exceptions.
Seq-loc iterator class – iterates all intervals from a seq-loc in the correct order.
virtual string GetValue()
virtual void SetValue(string val)
wxIcon GetIconResource(const wxString &name)
virtual bool AddCommand(vector< CConstRef< CObject > > &objs, CRef< CCmdComposite > cmd, CScope &scope)
wxBitmap GetBitmapResource(const wxString &name)
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL)
static bool ShowToolTips()
IWorkbench is the central interface in the application framework.
int CorrectForncRNASubtypes(CSeqFeatData::ESubtype subtype, string &ncRNA_class)
CRef< CCmdComposite > GetReplacementCommand(CConstRef< CObject > oldobj, CRef< CObject > newobj, CScope &scope, const string &cmd_name)
CRef< CObject > GetNewObject(CConstRef< CObject > object)
#define EVT_UPDATE_FEATURE_LIST(id, fn)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
void FlipStrand(void)
Flip the strand (e.g. plus to minus)
bool AdjustFeaturePartialFlagForLocation(CSeq_feat &new_feat)
AdjustFeaturePartialFlagForLocation A function to ensure that Seq-feat.partial is set if either end o...
CSeq_loc * SeqLocRevCmpl(const CSeq_loc &loc, CScope *scope)
Get reverse complement of the seq-loc (?)
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
void GetAllTSEs(TTSE_Handles &tses, enum ETSEKind kind=eManualTSEs)
CSeq_feat_Handle GetSeq_featHandle(const CSeq_feat &feat, EMissing action=eMissing_Default)
vector< CSeq_entry_Handle > TTSE_Handles
virtual const CSeq_loc & GetLocation(void) const
CScope & GetScope(void) const
Get scope this handle belongs to.
CConstRef< CSeq_feat > GetOriginalSeq_feat(void) const
const TId & GetId(void) const
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static bool IsBlank(const CTempString str, SIZE_TYPE pos=0)
Check if a string is blank (has no text).
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 & ToLower(string &str)
Convert string to lower case – string& version.
bool IsSetComment(void) const
Check if a value has been assigned to Comment data member.
bool IsSetQual(void) const
qualifiers Check if a value has been assigned to Qual data member.
void SetLocation(TLocation &value)
Assign a value to Location data member.
void SetComment(const TComment &value)
Assign a value to Comment data member.
void ResetExp_ev(void)
Reset Exp_ev data member.
void ResetExcept_text(void)
Reset Except_text data member.
const TLocation & GetLocation(void) const
Get the Location member data.
void SetExcept(TExcept value)
Assign a value to Except data member.
void ResetPseudo(void)
Reset Pseudo data member.
const TExcept_text & GetExcept_text(void) const
Get the Except_text member data.
bool IsSetExcept_text(void) const
explain if except=TRUE Check if a value has been assigned to Except_text data member.
const TComment & GetComment(void) const
Get the Comment member data.
void SetPseudo(TPseudo value)
Assign a value to Pseudo data member.
void SetExcept_text(const TExcept_text &value)
Assign a value to Except_text data member.
TQual & SetQual(void)
Assign a value to Qual data member.
bool IsSetProduct(void) const
product of process Check if a value has been assigned to Product data member.
void ResetQual(void)
Reset Qual data member.
bool IsOther(void) const
Check if variant Other is selected.
@ eMol_na
just a nucleic acid
const struct ncbi::grid::netcache::search::fields::SIZE size
double f(double x_, const double &y_)
static int match(register const pcre_uchar *eptr, register const pcre_uchar *ecode, const pcre_uchar *mstart, int offset_top, match_data *md, eptrblock *eptrb, unsigned int rdepth)
CRef< CCmdComposite > GetSynchronizeProteinPartialsCommand(objects::CScope &scope, const objects::CSeq_feat &cds)
CRef< CCmdComposite > GetEditLocationCommand(const objects::edit::CLocationEditPolicy &policy, bool retranslate, bool adjust_gene, const objects::CSeq_feat &orig_feat, objects::CScope &scope, int &offset, bool create_general_only)
string ToStdString(const wxString &s)
wxRect GetScreenRect(const wxWindow &win)