NCBI C++ ToolKit
|
Search Toolkit Book for CExonFromCds
#include <gui/packages/pkg_sequence_edit/exon_from_cds.hpp>
Public Member Functions | |
CExonFromCds () | |
Constructors. More... | |
CExonFromCds (wxWindow *parent, IWorkbench *wb, CSeqFeatData::ESubtype subtype, const string &title, wxWindowID id=wxID_ANY, const wxString &caption=_("Exon From CDS"), 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=wxID_ANY, const wxString &caption=_("Exon From CDS"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 500), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL) |
Creation. More... | |
~CExonFromCds () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | ProcessUpdateFeatEvent (wxCommandEvent &event) |
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 () |
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 | AddIntron (CSeq_entry_Handle seh, CRef< CCmdComposite > cmd, int intron_start, int intron_stop, bool intron_fuzz_start, bool intron_fuzz_stop, CRef< CSeq_id > id, TSeqPos seq_length, int exon_number, bool minus_strand) |
Private Attributes | |
string | m_ErrorMessage |
CStringConstraintPanel * | m_StringConstraintPanel |
COkCancelPanel * | m_OkCancel |
wxCheckBox * | m_Introns |
wxTextCtrl * | m_Number |
int | m_ExonNum |
CFieldChoicePanel * | m_FieldType |
CSeqFeatData::ESubtype | m_Type |
string | m_Title |
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 | |
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 exon_from_cds.hpp.
CExonFromCds::CExonFromCds | ( | ) |
Constructors.
CExonFromCds type definition
CExonFromCds event table definition
CExonFromCds constructors
Definition at line 85 of file exon_from_cds.cpp.
References Init().
CExonFromCds::CExonFromCds | ( | wxWindow * | parent, |
IWorkbench * | wb, | ||
CSeqFeatData::ESubtype | subtype, | ||
const string & | title, | ||
wxWindowID | id = wxID_ANY , |
||
const wxString & | caption = _("Exon From CDS") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(900, 500) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Definition at line 90 of file exon_from_cds.cpp.
References Create(), Init(), m_Title, and ncbi::grid::netcache::search::fields::size.
CExonFromCds::~CExonFromCds | ( | ) |
|
private |
Definition at line 330 of file exon_from_cds.cpp.
References CSeq_feat::AddQualifier(), cmd, eExtreme_Positional, eNa_strand_minus, CSeq_feat_Base::GetLocation(), NStr::IntToString(), CSeq_loc::IsPartialStart(), CSeq_loc::IsPartialStop(), CSeq_feat_Base::SetData(), CSeq_loc::SetInt(), CSeq_feat_Base::SetLocation(), CSeq_feat_Base::SetPartial(), CSeq_loc::SetPartialStart(), CSeq_loc::SetPartialStop(), and CSeq_loc::SetStrand().
Referenced by GetCommand().
bool CExonFromCds::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxString & | caption = _("Exon From CDS") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(900, 500) , |
||
long | style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL |
||
) |
Creation.
CExonFromCds creator
Definition at line 102 of file exon_from_cds.cpp.
References CBulkCmdDlg::Create(), CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CExonFromCds().
void CExonFromCds::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CExonFromCds
Definition at line 148 of file exon_from_cds.cpp.
References _, CFieldNamePanel::eFieldType_CDSGeneProt, CBulkCmdDlg::GetTopLevelSeqEntryAndProcessor(), m_FieldType, m_Introns, m_Number, m_OkCancel, m_StringConstraintPanel, CFieldChoicePanel::SetFieldType(), wxFIXED_MINSIZE, and wxID_ANY.
Referenced by Create().
wxBitmap CExonFromCds::GetBitmapResource | ( | const wxString & | name | ) |
|
virtual |
Implements CBulkCmdDlg.
Definition at line 244 of file exon_from_cds.cpp.
References AddIntron(), CSeq_feat::AddQualifier(), cmd, CSeq_loc_CI::eEmpty_Skip, eExtreme_Positional, eNa_strand_minus, CSeq_loc_CI::eOrder_Biological, fi, CMiscSeqTableColumn::GetApplyObjects(), CBioseq_Handle::GetBioseqLength(), CFieldChoicePanel::GetFieldName(), CRange_Base::GetFrom(), CSeq_loc::GetId(), CSeq_feat_Base::GetLocation(), CStringConstraintPanel::GetStringConstraint(), CRange_Base::GetTo(), NStr::IntToString(), CSeq_loc::IsPartialStart(), CSeq_loc::IsPartialStop(), m_FieldType, m_Introns, m_Number, m_StringConstraintPanel, m_Title, CBulkCmdDlg::m_TopSeqEntry, m_Type, CSeq_feat_Base::SetData(), CSeq_loc::SetInt(), CSeq_feat_Base::SetLocation(), CSeq_feat_Base::SetPartial(), CSeq_loc::SetPartialStart(), CSeq_loc::SetPartialStop(), and CSeq_loc::SetStrand().
|
virtual |
Implements CBulkCmdDlg.
Definition at line 238 of file exon_from_cds.cpp.
References m_ErrorMessage.
wxIcon CExonFromCds::GetIconResource | ( | const wxString & | name | ) |
void CExonFromCds::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 134 of file exon_from_cds.cpp.
References m_ErrorMessage, m_OkCancel, m_StringConstraintPanel, and NULL.
Referenced by CExonFromCds().
void CExonFromCds::ProcessUpdateFeatEvent | ( | wxCommandEvent & | event | ) |
|
static |
|
private |
Definition at line 124 of file exon_from_cds.hpp.
Referenced by GetErrorMessage(), and Init().
|
private |
Definition at line 129 of file exon_from_cds.hpp.
|
private |
Definition at line 130 of file exon_from_cds.hpp.
Referenced by CreateControls(), and GetCommand().
|
private |
Definition at line 127 of file exon_from_cds.hpp.
Referenced by CreateControls(), and GetCommand().
|
private |
Definition at line 128 of file exon_from_cds.hpp.
Referenced by CreateControls(), and GetCommand().
|
private |
Definition at line 126 of file exon_from_cds.hpp.
Referenced by CreateControls(), and Init().
|
private |
Definition at line 125 of file exon_from_cds.hpp.
Referenced by CreateControls(), GetCommand(), and Init().
|
private |
Definition at line 132 of file exon_from_cds.hpp.
Referenced by CExonFromCds(), and GetCommand().
|
private |
Definition at line 131 of file exon_from_cds.hpp.
Referenced by GetCommand().