NCBI C++ ToolKit
Classes | Public Member Functions | Protected Attributes | Private Types | Private Member Functions | List of all members
CRBSubpanel Class Reference

Search Toolkit Book for CRBSubpanel

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

+ Inheritance diagram for CRBSubpanel:
+ Collaboration diagram for CRBSubpanel:

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 ()
 
CSegregateSetsBaseGetBaseFrame ()
 
string GetLabel (objects::CSeq_entry_Handle seh)
 
bool MatchConstraint (CRef< objects::edit::CStringConstraint > constraint, objects::CSeq_entry_Handle seh)
 
CRBSubpanelGetEventCaller (wxCommandEvent &event)
 
void SetSubsets (const set< objects::CBioseq_Handle > &selected)
 

Protected Attributes

wxTreeCtrl * m_TreeCtrl
 
wxListCtrl * m_ListCtrl2
 
vector< vector< int > > m_Subsets
 
vector< intm_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)
 

Detailed Description

Definition at line 160 of file segregate_sets.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
ID_RBSUB_TOLEFT 
ID_RBSUB_TORIGHT 

Definition at line 207 of file segregate_sets.hpp.

Constructor & Destructor Documentation

◆ CRBSubpanel() [1/2]

CRBSubpanel::CRBSubpanel ( )
inline

Definition at line 166 of file segregate_sets.hpp.

References Init().

◆ CRBSubpanel() [2/2]

CRBSubpanel::CRBSubpanel ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos,
const wxSize &  size,
long  style 
)
inline

Definition at line 167 of file segregate_sets.hpp.

References Create(), Init(), and ncbi::grid::netcache::search::fields::size.

◆ ~CRBSubpanel()

virtual CRBSubpanel::~CRBSubpanel ( )
inlinevirtual

Definition at line 169 of file segregate_sets.hpp.

Member Function Documentation

◆ CollectLabels()

void CRBSubpanel::CollectLabels ( objects::CSeq_entry_Handle  seh,
list< string > &  strs 
)
private

◆ CollectLabelsAll()

void CRBSubpanel::CollectLabelsAll ( CSeq_entry_Handle  seh,
set< string > &  strs 
)
private

◆ CombineLabels()

void CRBSubpanel::CombineLabels ( const objects::CSeq_id &  id,
vector< string > &  labels 
)
private

Definition at line 569 of file segregate_sets.cpp.

Referenced by CollectLabels().

◆ CombineLabelsAll()

void CRBSubpanel::CombineLabelsAll ( const CSeq_id id,
set< string > &  labels 
)
private

◆ Create()

bool CRBSubpanel::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CRBSubpanel::CreateControls ( )

◆ CreateControlsFooter()

void CRBSubpanel::CreateControlsFooter ( )

Definition at line 534 of file segregate_sets.cpp.

References _, OnSelect(), OnSelectAll(), OnUnselectAll(), and wxID_ANY.

Referenced by CreateControls().

◆ CreateControlsHeader()

void CRBSubpanel::CreateControlsHeader ( )

Definition at line 504 of file segregate_sets.cpp.

References _, OnButtonMoveLeft(), OnButtonMoveRight(), and wxID_ANY.

Referenced by CreateControls().

◆ CreateControlsMiddle()

virtual void CRBSubpanel::CreateControlsMiddle ( )
inlinevirtual

◆ GetBaseFrame()

CSegregateSetsBase * CRBSubpanel::GetBaseFrame ( )

◆ GetBitmapResource()

wxBitmap CRBSubpanel::GetBitmapResource ( const wxString &  name)
inline

Definition at line 171 of file segregate_sets.hpp.

◆ GetEventCaller()

CRBSubpanel * CRBSubpanel::GetEventCaller ( wxCommandEvent &  event)

Definition at line 740 of file segregate_sets.cpp.

References NULL.

Referenced by OnButtonMoveLeft(), OnButtonMoveRight(), OnSelect(), OnSelectAll(), and OnUnselectAll().

◆ GetIconResource()

wxIcon CRBSubpanel::GetIconResource ( const wxString &  name)
inline

Definition at line 172 of file segregate_sets.hpp.

◆ GetLabel()

string CRBSubpanel::GetLabel ( objects::CSeq_entry_Handle  seh)

◆ GetSubsets()

vector< vector<int> >& CRBSubpanel::GetSubsets ( )
inline

◆ Init()

void CRBSubpanel::Init ( void  )
virtual

◆ MatchConstraint()

bool CRBSubpanel::MatchConstraint ( CRef< objects::edit::CStringConstraint >  constraint,
objects::CSeq_entry_Handle  seh 
)

◆ OnButtonMoveLeft()

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().

◆ OnButtonMoveRight()

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().

◆ OnSelect()

void CRBSubpanel::OnSelect ( wxCommandEvent &  event)

Definition at line 885 of file segregate_sets.cpp.

References GetBaseFrame(), GetEventCaller(), OnSelectButton(), and UpdateList().

Referenced by CreateControlsFooter().

◆ OnSelectAll()

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().

◆ OnSelectButton()

virtual void CRBSubpanel::OnSelectButton ( CSegregateSetsBase win)
inlinevirtual

◆ OnUnselectAll()

void CRBSubpanel::OnUnselectAll ( wxCommandEvent &  event)

Definition at line 873 of file segregate_sets.cpp.

References GetEventCaller(), m_Subsets, and UpdateList().

Referenced by CreateControlsFooter().

◆ SetClusters()

virtual void CRBSubpanel::SetClusters ( void  )
inlinevirtual

◆ SetSubsets()

void CRBSubpanel::SetSubsets ( const set< objects::CBioseq_Handle > &  selected)

◆ ShowToolTips()

bool CRBSubpanel::ShowToolTips ( )
inline

Definition at line 170 of file segregate_sets.hpp.

◆ UpdateList()

void CRBSubpanel::UpdateList ( )

Member Data Documentation

◆ m_Available

vector<int> CRBSubpanel::m_Available
protected

◆ m_Clusters

map<string, vector<pair<int,string> > > CRBSubpanel::m_Clusters
protected

◆ m_ListCtrl2

wxListCtrl* CRBSubpanel::m_ListCtrl2
protected

Definition at line 194 of file segregate_sets.hpp.

Referenced by Init(), OnButtonMoveLeft(), and UpdateList().

◆ m_Subsets

vector< vector<int> > CRBSubpanel::m_Subsets
protected

◆ m_TreeCtrl

wxTreeCtrl* CRBSubpanel::m_TreeCtrl
protected

Definition at line 193 of file segregate_sets.hpp.

Referenced by Init(), OnButtonMoveRight(), OnSelectAll(), and UpdateList().


The documentation for this class was generated from the following files:
Modified on Wed Sep 04 15:01:53 2024 by modify_doxy.py rev. 669887