NCBI C++ ToolKit
|
Search Toolkit Book for CRNANamePanel
#include <gui/packages/pkg_sequence_edit/rnanamepanel.hpp>
Public Member Functions | |
CRNANamePanel () | |
Constructors. More... | |
CRNANamePanel (wxWindow *parent, objects::CSeq_entry_Handle seh, CSourceRequirements::EWizardType wizard_type=CSourceRequirements::eWizardType_standard, CSourceRequirements::EWizardSrcType src_type=CSourceRequirements::eWizardSrcType_any, bool multi=false, wxWindowID id=10034, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) | |
bool | Create (wxWindow *parent, wxWindowID id=10034, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL) |
Creation. More... | |
~CRNANamePanel () | |
Destructor. More... | |
void | Init () |
Initialises member variables. More... | |
void | CreateControls () |
Creates the controls and sizers. More... | |
void | OnRNATypeSelected (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 CBulkCmdPanel | |
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 | |
wxStaticBoxSizer * | m_RNANameSizer |
wxTextCtrl * | m_OtherLabel |
Private Member Functions | |
string | x_GetMultiElementName () |
string | x_GetSingleElementName () |
Private Attributes | |
objects::CSeq_entry_Handle | m_TopSeqEntry |
CSourceRequirements::EWizardType | m_WizardType |
CSourceRequirements::EWizardSrcType | m_SrcType |
bool | m_IsMulti |
Additional Inherited Members | |
Protected Member Functions inherited from CBulkCmdPanel | |
virtual bool | ShouldAddToExisting () |
virtual CRef< objects::CSeq_loc > | GetLocForBioseq (const objects::CBioseq &bioseq) |
Protected Attributes inherited from CBulkCmdPanel | |
bool | m_add_location_panel |
CRef< objects::CSeq_loc > | m_loc |
CBulkLocationPanel * | m_Location |
CRNANamePanel class declaration
Definition at line 75 of file rnanamepanel.hpp.
CRNANamePanel::CRNANamePanel | ( | ) |
Constructors.
CRNANamePanel type definition
CRNANamePanel event table definition
CRNANamePanel constructors
Definition at line 75 of file rnanamepanel.cpp.
References Init().
CRNANamePanel::CRNANamePanel | ( | wxWindow * | parent, |
objects::CSeq_entry_Handle | seh, | ||
CSourceRequirements::EWizardType | wizard_type = CSourceRequirements::eWizardType_standard , |
||
CSourceRequirements::EWizardSrcType | src_type = CSourceRequirements::eWizardSrcType_any , |
||
bool | multi = false , |
||
wxWindowID | id = 10034 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 80 of file rnanamepanel.cpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
CRNANamePanel::~CRNANamePanel | ( | ) |
bool CRNANamePanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = 10034 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxSize(400, 300) , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Creation.
CRNANamePanel creator
Definition at line 99 of file rnanamepanel.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CRNANamePanel().
void CRNANamePanel::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CRNANamePanel
Definition at line 173 of file rnanamepanel.cpp.
References _, CSourceRequirements::eWizardSrcType_bacteria_or_archaea, CSourceRequirements::eWizardSrcType_cultured_fungus, CSourceRequirements::eWizardSrcType_uncultured_fungus, CSourceRequirements::eWizardSrcType_vouchered_fungus, i, m_IsMulti, m_OtherLabel, m_RNANameSizer, m_SrcType, s_NumRNABacteriaArchaea, s_NumRNAFungal, s_RNABacteriaArchaea, s_RNAFungal, ToWxString(), and wxID_ANY.
Referenced by Create().
wxBitmap CRNANamePanel::GetBitmapResource | ( | const wxString & | name | ) |
|
virtual |
Implements CBulkCmdPanel.
Definition at line 416 of file rnanamepanel.cpp.
References AlreadyHasFeature(), cmd, eExtreme_Biological, ctll::empty(), NStr::IsBlank(), m_IsMulti, m_TopSeqEntry, s_IsRNASpacer(), s_IsrRNA(), x_GetMultiElementName(), and x_GetSingleElementName().
|
virtual |
Implements CBulkCmdPanel.
Definition at line 465 of file rnanamepanel.cpp.
wxIcon CRNANamePanel::GetIconResource | ( | const wxString & | name | ) |
void CRNANamePanel::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 130 of file rnanamepanel.cpp.
References m_RNANameSizer, and NULL.
Referenced by CRNANamePanel().
void CRNANamePanel::OnRNATypeSelected | ( | wxCommandEvent & | event | ) |
Definition at line 471 of file rnanamepanel.cpp.
References NStr::Equal(), m_OtherLabel, m_RNANameSizer, and ToStdString().
|
static |
|
private |
Definition at line 358 of file rnanamepanel.cpp.
References NStr::Equal(), i, label, m_OtherLabel, m_RNANameSizer, and ToStdString().
Referenced by GetCommand().
|
private |
Definition at line 393 of file rnanamepanel.cpp.
References NStr::Equal(), label, m_OtherLabel, m_RNANameSizer, and ToStdString().
Referenced by GetCommand().
|
private |
Definition at line 131 of file rnanamepanel.hpp.
Referenced by CreateControls(), and GetCommand().
wxTextCtrl* CRNANamePanel::m_OtherLabel |
Definition at line 122 of file rnanamepanel.hpp.
Referenced by CreateControls(), OnRNATypeSelected(), x_GetMultiElementName(), and x_GetSingleElementName().
wxStaticBoxSizer* CRNANamePanel::m_RNANameSizer |
Definition at line 119 of file rnanamepanel.hpp.
Referenced by CreateControls(), Init(), OnRNATypeSelected(), x_GetMultiElementName(), and x_GetSingleElementName().
|
private |
Definition at line 130 of file rnanamepanel.hpp.
Referenced by CreateControls().
|
private |
Definition at line 128 of file rnanamepanel.hpp.
Referenced by GetCommand().
|
private |
Definition at line 129 of file rnanamepanel.hpp.