NCBI C++ ToolKit
|
Search Toolkit Book for CRBSubpanel
#include <gui/packages/pkg_sequence_edit/segregate_sets.hpp>
Classes | |
class | ItemData |
Public Member Functions | |
CRBSubpanel () | |
CRBSubpanel (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size, long style) | |
bool | Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) |
virtual | ~CRBSubpanel () |
bool | ShowToolTips () |
wxBitmap | GetBitmapResource (const wxString &name) |
wxIcon | GetIconResource (const wxString &name) |
void | CreateControlsHeader () |
void | CreateControlsFooter () |
virtual void | CreateControlsMiddle () |
virtual void | Init () |
void | CreateControls () |
void | UpdateList () |
void | OnButtonMoveLeft (wxCommandEvent &event) |
void | OnButtonMoveRight (wxCommandEvent &event) |
virtual void | OnSelectButton (CSegregateSetsBase *win) |
void | OnSelect (wxCommandEvent &event) |
void | OnSelectAll (wxCommandEvent &event) |
void | OnUnselectAll (wxCommandEvent &event) |
vector< vector< int > > & | GetSubsets () |
virtual void | SetClusters () |
CSegregateSetsBase * | GetBaseFrame () |
string | GetLabel (objects::CSeq_entry_Handle seh) |
bool | MatchConstraint (CRef< objects::edit::CStringConstraint > constraint, objects::CSeq_entry_Handle seh) |
CRBSubpanel * | GetEventCaller (wxCommandEvent &event) |
void | SetSubsets (const set< objects::CBioseq_Handle > &selected) |
Protected Attributes | |
wxTreeCtrl * | m_TreeCtrl |
wxListCtrl * | m_ListCtrl2 |
vector< vector< int > > | m_Subsets |
vector< int > | m_Available |
map< string, vector< pair< int, string > > > | m_Clusters |
Private Types | |
enum | { ID_RBSUB_TOLEFT = 8000 , ID_RBSUB_TORIGHT } |
Private Member Functions | |
void | CombineLabels (const objects::CSeq_id &id, vector< string > &labels) |
void | CollectLabels (objects::CSeq_entry_Handle seh, list< string > &strs) |
void | CombineLabelsAll (const CSeq_id &id, set< string > &labels) |
void | CollectLabelsAll (CSeq_entry_Handle seh, set< string > &strs) |
Definition at line 160 of file segregate_sets.hpp.
|
private |
Enumerator | |
---|---|
ID_RBSUB_TOLEFT | |
ID_RBSUB_TORIGHT |
Definition at line 207 of file segregate_sets.hpp.
|
inline |
Definition at line 166 of file segregate_sets.hpp.
References Init().
|
inline |
Definition at line 167 of file segregate_sets.hpp.
References Create(), Init(), and ncbi::grid::netcache::search::fields::size.
|
inlinevirtual |
Definition at line 169 of file segregate_sets.hpp.
|
private |
Definition at line 581 of file segregate_sets.cpp.
References CombineLabels(), CBioseq_set_Base::eClass_nuc_prot, ctll::empty(), CBioseq_set_Handle::GetClass(), CBioseq_set_Handle::GetCompleteBioseq_set(), CBioseq_Base::GetId(), CBioseq_Handle::GetId(), CBioseq_set::GetNucFromNucProtSet(), CSeq_entry_Handle::GetSeq(), CSeq_entry_Handle::GetSet(), i, CSeq_entry_Handle::IsSeq(), CSeq_entry_Handle::IsSet(), CBioseq_set_Handle::IsSetClass(), CBioseq_Base::IsSetId(), and CBioseq_Handle::IsSetId().
Referenced by GetLabel().
|
private |
Definition at line 628 of file segregate_sets.cpp.
References CombineLabelsAll(), CBioseq_set_Base::eClass_nuc_prot, CBioseq_set_Handle::GetClass(), CBioseq_set_Handle::GetCompleteBioseq_set(), CBioseq_Base::GetId(), CBioseq_Handle::GetId(), CBioseq_set::GetNucFromNucProtSet(), CSeq_entry_Handle::GetSeq(), CSeq_entry_Handle::GetSet(), CSeq_entry_Handle::IsSeq(), CSeq_entry_Handle::IsSet(), CBioseq_set_Handle::IsSetClass(), CBioseq_Base::IsSetId(), and CBioseq_Handle::IsSetId().
Referenced by MatchConstraint().
Definition at line 569 of file segregate_sets.cpp.
Referenced by CollectLabels().
Definition at line 603 of file segregate_sets.cpp.
References CSeq_id::eContent, first(), GetAccession(), set< Key, Compare >::insert(), label, and NStr::SplitInTwo().
Referenced by CollectLabelsAll().
bool CRBSubpanel::Create | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
Definition at line 914 of file segregate_sets.cpp.
References CreateControls(), and ncbi::grid::netcache::search::fields::size.
Referenced by CDescTypeSubpanel::CDescTypeSubpanel(), CFeatureTypeSubpanel::CFeatureTypeSubpanel(), CFieldSubpanel::CFieldSubpanel(), CFileSubpanel::CFileSubpanel(), CIDSubpanel::CIDSubpanel(), CLengthSubpanel::CLengthSubpanel(), CMolInfoSubpanel::CMolInfoSubpanel(), CNumSubpanel::CNumSubpanel(), CRBSubpanel(), CStructCommentSubpanel::CStructCommentSubpanel(), and CTextSubpanel::CTextSubpanel().
void CRBSubpanel::CreateControls | ( | ) |
Definition at line 905 of file segregate_sets.cpp.
References CreateControlsFooter(), CreateControlsHeader(), CreateControlsMiddle(), SetClusters(), and UpdateList().
Referenced by Create().
void CRBSubpanel::CreateControlsFooter | ( | ) |
Definition at line 534 of file segregate_sets.cpp.
References _, OnSelect(), OnSelectAll(), OnUnselectAll(), and wxID_ANY.
Referenced by CreateControls().
void CRBSubpanel::CreateControlsHeader | ( | ) |
Definition at line 504 of file segregate_sets.cpp.
References _, OnButtonMoveLeft(), OnButtonMoveRight(), and wxID_ANY.
Referenced by CreateControls().
|
inlinevirtual |
Reimplemented in CStructCommentSubpanel, CMolInfoSubpanel, CDescTypeSubpanel, CFeatureTypeSubpanel, CFieldSubpanel, CFileSubpanel, CNumSubpanel, CTextSubpanel, CIDSubpanel, and CLengthSubpanel.
Definition at line 175 of file segregate_sets.hpp.
Referenced by CreateControls().
CSegregateSetsBase * CRBSubpanel::GetBaseFrame | ( | ) |
Definition at line 556 of file segregate_sets.cpp.
References NULL.
Referenced by CStructCommentSubpanel::GetAllLabels(), OnSelect(), CLengthSubpanel::SetClusters(), CIDSubpanel::SetClusters(), CTextSubpanel::SetClusters(), CFileSubpanel::SetClusters(), CFieldSubpanel::SetClusters(), CFeatureTypeSubpanel::SetClusters(), CDescTypeSubpanel::SetClusters(), CMolInfoSubpanel::SetClusters(), CStructCommentSubpanel::SetClusters(), SetSubsets(), CTextSubpanel::UpdateChildrenFeaturePanels(), CFieldSubpanel::UpdateChildrenFeaturePanels(), and UpdateList().
|
inline |
Definition at line 171 of file segregate_sets.hpp.
CRBSubpanel * CRBSubpanel::GetEventCaller | ( | wxCommandEvent & | event | ) |
Definition at line 740 of file segregate_sets.cpp.
References NULL.
Referenced by OnButtonMoveLeft(), OnButtonMoveRight(), OnSelect(), OnSelectAll(), and OnUnselectAll().
|
inline |
Definition at line 172 of file segregate_sets.hpp.
string CRBSubpanel::GetLabel | ( | objects::CSeq_entry_Handle | seh | ) |
Definition at line 645 of file segregate_sets.cpp.
References CollectLabels(), NStr::Join(), and label.
Referenced by CLengthSubpanel::SetClusters(), CIDSubpanel::SetClusters(), CTextSubpanel::SetClusters(), CFileSubpanel::SetClusters(), CFieldSubpanel::SetClusters(), CFeatureTypeSubpanel::SetClusters(), CDescTypeSubpanel::SetClusters(), CMolInfoSubpanel::SetClusters(), CStructCommentSubpanel::SetClusters(), and UpdateList().
|
inline |
Definition at line 185 of file segregate_sets.hpp.
References m_Subsets.
Referenced by CSegregateSets::GetSubsets(), CSequesterSets::GetSubsets(), and CSegregateSets::OnAccept().
|
virtual |
Definition at line 899 of file segregate_sets.cpp.
References m_ListCtrl2, m_TreeCtrl, and NULL.
Referenced by CDescTypeSubpanel::CDescTypeSubpanel(), CFeatureTypeSubpanel::CFeatureTypeSubpanel(), CFieldSubpanel::CFieldSubpanel(), CFileSubpanel::CFileSubpanel(), CIDSubpanel::CIDSubpanel(), CLengthSubpanel::CLengthSubpanel(), CMolInfoSubpanel::CMolInfoSubpanel(), CNumSubpanel::CNumSubpanel(), CRBSubpanel(), CStructCommentSubpanel::CStructCommentSubpanel(), and CTextSubpanel::CTextSubpanel().
bool CRBSubpanel::MatchConstraint | ( | CRef< objects::edit::CStringConstraint > | constraint, |
objects::CSeq_entry_Handle | seh | ||
) |
Definition at line 653 of file segregate_sets.cpp.
References set< Key, Compare >::begin(), CollectLabelsAll(), and set< Key, Compare >::end().
Referenced by CIDSubpanel::OnSelectButton().
void CRBSubpanel::OnButtonMoveLeft | ( | wxCommandEvent & | event | ) |
Definition at line 797 of file segregate_sets.cpp.
References GetEventCaller(), i, m_ListCtrl2, m_Subsets, and UpdateList().
Referenced by CreateControlsHeader().
void CRBSubpanel::OnButtonMoveRight | ( | wxCommandEvent & | event | ) |
Definition at line 751 of file segregate_sets.cpp.
References data, GetEventCaller(), i, m_Subsets, m_TreeCtrl, and UpdateList().
Referenced by CreateControlsHeader().
void CRBSubpanel::OnSelect | ( | wxCommandEvent & | event | ) |
Definition at line 885 of file segregate_sets.cpp.
References GetBaseFrame(), GetEventCaller(), OnSelectButton(), and UpdateList().
Referenced by CreateControlsFooter().
void CRBSubpanel::OnSelectAll | ( | wxCommandEvent & | event | ) |
Definition at line 825 of file segregate_sets.cpp.
References data, GetEventCaller(), m_Subsets, m_TreeCtrl, and UpdateList().
Referenced by CreateControlsFooter().
|
inlinevirtual |
Reimplemented in CStructCommentSubpanel, CMolInfoSubpanel, CDescTypeSubpanel, CFeatureTypeSubpanel, CFieldSubpanel, CFileSubpanel, CNumSubpanel, CTextSubpanel, CIDSubpanel, and CLengthSubpanel.
Definition at line 181 of file segregate_sets.hpp.
Referenced by OnSelect().
void CRBSubpanel::OnUnselectAll | ( | wxCommandEvent & | event | ) |
Definition at line 873 of file segregate_sets.cpp.
References GetEventCaller(), m_Subsets, and UpdateList().
Referenced by CreateControlsFooter().
|
inlinevirtual |
Reimplemented in CStructCommentSubpanel, CMolInfoSubpanel, CDescTypeSubpanel, CFeatureTypeSubpanel, CFieldSubpanel, CFileSubpanel, CTextSubpanel, CIDSubpanel, and CLengthSubpanel.
Definition at line 186 of file segregate_sets.hpp.
Referenced by CreateControls(), and CSegregateSets::OnAccept().
Definition at line 927 of file segregate_sets.cpp.
References CBioseq_set_Handle::CanGetClass(), CBioseq_set_Base::eClass_nuc_prot, set< Key, Compare >::end(), set< Key, Compare >::find(), GetBaseFrame(), CBioseq_set_Handle::GetBioseq_setCore(), CScope::GetBioseqHandle(), CBioseq_set_Handle::GetClass(), CBioseq_set::GetNucFromNucProtSet(), CSeq_entry_Handle::GetScope(), CSeq_entry_Handle::GetSeq(), CSegregateSetsBase::GetSeqEntry(), CSeq_entry_Handle::GetSet(), i, CSeq_entry_Handle::IsSeq(), CSeq_entry_Handle::IsSet(), m_Available, m_Subsets, and UpdateList().
Referenced by CSegregateSets::SetSubsets(), and CSequesterSets::SetSubsets().
|
inline |
Definition at line 170 of file segregate_sets.hpp.
void CRBSubpanel::UpdateList | ( | ) |
Definition at line 661 of file segregate_sets.cpp.
References map_checker< Container >::begin(), data, map_checker< Container >::end(), set< Key, Compare >::end(), map_checker< Container >::find(), set< Key, Compare >::find(), GetBaseFrame(), GetLabel(), CSegregateSetsBase::GetSeqEntry(), CSegregateSetsBase::GetSetSize(), i, set< Key, Compare >::insert(), label, m_Available, m_Clusters, m_ListCtrl2, m_Subsets, m_TreeCtrl, and ToWxString().
Referenced by CreateControls(), CSegregateSets::OnAccept(), OnButtonMoveLeft(), OnButtonMoveRight(), CTextSubpanel::OnChoiceChanged(), CFieldSubpanel::OnChoiceChanged(), CFeatureTypeSubpanel::OnChoiceChanged(), CDescTypeSubpanel::OnChoiceChanged(), CMolInfoSubpanel::OnChoiceChanged(), CStructCommentSubpanel::OnChoiceChanged(), CTextSubpanel::OnPageChanged(), OnSelect(), OnSelectAll(), OnUnselectAll(), and SetSubsets().
|
protected |
Definition at line 196 of file segregate_sets.hpp.
Referenced by CLengthSubpanel::OnSelectButton(), CIDSubpanel::OnSelectButton(), CTextSubpanel::OnSelectButton(), CNumSubpanel::OnSelectButton(), CFileSubpanel::OnSelectButton(), CFieldSubpanel::OnSelectButton(), CFeatureTypeSubpanel::OnSelectButton(), CDescTypeSubpanel::OnSelectButton(), CMolInfoSubpanel::OnSelectButton(), CStructCommentSubpanel::OnSelectButton(), SetSubsets(), and UpdateList().
Definition at line 197 of file segregate_sets.hpp.
Referenced by CLengthSubpanel::SetClusters(), CIDSubpanel::SetClusters(), CTextSubpanel::SetClusters(), CFileSubpanel::SetClusters(), CFieldSubpanel::SetClusters(), CFeatureTypeSubpanel::SetClusters(), CDescTypeSubpanel::SetClusters(), CMolInfoSubpanel::SetClusters(), CStructCommentSubpanel::SetClusters(), and UpdateList().
|
protected |
Definition at line 194 of file segregate_sets.hpp.
Referenced by Init(), OnButtonMoveLeft(), and UpdateList().
|
protected |
Definition at line 195 of file segregate_sets.hpp.
Referenced by GetSubsets(), OnButtonMoveLeft(), OnButtonMoveRight(), OnSelectAll(), CLengthSubpanel::OnSelectButton(), CIDSubpanel::OnSelectButton(), CTextSubpanel::OnSelectButton(), CNumSubpanel::OnSelectButton(), CFileSubpanel::OnSelectButton(), CFieldSubpanel::OnSelectButton(), CFeatureTypeSubpanel::OnSelectButton(), CDescTypeSubpanel::OnSelectButton(), CMolInfoSubpanel::OnSelectButton(), CStructCommentSubpanel::OnSelectButton(), OnUnselectAll(), SetSubsets(), and UpdateList().
|
protected |
Definition at line 193 of file segregate_sets.hpp.
Referenced by Init(), OnButtonMoveRight(), OnSelectAll(), and UpdateList().