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

Search Toolkit Book for CSequesterSets

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

+ Inheritance diagram for CSequesterSets:
+ Collaboration diagram for CSequesterSets:

Public Member Functions

 CSequesterSets ()
 Constructors. More...
 
 CSequesterSets (wxWindow *parent, objects::CSeq_entry_Handle seh, CConstRef< CSeq_submit > seq_submit, IWorkbench *wb, wxWindowID id=wxID_ANY, const wxString &caption=_("Sequester 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=wxID_ANY, const wxString &caption=_("Sequester Sets"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
 Creation. More...
 
virtual ~CSequesterSets ()
 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...
 
vector< vector< int > > & GetSubsets ()
 
void SetSubsets (const set< objects::CBioseq_Handle > &selected)
 
void OnSequester (wxCommandEvent &event)
 
void OnCancel (wxCommandEvent &event)
 
void OnAccept (wxCommandEvent &event)
 
CRef< objects::CUser_object > GetParams ()
 
void RestoreTextView ()
 
- 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 Member Functions

void RecursiveCollectSets (const objects::CBioseq_set_Handle &bssh, vector< objects::CBioseq_set_Handle > &set_vec, set< objects::CBioseq_set_Handle > &unique_set)
 
void RecursivePropagateDown (void)
 
void RecursivePropagateUp (void)
 
void BioseqSetDescriptorPropagateUp (objects::CBioseq_set_Handle set)
 
void BioseqSetDescriptorPropagateDown (const objects::CBioseq_set_Handle &bioseq_set_h)
 
void EnableSmartPackageDone (bool enable)
 
bool ShoudStayInPlace (const objects::CSeqdesc &desc)
 

Private Attributes

wxNotebook * m_Notebook
 
IWorkbenchm_Workbench
 
CIRef< IProjectViewm_TextView
 
CRef< objects::CSeq_entry > m_SavedEntry
 
CConstRef< objects::CSeq_submit > m_SeqSubmit
 
wxButton * m_SequesterButton
 
wxButton * m_AcceptButton
 

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 68 of file sequester_sets.hpp.

Constructor & Destructor Documentation

◆ CSequesterSets() [1/2]

CSequesterSets::CSequesterSets ( )

Constructors.

CSequesterSets event table definition

CSequesterSets constructors

Definition at line 84 of file sequester_sets.cpp.

References Init().

◆ CSequesterSets() [2/2]

CSequesterSets::CSequesterSets ( wxWindow *  parent,
objects::CSeq_entry_Handle  seh,
CConstRef< CSeq_submit seq_submit,
IWorkbench wb,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("Sequester Sets"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL 
)

◆ ~CSequesterSets()

CSequesterSets::~CSequesterSets ( )
virtual

Destructor.

CSequesterSets destructor

Definition at line 133 of file sequester_sets.cpp.

References RestoreTextView().

Member Function Documentation

◆ BioseqSetDescriptorPropagateDown()

void CSequesterSets::BioseqSetDescriptorPropagateDown ( const objects::CBioseq_set_Handle &  bioseq_set_h)
private

◆ BioseqSetDescriptorPropagateUp()

void CSequesterSets::BioseqSetDescriptorPropagateUp ( objects::CBioseq_set_Handle  set)
private

◆ Create()

bool CSequesterSets::Create ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  caption = _("Sequester 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 107 of file sequester_sets.cpp.

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

Referenced by CSequesterSets().

◆ CreateControls()

void CSequesterSets::CreateControls ( )

Creates the controls and sizers.

Control creation for CSequesterSets

Definition at line 154 of file sequester_sets.cpp.

References _, ID_ACCEPT_BUTTON, ID_CANCEL_BUTTON, ID_SEQUESTER_BUTTON, m_AcceptButton, m_Notebook, m_SequesterButton, and wxID_ANY.

Referenced by Create().

◆ EnableSmartPackageDone()

void CSequesterSets::EnableSmartPackageDone ( bool  enable)
private

◆ GetBitmapResource()

wxBitmap CSequesterSets::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 224 of file sequester_sets.cpp.

◆ GetIconResource()

wxIcon CSequesterSets::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 235 of file sequester_sets.cpp.

◆ GetParams()

CRef< CUser_object > CSequesterSets::GetParams ( void  )

◆ GetSubsets()

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

Definition at line 335 of file sequester_sets.cpp.

References CRBSubpanel::GetSubsets(), and m_Notebook.

Referenced by OnSequester().

◆ Init()

void CSequesterSets::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 145 of file sequester_sets.cpp.

Referenced by CSequesterSets().

◆ OnAccept()

void CSequesterSets::OnAccept ( wxCommandEvent &  event)

◆ OnCancel()

void CSequesterSets::OnCancel ( wxCommandEvent &  event)

Definition at line 464 of file sequester_sets.cpp.

References RestoreTextView().

◆ OnSequester()

void CSequesterSets::OnSequester ( wxCommandEvent &  event)

◆ RecursiveCollectSets()

void CSequesterSets::RecursiveCollectSets ( const objects::CBioseq_set_Handle &  bssh,
vector< objects::CBioseq_set_Handle > &  set_vec,
set< objects::CBioseq_set_Handle > &  unique_set 
)
private

◆ RecursivePropagateDown()

void CSequesterSets::RecursivePropagateDown ( void  )
private

◆ RecursivePropagateUp()

void CSequesterSets::RecursivePropagateUp ( void  )
private

◆ RestoreTextView()

void CSequesterSets::RestoreTextView ( )

◆ SetSubsets()

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

◆ ShoudStayInPlace()

bool CSequesterSets::ShoudStayInPlace ( const objects::CSeqdesc &  desc)
private

◆ ShowToolTips()

bool CSequesterSets::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 215 of file sequester_sets.cpp.

Member Data Documentation

◆ m_AcceptButton

wxButton* CSequesterSets::m_AcceptButton
private

Definition at line 137 of file sequester_sets.hpp.

Referenced by CreateControls(), and OnSequester().

◆ m_Notebook

wxNotebook* CSequesterSets::m_Notebook
private

Definition at line 129 of file sequester_sets.hpp.

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

◆ m_SavedEntry

CRef<objects::CSeq_entry> CSequesterSets::m_SavedEntry
private

Definition at line 132 of file sequester_sets.hpp.

Referenced by OnAccept(), OnSequester(), and RestoreTextView().

◆ m_SeqSubmit

CConstRef<objects::CSeq_submit> CSequesterSets::m_SeqSubmit
private

Definition at line 134 of file sequester_sets.hpp.

Referenced by CSequesterSets(), OnAccept(), OnSequester(), and RestoreTextView().

◆ m_SequesterButton

wxButton* CSequesterSets::m_SequesterButton
private

Definition at line 136 of file sequester_sets.hpp.

Referenced by CreateControls(), and OnSequester().

◆ m_TextView

CIRef<IProjectView> CSequesterSets::m_TextView
private

Definition at line 131 of file sequester_sets.hpp.

Referenced by OnAccept(), OnSequester(), and RestoreTextView().

◆ m_Workbench

IWorkbench* CSequesterSets::m_Workbench
private

Definition at line 130 of file sequester_sets.hpp.

Referenced by CSequesterSets(), OnAccept(), OnSequester(), and RestoreTextView().


The documentation for this class was generated from the following files:
Modified on Wed Jun 19 17:02:19 2024 by modify_doxy.py rev. 669887