NCBI C++ ToolKit
|
Search Toolkit Book for CCdsToMatPeptide
#include <gui/packages/pkg_sequence_edit/cds_to_mat_peptide.hpp>
Public Member Functions | |
CCdsToMatPeptide () | |
Constructors. More... | |
CCdsToMatPeptide (wxWindow *parent, IWorkbench *wb, wxWindowID id=10568, const wxString &caption=_("Convert CDS to Mat-peptide"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 500), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10568, const wxString &caption=_("Convert CDS to Mat-peptide"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 500), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
Creation. More... | |
~CCdsToMatPeptide () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
wxBitmap | GetBitmapResource (const wxString &name) |
Retrieves bitmap resources. More... | |
wxIcon | GetIconResource (const wxString &name) |
Retrieves icon resources. More... | |
virtual CRef< CCmdComposite > | GetCommand () |
virtual string | GetErrorMessage () |
void | OnRadioButton (wxCommandEvent &event) |
void | ProcessUpdateFeatEvent (wxCommandEvent &event) |
![]() | |
CBulkCmdDlg () | |
Constructors. More... | |
CBulkCmdDlg (IWorkbench *wb) | |
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 | Create (wxWindow *parent, IWorkbench *wb, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE, const wxString &name=wxFrameNameStr) |
~CBulkCmdDlg () | |
Destructor. More... | |
virtual void | OnChildChange (wxWindow *wnd) |
virtual void | ExecuteCmd (CRef< CCmdComposite > cmd) |
bool | GetTopLevelSeqEntryAndProcessor () |
TConstScopedObjects | GetSelectedObjects () |
void | UpdateChildrenFeaturePanels (wxSizer *sizer) |
void | onCancelPressed (wxCommandEvent &event) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Private Member Functions | |
void | UpdateChildrenFeaturePanels (wxSizer *sizer) |
void | ConvertEach (CRef< CCmdComposite > cmd) |
void | MergeConvert (CRef< CCmdComposite > cmd) |
void | ConvertInner (CRef< CCmdComposite > cmd) |
void | RemoveFeature (CRef< CSeq_entry > entry, const CSeq_feat *feat) |
void | RemoveProteins (CRef< CSeq_entry > entry, const CSeq_feat *feat, CSeq_entry_Handle seh) |
void | FindAnnot (CRef< CSeq_entry > entry, const CSeq_feat *feat, CRef< CSeq_annot > &annot) |
Private Attributes | |
string | m_ErrorMessage |
COkCancelPanel * | m_OkCancel |
wxRadioButton * | m_Inner |
wxRadioButton * | m_Merge |
wxRadioButton * | m_Each |
CRef< CConvertFeatureBase > | m_converter |
wxCheckBox * | m_EntireRange |
wxRadioButton * | m_ProductFirst |
wxRadioButton * | m_ProductThis |
CRef< CMiscSeqTableColumn > | m_col |
wxTextCtrl * | m_ProductName |
CStringConstraintPanel * | m_StringConstraintPanel |
CFeatureFieldNamePanel * | m_FeatureConstraint |
Additional Inherited Members | |
![]() | |
edit::EExistingText | x_GetExistingTextHandling (int num_conflicts, bool allow_multiple=false) |
![]() | |
IWorkbench * | m_Workbench |
ICommandProccessor * | m_CmdProccessor |
objects::CSeq_entry_Handle | m_TopSeqEntry |
CConstRef< objects::CSeq_submit > | m_SeqSubmit |
string | m_ErrorMessage |
Definition at line 84 of file cds_to_mat_peptide.hpp.
CCdsToMatPeptide::CCdsToMatPeptide | ( | ) |
Constructors.
CCdsToMatPeptide type definition
CCdsToMatPeptide event table definition
CCdsToMatPeptide constructors
Definition at line 93 of file cds_to_mat_peptide.cpp.
References Init().
CCdsToMatPeptide::CCdsToMatPeptide | ( | wxWindow * | parent, |
IWorkbench * | wb, | ||
wxWindowID | id = 10568 , |
||
const wxString & | caption = _("Convert CDS to Mat-peptide") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(900, 500) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 98 of file cds_to_mat_peptide.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CCdsToMatPeptide::~CCdsToMatPeptide | ( | ) |
|
private |
Definition at line 280 of file cds_to_mat_peptide.cpp.
References cmd, CConvertFeatureBase::Convert(), f, CMiscSeqTableColumn::GetObjects(), ITERATE, kEmptyStr, m_col, m_converter, CBulkCmdDlg::m_TopSeqEntry, and NULL.
Referenced by GetCommand().
|
private |
Definition at line 455 of file cds_to_mat_peptide.cpp.
References CSerialObject::Assign(), cmd, CSeqFeatData_Base::e_Cdregion, CSeqFeatData_Base::e_Prot, eExtreme_Biological, CSeq_loc_Mapper_Base::eLocationToProduct, set< Key, Compare >::end(), eOverlap_Subset, CProt_ref_Base::eProcessed_mature, CSerialObject::Equals(), CSeqFeatData::eSubtype_cdregion, f, set< Key, Compare >::find(), CScope::GetBioseqHandle(), CSeq_feat_Base::GetData(), GetDeleteFeatureCommand(), CProt_ref_Base::GetDesc(), CBioseq_Handle::GetInst_Length(), CSeq_feat_Base::GetLocation(), CMiscSeqTableColumn::GetObjects(), CMappedFeat::GetOriginalFeature(), GetOverlappingFeatures(), CSeq_feat_Base::GetProduct(), GetProductToCDSMap(), CSeqFeatData_Base::GetProt(), CBioseq_Handle::GetSeq_entry_Handle(), CScope::GetSeq_featHandle(), CSeq_loc::GetStop(), i, set< Key, Compare >::insert(), CSeq_loc_Base::IsInt(), CSeqFeatData_Base::IsProt(), CBioseq_Handle::IsProtein(), CSeq_feat_Base::IsSetData(), CProt_ref_Base::IsSetDesc(), ITERATE, kEmptyStr, m_col, m_converter, CBulkCmdDlg::m_TopSeqEntry, CSeq_loc_Mapper_Base::MapTotalRange(), NULL, CSeq_feat_Base::ResetComment(), CSeq_feat_Base::ResetProduct(), CSeq_feat_Base::SetData(), CSeq_feat_Base::SetLocation(), CSeq_loc_Mapper_Base::SetMergeAbutting(), and CConvertFeatureBase::x_GetCDSProduct().
Referenced by GetCommand().
bool CCdsToMatPeptide::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10568 , |
||
const wxString & | caption = _("Convert CDS to Mat-peptide") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(900, 500) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Creation.
CCdsToMatPeptide creator
Definition at line 110 of file cds_to_mat_peptide.cpp.
References CBulkCmdDlg::Create(), CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CCdsToMatPeptide().
void CCdsToMatPeptide::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CCdsToMatPeptide
Definition at line 158 of file cds_to_mat_peptide.cpp.
References _, CBulkCmdDlg::GetTopLevelSeqEntryAndProcessor(), m_Each, m_EntireRange, m_FeatureConstraint, m_Inner, m_Merge, m_OkCancel, m_ProductFirst, m_ProductName, m_ProductThis, m_StringConstraintPanel, NULL, CFeatureFieldNamePanel::PopulateFeatureListbox(), wxFIXED_MINSIZE, and wxID_ANY.
Referenced by Create().
|
private |
Definition at line 599 of file cds_to_mat_peptide.cpp.
References CSeq_feat::Compare(), FOR_EACH_SEQENTRY_ON_SEQSET, FOR_EACH_SEQFEAT_ON_SEQANNOT, CSeq_feat_Base::GetData(), CSeqFeatData::GetSubtype(), CSeq_entry_Base::IsSet(), CSeq_entry::SetAnnot(), and CSeq_entry_Base::SetSet().
Referenced by MergeConvert().
wxBitmap CCdsToMatPeptide::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 229 of file cds_to_mat_peptide.cpp.
|
virtual |
Implements CBulkCmdDlg.
Definition at line 259 of file cds_to_mat_peptide.cpp.
References cmd, ConvertEach(), ConvertInner(), m_Each, m_Inner, m_Merge, and MergeConvert().
|
virtual |
Implements CBulkCmdDlg.
Definition at line 253 of file cds_to_mat_peptide.cpp.
References m_ErrorMessage.
wxIcon CCdsToMatPeptide::GetIconResource | ( | const wxString & | name | ) |
void CCdsToMatPeptide::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 142 of file cds_to_mat_peptide.cpp.
References CConvertFeatureBaseFactory::Create(), CSeqFeatData::eSubtype_cdregion, CSeqFeatData::eSubtype_mat_peptide_aa, kPartialStart, m_col, m_converter, m_ErrorMessage, m_OkCancel, NULL, and CRef< C, Locker >::Reset().
Referenced by CCdsToMatPeptide().
|
private |
Definition at line 296 of file cds_to_mat_peptide.cpp.
References CSeq_loc::Assign(), CSerialObject::Assign(), cmd, eExtreme_Biological, eExtreme_Positional, CSeq_loc_Mapper_Base::eLocationToProduct, CProt_ref_Base::eProcessed_mature, CSeq_loc_Mapper_Base::eSeq_nuc, CSeq_loc_Mapper_Base::eSeq_prot, f, FindAnnot(), first(), CSeq_loc::fMerge_All, CSeq_loc::fSort, CBioseq_Handle::GetBioseqLength(), CSeq_entry_Handle::GetCompleteSeq_entry(), CFeatureFieldNamePanel::GetFieldName(), CSeq_id_Handle::GetHandle(), CSeq_loc::GetId(), CBioseq_Handle::GetId(), CSeq_feat_Base::GetLocation(), GetNewProtId(), CMiscSeqTableColumn::GetObjects(), GetOverlappingGene(), GetOverlappingmRNA(), CSeq_entry_Handle::GetParentBioseq_set(), CBioseq_set_Handle::GetParentEntry(), CConstRef< C, Locker >::GetPointer(), CSeq_feat_Base::GetProduct(), CBioseq_Handle::GetRangeSeq_loc(), CBioseq_Handle::GetSeq_entry_Handle(), CSeq_loc::GetStop(), CSeq_loc::GetStrand(), CStringConstraintPanel::GetStringConstraint(), i, IsGeneralIdProtPresent(), CSeq_loc::IsPartialStart(), CSeq_loc::IsPartialStop(), CSeq_entry_Handle::IsSet(), ITERATE, m_col, m_converter, m_EntireRange, m_FeatureConstraint, m_ProductName, m_ProductThis, m_StringConstraintPanel, CBulkCmdDlg::m_TopSeqEntry, CSeq_loc_Mapper_Base::MapTotalRange(), offset, RemoveFeature(), RemoveProteins(), CSeq_feat_Base::ResetProduct(), Seq_loc_Add(), Seq_loc_Subtract(), CSeq_annot_Base::SetData(), CSeq_feat_Base::SetData(), CSeq_loc::SetId(), CSeq_feat_Base::SetLocation(), CSeq_loc_Mapper_Base::SetMergeAbutting(), CSeq_feat_Base::SetPartial(), CSeq_loc::SetPartialStop(), CSeq_feat_Base::SetProduct(), CSeq_entry_Base::SetSeq(), CBioseq_set_Base::SetSeq_set(), CSeq_entry_Base::SetSet(), ncbi::grid::netcache::search::fields::size, CSeqTranslator::TranslateToProtein(), and CConvertFeatureBase::x_GetCDSProduct().
Referenced by GetCommand().
void CCdsToMatPeptide::OnRadioButton | ( | wxCommandEvent & | event | ) |
Definition at line 576 of file cds_to_mat_peptide.cpp.
References m_EntireRange, m_FeatureConstraint, m_Merge, m_ProductFirst, m_ProductName, m_ProductThis, and m_StringConstraintPanel.
void CCdsToMatPeptide::ProcessUpdateFeatEvent | ( | wxCommandEvent & | event | ) |
Definition at line 630 of file cds_to_mat_peptide.cpp.
References UpdateChildrenFeaturePanels().
|
private |
Definition at line 520 of file cds_to_mat_peptide.cpp.
References EDIT_EACH_SEQENTRY_ON_SEQSET, EDIT_EACH_SEQFEAT_ON_SEQANNOT, CSerialObject::Equals(), ERASE_SEQFEAT_ON_SEQANNOT, CSeq_entry::GetAnnot(), CSeq_feat_Base::GetData(), CSeqFeatData::GetSubtype(), CSeq_entry_Base::IsSeq(), CSeq_entry_Base::IsSet(), CBioseq_Base::ResetAnnot(), CBioseq_set_Base::ResetAnnot(), CSeq_entry::SetAnnot(), CSeq_entry_Base::SetSeq(), and CSeq_entry_Base::SetSet().
Referenced by MergeConvert().
|
private |
Definition at line 562 of file cds_to_mat_peptide.cpp.
References EDIT_EACH_SEQENTRY_ON_SEQSET, ERASE_SEQENTRY_ON_SEQSET, CSeq_loc::GetId(), CSeq_feat_Base::GetProduct(), IsFarLocation(), CSeq_entry_Base::IsSet(), CSeq_feat_Base::IsSetProduct(), and CSeq_entry_Base::SetSet().
Referenced by MergeConvert().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 220 of file cds_to_mat_peptide.cpp.
|
private |
Definition at line 635 of file cds_to_mat_peptide.cpp.
References CFeatureTypePanel::ListPresentFeaturesFirst(), CBulkCmdDlg::m_TopSeqEntry, and n.
Referenced by ProcessUpdateFeatEvent().
|
private |
Definition at line 137 of file cds_to_mat_peptide.hpp.
Referenced by ConvertEach(), ConvertInner(), Init(), and MergeConvert().
|
private |
Definition at line 133 of file cds_to_mat_peptide.hpp.
Referenced by ConvertEach(), ConvertInner(), Init(), and MergeConvert().
|
private |
Definition at line 132 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), and GetCommand().
|
private |
Definition at line 134 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), MergeConvert(), and OnRadioButton().
|
private |
Definition at line 128 of file cds_to_mat_peptide.hpp.
Referenced by GetErrorMessage(), and Init().
|
private |
Definition at line 140 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), MergeConvert(), and OnRadioButton().
|
private |
Definition at line 130 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), and GetCommand().
|
private |
Definition at line 131 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), GetCommand(), and OnRadioButton().
|
private |
Definition at line 129 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), and Init().
|
private |
Definition at line 135 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), and OnRadioButton().
|
private |
Definition at line 138 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), MergeConvert(), and OnRadioButton().
|
private |
Definition at line 136 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), MergeConvert(), and OnRadioButton().
|
private |
Definition at line 139 of file cds_to_mat_peptide.hpp.
Referenced by CreateControls(), MergeConvert(), and OnRadioButton().