NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CCdsToMatPeptide Class Reference

Search Toolkit Book for CCdsToMatPeptide

#include <gui/packages/pkg_sequence_edit/cds_to_mat_peptide.hpp>

+ Inheritance diagram for CCdsToMatPeptide:
+ Collaboration diagram for CCdsToMatPeptide:

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< CCmdCompositeGetCommand ()
 
virtual string GetErrorMessage ()
 
void OnRadioButton (wxCommandEvent &event)
 
void ProcessUpdateFeatEvent (wxCommandEvent &event)
 
- Public Member Functions inherited from CBulkCmdDlg
 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
 
COkCancelPanelm_OkCancel
 
wxRadioButton * m_Inner
 
wxRadioButton * m_Merge
 
wxRadioButton * m_Each
 
CRef< CConvertFeatureBasem_converter
 
wxCheckBox * m_EntireRange
 
wxRadioButton * m_ProductFirst
 
wxRadioButton * m_ProductThis
 
CRef< CMiscSeqTableColumnm_col
 
wxTextCtrl * m_ProductName
 
CStringConstraintPanelm_StringConstraintPanel
 
CFeatureFieldNamePanelm_FeatureConstraint
 

Additional Inherited Members

- Protected Member Functions inherited from CBulkCmdDlg
edit::EExistingText x_GetExistingTextHandling (int num_conflicts, bool allow_multiple=false)
 
- Protected Attributes inherited from CBulkCmdDlg
IWorkbenchm_Workbench
 
ICommandProccessorm_CmdProccessor
 
objects::CSeq_entry_Handle m_TopSeqEntry
 
CConstRef< objects::CSeq_submit > m_SeqSubmit
 
string m_ErrorMessage
 

Detailed Description

Definition at line 84 of file cds_to_mat_peptide.hpp.

Constructor & Destructor Documentation

◆ CCdsToMatPeptide() [1/2]

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() [2/2]

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 
)

◆ ~CCdsToMatPeptide()

CCdsToMatPeptide::~CCdsToMatPeptide ( )

Destructor.

CCdsToMatPeptide destructor

Definition at line 131 of file cds_to_mat_peptide.cpp.

Member Function Documentation

◆ ConvertEach()

void CCdsToMatPeptide::ConvertEach ( CRef< CCmdComposite cmd)
private

◆ ConvertInner()

void CCdsToMatPeptide::ConvertInner ( CRef< CCmdComposite cmd)
private

◆ Create()

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 
)

◆ CreateControls()

void CCdsToMatPeptide::CreateControls ( )

◆ FindAnnot()

void CCdsToMatPeptide::FindAnnot ( CRef< CSeq_entry entry,
const CSeq_feat feat,
CRef< CSeq_annot > &  annot 
)
private

◆ GetBitmapResource()

wxBitmap CCdsToMatPeptide::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 229 of file cds_to_mat_peptide.cpp.

◆ GetCommand()

CRef< CCmdComposite > CCdsToMatPeptide::GetCommand ( void  )
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().

◆ GetErrorMessage()

string CCdsToMatPeptide::GetErrorMessage ( )
virtual

Implements CBulkCmdDlg.

Definition at line 253 of file cds_to_mat_peptide.cpp.

References m_ErrorMessage.

◆ GetIconResource()

wxIcon CCdsToMatPeptide::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 242 of file cds_to_mat_peptide.cpp.

◆ Init()

void CCdsToMatPeptide::Init ( void  )

◆ MergeConvert()

void CCdsToMatPeptide::MergeConvert ( CRef< CCmdComposite cmd)
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().

◆ OnRadioButton()

void CCdsToMatPeptide::OnRadioButton ( wxCommandEvent &  event)

◆ ProcessUpdateFeatEvent()

void CCdsToMatPeptide::ProcessUpdateFeatEvent ( wxCommandEvent &  event)

Definition at line 630 of file cds_to_mat_peptide.cpp.

References UpdateChildrenFeaturePanels().

◆ RemoveFeature()

void CCdsToMatPeptide::RemoveFeature ( CRef< CSeq_entry entry,
const CSeq_feat feat 
)
private

◆ RemoveProteins()

void CCdsToMatPeptide::RemoveProteins ( CRef< CSeq_entry entry,
const CSeq_feat feat,
CSeq_entry_Handle  seh 
)
private

◆ ShowToolTips()

bool CCdsToMatPeptide::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 220 of file cds_to_mat_peptide.cpp.

◆ UpdateChildrenFeaturePanels()

void CCdsToMatPeptide::UpdateChildrenFeaturePanels ( wxSizer *  sizer)
private

Member Data Documentation

◆ m_col

CRef<CMiscSeqTableColumn> CCdsToMatPeptide::m_col
private

Definition at line 137 of file cds_to_mat_peptide.hpp.

Referenced by ConvertEach(), ConvertInner(), Init(), and MergeConvert().

◆ m_converter

CRef<CConvertFeatureBase> CCdsToMatPeptide::m_converter
private

Definition at line 133 of file cds_to_mat_peptide.hpp.

Referenced by ConvertEach(), ConvertInner(), Init(), and MergeConvert().

◆ m_Each

wxRadioButton* CCdsToMatPeptide::m_Each
private

Definition at line 132 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), and GetCommand().

◆ m_EntireRange

wxCheckBox* CCdsToMatPeptide::m_EntireRange
private

Definition at line 134 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), MergeConvert(), and OnRadioButton().

◆ m_ErrorMessage

string CCdsToMatPeptide::m_ErrorMessage
private

Definition at line 128 of file cds_to_mat_peptide.hpp.

Referenced by GetErrorMessage(), and Init().

◆ m_FeatureConstraint

CFeatureFieldNamePanel* CCdsToMatPeptide::m_FeatureConstraint
private

Definition at line 140 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), MergeConvert(), and OnRadioButton().

◆ m_Inner

wxRadioButton* CCdsToMatPeptide::m_Inner
private

Definition at line 130 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), and GetCommand().

◆ m_Merge

wxRadioButton* CCdsToMatPeptide::m_Merge
private

Definition at line 131 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), GetCommand(), and OnRadioButton().

◆ m_OkCancel

COkCancelPanel* CCdsToMatPeptide::m_OkCancel
private

Definition at line 129 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), and Init().

◆ m_ProductFirst

wxRadioButton* CCdsToMatPeptide::m_ProductFirst
private

Definition at line 135 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), and OnRadioButton().

◆ m_ProductName

wxTextCtrl* CCdsToMatPeptide::m_ProductName
private

Definition at line 138 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), MergeConvert(), and OnRadioButton().

◆ m_ProductThis

wxRadioButton* CCdsToMatPeptide::m_ProductThis
private

Definition at line 136 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), MergeConvert(), and OnRadioButton().

◆ m_StringConstraintPanel

CStringConstraintPanel* CCdsToMatPeptide::m_StringConstraintPanel
private

Definition at line 139 of file cds_to_mat_peptide.hpp.

Referenced by CreateControls(), MergeConvert(), and OnRadioButton().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:48 2024 by modify_doxy.py rev. 669887