(parent,
id, caption, pos,
size, style);
100 bool CtRNAFromGene::Create( wxWindow* parent, wxWindowID
id,
constwxString& caption,
constwxPoint& pos,
constwxSize&
size,
longstyle )
103SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
109GetSizer()->SetSizeHints(
this);
153wxBoxSizer* itemBoxSizer2 =
newwxBoxSizer(wxVERTICAL);
154itemCBulkCmdDlg1->SetSizer(itemBoxSizer2);
159wxArrayString feat_strings;
160feat_strings.Add(
_(
"tRNA"));
161feat_strings.Add(
_(
"rRNA"));
162 m_FeatureType=
newwxChoice( itemCBulkCmdDlg1,
wxID_ANY, wxDefaultPosition, wxDefaultSize, feat_strings, 0 );
164itemBoxSizer2->Add(
m_FeatureType, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
166wxStaticBox* itemStaticBoxSizer7Static =
newwxStaticBox(itemCBulkCmdDlg1,
wxID_ANY,
_(
"Source for new tRNA/rRNA product"));
167wxStaticBoxSizer* itemBoxSizer7 =
newwxStaticBoxSizer(itemStaticBoxSizer7Static, wxVERTICAL);
168itemBoxSizer2->Add(itemBoxSizer7, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
170wxBoxSizer* itemBoxSizer8 =
newwxBoxSizer(wxHORIZONTAL);
171itemBoxSizer7->Add(itemBoxSizer8, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
173wxStaticText* stattext2 =
newwxStaticText(
this, wxID_STATIC,
_(
"1st Choice"), wxDefaultPosition, wxDefaultSize, 0 );
174itemBoxSizer8->Add(stattext2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
175wxArrayString choice_strings;
176choice_strings.Add(
_(
"None"));
177choice_strings.Add(
_(
"locus"));
178choice_strings.Add(
_(
"description"));
179choice_strings.Add(
_(
"comment"));
180choice_strings.Add(
_(
"allele"));
181choice_strings.Add(
_(
"maploc"));
182choice_strings.Add(
_(
"locus_tag"));
183choice_strings.Add(
_(
"synonym"));
184choice_strings.Add(
_(
"old_locus_tag"));
187 m_FeatQual=
newwxChoice(
this,
wxID_ANY, wxDefaultPosition, wxDefaultSize, choice_strings, 0 );
189itemBoxSizer8->Add(
m_FeatQual, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
191 m_Remove=
newwxCheckBox( itemCBulkCmdDlg1,
wxID_ANY,
_(
"Remove if used"), wxDefaultPosition, wxDefaultSize, 0 );
193itemBoxSizer8->Add(
m_Remove, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
196wxBoxSizer* itemBoxSizer9 =
newwxBoxSizer(wxHORIZONTAL);
197itemBoxSizer7->Add(itemBoxSizer9, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
198 m_2ndChoice=
newwxStaticText(
this, wxID_STATIC,
_(
"2nd Choice"), wxDefaultPosition, wxDefaultSize, 0 );
199itemBoxSizer9->Add(
m_2ndChoice, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
200 m_FeatQual2=
newwxChoice(
this,
wxID_ANY, wxDefaultPosition, wxDefaultSize, choice_strings, 0 );
202itemBoxSizer9->Add(
m_FeatQual2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
205 m_Remove2=
newwxCheckBox( itemCBulkCmdDlg1,
wxID_ANY,
_(
"Remove if used"), wxDefaultPosition, wxDefaultSize, 0 );
207itemBoxSizer9->Add(
m_Remove2, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
210wxBoxSizer* itemBoxSizer10 =
newwxBoxSizer(wxHORIZONTAL);
211itemBoxSizer7->Add(itemBoxSizer10, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
212 m_3rdChoice=
newwxStaticText(
this, wxID_STATIC,
_(
"3rd Choice"), wxDefaultPosition, wxDefaultSize, 0 );
213itemBoxSizer10->Add(
m_3rdChoice, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
214 m_FeatQual3=
newwxChoice(
this,
wxID_ANY, wxDefaultPosition, wxDefaultSize, choice_strings, 0 );
216itemBoxSizer10->Add(
m_FeatQual3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
218 m_Remove3=
newwxCheckBox( itemCBulkCmdDlg1,
wxID_ANY,
_(
"Remove if used"), wxDefaultPosition, wxDefaultSize, 0 );
220itemBoxSizer10->Add(
m_Remove3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
226wxStaticText* stattext4 =
newwxStaticText(
this, wxID_STATIC,
_(
"Append text to name"), wxDefaultPosition, wxDefaultSize, 0 );
227itemBoxSizer2->Add(stattext4, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
228 m_StrQual=
newwxTextCtrl( itemCBulkCmdDlg1,
wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize(100, -1), 0 );
229itemBoxSizer2->Add(
m_StrQual, 0, wxALIGN_CENTER_HORIZONTAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
232 m_SingleInterval=
newwxCheckBox( itemCBulkCmdDlg1,
wxID_ANY,
_(
"Fuse multiple intervals for new tRNA/rRNA"), wxDefaultPosition, wxDefaultSize, 0 );
234itemBoxSizer2->Add(
m_SingleInterval, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
245itemBoxSizer2->Add(
m_OkCancel, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
301 if(sel_feat != wxNOT_FOUND)
303feat_type =
m_FeatureType->GetString(sel_feat).ToStdString();
314vector<CConstRef<CObject> > objs;
318wxMessageBox(
wxT(
"No features found!"),
wxT(
"Error"),
319wxOK | wxICON_ERROR,
NULL);
323 boolany_change =
false;
336features[bsh].push_back(
f);
340 for(
auto&bsh_pair : features)
343 for(
size_t i= 0;
i< bsh_pair.second.size();
i++)
347loc->
Assign(
f->GetLocation());
355 for(
size_tj = 1; j < bsh_pair.second.size(); j++)
357 const CSeq_feat* f2 = bsh_pair.second[j];
370 if(feat_type ==
"tRNA")
385 if(
f->IsSetProduct())
413new_feat->
SetData().SetRna().SetRnaProductName(name, remainder);
435wxMessageBox(
wxT(
"No effect!"),
wxT(
"Error"),
436wxOK | wxICON_ERROR,
NULL);
447 if(sel1 != wxNOT_FOUND && sel1 != 0)
461 if(sel2 != wxNOT_FOUND && sel2 != 0)
478 if(
m_FeatQual->GetSelection() != wxNOT_FOUND)
489name +=
m_StrQual->GetValue().ToStdString();
506gene.
SetData().SetGene().ResetLocus();
526gene.
SetData().SetGene().ResetLocus_tag();
536gene.
SetData().SetGene().ResetAllele();
546gene.
SetData().SetGene().ResetDesc();
556gene.
SetData().SetGene().ResetMaploc();
566gene.
SetData().SetGene().SetSyn().erase(gene.
SetData().SetGene().SetSyn().begin());
568gene.
SetData().SetGene().ResetSyn();
573 if(sel_str ==
_(
"old_locus_tag"))
594wxSizerItemList& slist = sizer->GetChildren();
596 for(wxSizerItemList::iterator iter = slist.begin(); iter != slist.end(); ++iter, ++
n) {
597 if((*iter)->IsSizer()) {
599}
else if((*iter)->IsWindow()) {
600wxWindow* child = (*iter)->GetWindow();
606wxSizer* subsizer = child->GetSizer();
@ eExtreme_Positional
numerical value
@ eExtreme_Biological
5' and 3'
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()
objects::ECapChange GetCapitalizationRequest()
void PopulateFeatureListbox(void)
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)
vector< CConstRef< CObject > > GetObjects(objects::CBioseq_Handle bsh)
namespace ncbi::objects::
const string & GetNamedQual(const CTempString &qual_name) const
Return a named qualifier.
void RemoveQualifier(const string &qual_name)
Remove all qualifiers with the given name; do nothing if no such qualifier exists.
CRef< edit::CStringConstraint > GetStringConstraint()
CStringConstraintPanel * m_StringConstraintPanel
string GetSuggestedName(CSeq_feat &feat, CRef< CSeq_feat > prot_feat, CSeq_entry_Handle seh)
static bool ShowToolTips()
Should we show tooltips?
virtual string GetErrorMessage()
virtual CRef< CCmdComposite > GetCommand()
void GetNameFromGene(CSeq_feat &gene, const wxString &sel_str, bool remove, string &name)
wxStaticText * m_3rdChoice
CtRNAFromGene()
Constructors.
CCapChangePanel * m_CapChangeOptions
bool Create(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &caption=_("tRNA/rRNA From Gene"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 500), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
void ProcessUpdateFeatEvent(wxCommandEvent &event)
void OnSelectFeatQual(wxCommandEvent &event)
~CtRNAFromGene()
Destructor.
void CreateControls()
Creates the controls and sizers.
void Init()
Initialises member variables.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
COkCancelPanel * m_OkCancel
wxCheckBox * m_SingleInterval
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void UpdateChildrenFeaturePanels(wxSizer *sizer)
CFeatureFieldNamePanel * m_FeatureConstraint
wxStaticText * m_2ndChoice
IWorkbench is the central interface in the application framework.
static auto & FixCapitalizationInString
const string kPartialStart
#define EVT_UPDATE_FEATURE_LIST(id, fn)
static void DLIST_NAME() remove(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
static const char * str(char *buf, int n)
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Set object to copy of another one.
bool IsPartialStart(ESeqLocExtremes ext) const
check start or stop of location for e_Lim fuzz
virtual void Assign(const CSerialObject &source, ESerialRecursionMode how=eRecursive)
Override Assign() to incorporate cache invalidation.
void SetPartialStart(bool val, ESeqLocExtremes ext)
set / remove e_Lim fuzz on start or stop (lt/gt - indicating partial interval)
void SetPartialStop(bool val, ESeqLocExtremes ext)
bool IsPartialStop(ESeqLocExtremes ext) const
CRef< CSeq_loc > Seq_loc_Add(const CSeq_loc &loc1, const CSeq_loc &loc2, CSeq_loc::TOpFlags flags, CScope *scope)
Add two seq-locs.
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
CSeq_feat_Handle GetSeq_featHandle(const CSeq_feat &feat, EMissing action=eMissing_Default)
CSeq_entry_Handle GetSeq_entry_Handle(void) const
Get parent Seq-entry handle.
const CSeq_feat & GetOriginalFeature(void) const
Get original feature with unmapped location/product.
const CSeq_feat_Handle & GetSeq_feat_Handle(void) const
Get original feature handle.
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).
bool IsSetSyn(void) const
synonyms for locus Check if a value has been assigned to Syn data member.
const TSyn & GetSyn(void) const
Get the Syn member data.
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 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 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.
void SetLocation(TLocation &value)
Assign a value to Location data member.
void SetComment(const TComment &value)
Assign a value to Comment data member.
void SetPartial(TPartial value)
Assign a value to Partial data member.
const TLocation & GetLocation(void) const
Get the Location member data.
bool IsGene(void) const
Check if variant Gene is selected.
const TData & GetData(void) const
Get the Data member data.
void SetData(TData &value)
Assign a value to Data data member.
void ResetComment(void)
Reset Comment data member.
const TComment & GetComment(void) const
Get the Comment member data.
const TGene & GetGene(void) const
Get the variant data.
const struct ncbi::grid::netcache::search::fields::SIZE size
USING_SCOPE(ncbi::objects)
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