NCBI C++ ToolKit
|
Search Toolkit Book for CBulkCDSAddPanel
#include <gui/packages/pkg_sequence_edit/bulkcdsaddpanel.hpp>
Public Member Functions | |
CBulkCDSAddPanel () | |
Constructors. More... | |
CBulkCDSAddPanel (wxWindow *parent, objects::CSeq_entry_Handle seh, bool add_location_panel=true, wxWindowID id=10030, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10030, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CBulkCDSAddPanel () | |
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 () |
virtual void | AddOneCommand (const objects::CBioseq_Handle &bsh, CRef< CCmdComposite > cmd, bool &ambiguous) |
![]() | |
CBulkCmdPanel () | |
Constructors. More... | |
CBulkCmdPanel (bool add_location_panel) | |
virtual | ~CBulkCmdPanel () |
Destructor. More... | |
void | SetLoc (CRef< objects::CSeq_loc > loc) |
virtual void | AddOneCommand (const objects::CBioseq_Handle &bsh, CRef< CCmdComposite > cmd) |
Static Public Member Functions | |
static bool | ShowToolTips () |
Should we show tooltips? More... | |
Public Attributes | |
wxTextCtrl * | m_ProteinName |
wxTextCtrl * | m_ProteinDescription |
wxTextCtrl * | m_GeneSymbol |
wxTextCtrl * | m_Comment |
Private Attributes | |
objects::CSeq_entry_Handle | m_TopSeqEntry |
wxChoice * | m_CodonStart |
wxCheckBox * | m_AddmRNA |
bool | m_create_general_only |
Additional Inherited Members | |
![]() | |
virtual bool | ShouldAddToExisting () |
virtual CRef< objects::CSeq_loc > | GetLocForBioseq (const objects::CBioseq &bioseq) |
![]() | |
bool | m_add_location_panel |
CRef< objects::CSeq_loc > | m_loc |
CBulkLocationPanel * | m_Location |
CBulkCDSAddPanel class declaration
Definition at line 84 of file bulkcdsaddpanel.hpp.
CBulkCDSAddPanel::CBulkCDSAddPanel | ( | ) |
Constructors.
CBulkCDSAddPanel type definition
CBulkCDSAddPanel event table definition
CBulkCDSAddPanel constructors
Definition at line 79 of file bulkcdsaddpanel.cpp.
References Init().
CBulkCDSAddPanel::CBulkCDSAddPanel | ( | wxWindow * | parent, |
objects::CSeq_entry_Handle | seh, | ||
bool | add_location_panel = true , |
||
wxWindowID | id = 10030 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 84 of file bulkcdsaddpanel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CBulkCDSAddPanel::~CBulkCDSAddPanel | ( | ) |
|
virtual |
Definition at line 282 of file bulkcdsaddpanel.cpp.
References AddProteinFeatureToProtein(), AlreadyHasFeature(), cleanup(), cmd, CreateTranslatedProteinSequence(), eExtreme_Biological, CCdregion_Base::eFrame_not_set, CCdregion_Base::eFrame_one, CCdregion_Base::eFrame_three, CCdregion_Base::eFrame_two, CRNA_ref_Base::eType_mRNA, CBioseq_Handle::GetCompleteBioseq(), GetGeneticCodeForBioseq(), CSeq_feat_Base::GetLocation(), CBulkCmdPanel::GetLocForBioseq(), CBioseq_Handle::GetScope(), CBioseq_Handle::GetSeq_entry_Handle(), NStr::IsBlank(), CSeq_loc::IsPartialStart(), CSeq_loc::IsPartialStop(), m_AddmRNA, m_CodonStart, m_Comment, m_create_general_only, m_GeneSymbol, m_ProteinDescription, m_ProteinName, prot, CSeq_feat_Base::SetData(), CSeq_feat_Base::SetLocation(), CSeq_feat_Base::SetPartial(), CBulkCmdPanel::ShouldAddToExisting(), and ToStdString().
Referenced by GetCommand().
bool CBulkCDSAddPanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10030 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CBulkCDSAddPanel creator
Definition at line 96 of file bulkcdsaddpanel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CBulkCDSAddPanel().
void CBulkCDSAddPanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CBulkCDSAddPanel
Definition at line 145 of file bulkcdsaddpanel.cpp.
References _, ID_BULKCDSADD_COMMENT, ID_BULKCDSADD_GENE, ID_BULKCDSADD_PROTEIN_DESC, ID_BULKCDSADD_PROTEIN_NAME, ID_WINDOW, CBulkCmdPanel::m_add_location_panel, m_AddmRNA, m_CodonStart, m_Comment, m_GeneSymbol, CBulkCmdPanel::m_Location, m_ProteinDescription, m_ProteinName, and wxID_ANY.
Referenced by Create().
wxBitmap CBulkCDSAddPanel::GetBitmapResource | ( | const wxString & | name | ) |
Retrieves bitmap resources.
Get bitmap resources
Definition at line 222 of file bulkcdsaddpanel.cpp.
|
virtual |
Implements CBulkCmdPanel.
Definition at line 245 of file bulkcdsaddpanel.cpp.
References AddOneCommand(), cmd, CSeq_id::eContent, eGetId_Best, ctll::empty(), GetId(), CSeq_id::GetLabel(), CSeq_id_Handle::GetSeqId(), NStr::IsBlank(), IsGeneralIdProtPresent(), NStr::Join(), m_create_general_only, m_ProteinName, m_TopSeqEntry, NULL, CGenericReportDlg::SetText(), ToStdString(), NStr::ULongToString(), and wxT.
|
virtual |
Implements CBulkCmdPanel.
Definition at line 376 of file bulkcdsaddpanel.cpp.
References NStr::IsBlank(), m_ProteinName, and ToStdString().
wxIcon CBulkCDSAddPanel::GetIconResource | ( | const wxString & | name | ) |
void CBulkCDSAddPanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 127 of file bulkcdsaddpanel.cpp.
References m_AddmRNA, m_CodonStart, m_Comment, m_GeneSymbol, CBulkCmdPanel::m_Location, m_ProteinDescription, m_ProteinName, and NULL.
Referenced by CBulkCDSAddPanel().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 213 of file bulkcdsaddpanel.cpp.
|
private |
Definition at line 135 of file bulkcdsaddpanel.hpp.
Referenced by AddOneCommand(), CreateControls(), and Init().
|
private |
Definition at line 134 of file bulkcdsaddpanel.hpp.
Referenced by AddOneCommand(), CreateControls(), and Init().
wxTextCtrl* CBulkCDSAddPanel::m_Comment |
Definition at line 126 of file bulkcdsaddpanel.hpp.
Referenced by AddOneCommand(), CreateControls(), and Init().
|
private |
Definition at line 136 of file bulkcdsaddpanel.hpp.
Referenced by AddOneCommand(), and GetCommand().
wxTextCtrl* CBulkCDSAddPanel::m_GeneSymbol |
Definition at line 125 of file bulkcdsaddpanel.hpp.
Referenced by AddOneCommand(), CreateControls(), and Init().
wxTextCtrl* CBulkCDSAddPanel::m_ProteinDescription |
Definition at line 124 of file bulkcdsaddpanel.hpp.
Referenced by AddOneCommand(), CreateControls(), and Init().
wxTextCtrl* CBulkCDSAddPanel::m_ProteinName |
Definition at line 123 of file bulkcdsaddpanel.hpp.
Referenced by AddOneCommand(), CreateControls(), GetCommand(), GetErrorMessage(), and Init().
|
private |
Definition at line 133 of file bulkcdsaddpanel.hpp.
Referenced by GetCommand().