NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CSegregateSets Class Reference

Search Toolkit Book for CSegregateSets

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

+ Inheritance diagram for CSegregateSets:
+ Collaboration diagram for CSegregateSets:

Public Types

enum  {
  ID_CSEGREGATE_SETS = 11200 , ID_CSEGREGATE_NOTEBOOK , ID_CSEGREGATE_IDTAB , ID_CSEGREGATE_TEXTTAB ,
  ID_CSEGREGATE_NUMSLENTAB , ID_CSEGREGATE_NUMSETSTAB , ID_CSEGREGATE_FNAMETAB , ID_CSEGREGATE_FIELDTAB ,
  ID_CSEGREGATE_FEATTYPETAB , ID_CSEGREGATE_DESCTYPETAB , ID_CSEGREGATE_MOLINFOTAB , ID_CSEGREGATE_STRCOMMENTTAB
}
 

Public Member Functions

 CSegregateSets ()
 Constructors. More...
 
 CSegregateSets (wxWindow *parent, objects::CSeq_entry_Handle seh, ICommandProccessor *cmdProcessor, wxWindowID id=ID_CSEGREGATE_SETS, const wxString &caption=_("Segregate Sets"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CSEGREGATE_SETS, const wxString &caption=_("Segregate Sets"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
virtual ~CSegregateSets ()
 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< CCmdCompositeGetCommand ()
 
vector< vector< int > > & GetSubsets ()
 
void SetSubsets (const set< objects::CBioseq_Handle > &selected)
 
void OnCancel (wxCommandEvent &event)
 
void OnAccept (wxCommandEvent &event)
 
- Public Member Functions inherited from CSegregateSetsBase
virtual ~CSegregateSetsBase ()
 
objects::CSeq_entry_Handle GetSeqEntry (unsigned int i)
 
size_t GetSetSize ()
 
objects::CSeq_entry_Handle GetTopSeqEntry ()
 

Static Public Member Functions

static bool ShowToolTips ()
 Should we show tooltips? More...
 

Private Attributes

wxNotebook * m_Notebook
 
CSetClassPanelm_SetClassPanel
 
ICommandProccessorm_CmdProcessor
 
wxCheckBox * m_LeaveUp
 

Additional Inherited Members

- Protected Member Functions inherited from CSegregateSetsBase
virtual void PopulateSet (objects::CBioseq_set &new_set, const vector< int > &subset, CBioseq_set::EClass top_class)
 
void ReadBioseq (const objects::CSeq_entry &se)
 
void TakeFromSet (objects::CBioseq_set &changed_set, CRef< objects::CSeq_entry > se)
 
void MoveDescrToEntries (objects::CBioseq_set &se)
 
void AddUserObject (objects::CBioseq_set &se)
 
- Protected Attributes inherited from CSegregateSetsBase
objects::CSeq_entry_Handle m_TopSeqEntry
 
vector< SSetSeqRecordm_SetSeq
 

Detailed Description

Definition at line 88 of file segregate_sets.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ID_CSEGREGATE_SETS 
ID_CSEGREGATE_NOTEBOOK 
ID_CSEGREGATE_IDTAB 
ID_CSEGREGATE_TEXTTAB 
ID_CSEGREGATE_NUMSLENTAB 
ID_CSEGREGATE_NUMSETSTAB 
ID_CSEGREGATE_FNAMETAB 
ID_CSEGREGATE_FIELDTAB 
ID_CSEGREGATE_FEATTYPETAB 
ID_CSEGREGATE_DESCTYPETAB 
ID_CSEGREGATE_MOLINFOTAB 
ID_CSEGREGATE_STRCOMMENTTAB 

Definition at line 138 of file segregate_sets.hpp.

Constructor & Destructor Documentation

◆ CSegregateSets() [1/2]

CSegregateSets::CSegregateSets ( )

Constructors.

CSegregateSets event table definition

CSegregateSets constructors

Definition at line 83 of file segregate_sets.cpp.

References Init().

◆ CSegregateSets() [2/2]

CSegregateSets::CSegregateSets ( wxWindow *  parent,
objects::CSeq_entry_Handle  seh,
ICommandProccessor cmdProcessor,
wxWindowID  id = ID_CSEGREGATE_SETS,
const wxString &  caption = _("Segregate Sets"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CSegregateSets()

CSegregateSets::~CSegregateSets ( )
virtual

Destructor.

CSegregateSets destructor

Definition at line 127 of file segregate_sets.cpp.

Member Function Documentation

◆ Create()

bool CSegregateSets::Create ( wxWindow *  parent,
wxWindowID  id = ID_CSEGREGATE_SETS,
const wxString &  caption = _("Segregate Sets"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

Creation.

CVectorTrimDlg creator

Definition at line 105 of file segregate_sets.cpp.

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

Referenced by CSegregateSets().

◆ CreateControls()

void CSegregateSets::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CSegregateSets::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 266 of file segregate_sets.cpp.

◆ GetCommand()

CRef< CCmdComposite > CSegregateSets::GetCommand ( void  )
virtual

◆ GetIconResource()

wxIcon CSegregateSets::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 277 of file segregate_sets.cpp.

◆ GetSubsets()

vector< vector< int > > & CSegregateSets::GetSubsets ( )

Definition at line 479 of file segregate_sets.cpp.

References CRBSubpanel::GetSubsets(), and m_Notebook.

Referenced by GetCommand().

◆ Init()

void CSegregateSets::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 138 of file segregate_sets.cpp.

Referenced by CSegregateSets().

◆ OnAccept()

void CSegregateSets::OnAccept ( wxCommandEvent &  event)

◆ OnCancel()

void CSegregateSets::OnCancel ( wxCommandEvent &  event)

Definition at line 284 of file segregate_sets.cpp.

◆ SetSubsets()

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

◆ ShowToolTips()

bool CSegregateSets::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 257 of file segregate_sets.cpp.

Member Data Documentation

◆ m_CmdProcessor

ICommandProccessor* CSegregateSets::m_CmdProcessor
private

Definition at line 155 of file segregate_sets.hpp.

Referenced by CSegregateSets(), and OnAccept().

◆ m_LeaveUp

wxCheckBox* CSegregateSets::m_LeaveUp
private

Definition at line 156 of file segregate_sets.hpp.

Referenced by CreateControls(), and OnAccept().

◆ m_Notebook

wxNotebook* CSegregateSets::m_Notebook
private

Definition at line 153 of file segregate_sets.hpp.

Referenced by CreateControls(), GetSubsets(), OnAccept(), and SetSubsets().

◆ m_SetClassPanel

CSetClassPanel* CSegregateSets::m_SetClassPanel
private

Definition at line 154 of file segregate_sets.hpp.

Referenced by CreateControls(), and GetCommand().


The documentation for this class was generated from the following files:
Modified on Sun Feb 25 03:07:48 2024 by modify_doxy.py rev. 669887