NCBI C++ ToolKit
|
Search Toolkit Book for CSegregateSets
#include <gui/packages/pkg_sequence_edit/segregate_sets.hpp>
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< CCmdComposite > | GetCommand () |
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 |
CSetClassPanel * | m_SetClassPanel |
ICommandProccessor * | m_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< SSetSeqRecord > | m_SetSeq |
Definition at line 88 of file segregate_sets.hpp.
anonymous enum |
Definition at line 138 of file segregate_sets.hpp.
CSegregateSets::CSegregateSets | ( | ) |
Constructors.
CSegregateSets event table definition
CSegregateSets constructors
Definition at line 83 of file segregate_sets.cpp.
References Init().
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 |
||
) |
Definition at line 88 of file segregate_sets.cpp.
References Create(), Init(), m_CmdProcessor, CSegregateSetsBase::m_SetSeq, CSegregateSetsBase::m_TopSeqEntry, CSegregateSetsBase::ReadBioseq(), NEditingStats::ReportUsage(), and ncbi::grid::netcache::search::fields::size.
|
virtual |
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().
void CSegregateSets::CreateControls | ( | ) |
Creates the controls and sizers.
Control creation for CSegregateSets
Definition at line 147 of file segregate_sets.cpp.
References _, CBioseq_set_Base::eClass_genbank, ID_CSEGREGATE_DESCTYPETAB, ID_CSEGREGATE_FEATTYPETAB, ID_CSEGREGATE_FIELDTAB, ID_CSEGREGATE_FNAMETAB, ID_CSEGREGATE_IDTAB, ID_CSEGREGATE_MOLINFOTAB, ID_CSEGREGATE_NOTEBOOK, ID_CSEGREGATE_NUMSETSTAB, ID_CSEGREGATE_NUMSLENTAB, ID_CSEGREGATE_STRCOMMENTTAB, ID_CSEGREGATE_TEXTTAB, m_LeaveUp, m_Notebook, m_SetClassPanel, CSegregateSetsBase::m_SetSeq, CSetClassPanel::SetClass(), and wxID_ANY.
Referenced by Create().
wxBitmap CSegregateSets::GetBitmapResource | ( | const wxString & | name | ) |
|
virtual |
Definition at line 316 of file segregate_sets.cpp.
References CSegregateSetsBase::AddUserObject(), CSerialObject::Assign(), cmd, ncbi::grid::netcache::search::fields::created, CBioseq_set_Base::eClass_genbank, CSetClassPanel::GetClass(), CBioseq_set_Handle::GetClass(), CBioseq_set_Handle::GetCompleteBioseq_set(), GetSubsets(), i, m_SetClassPanel, CSegregateSetsBase::m_SetSeq, CSegregateSetsBase::m_TopSeqEntry, CSegregateSetsBase::MoveDescrToEntries(), CSegregateSetsBase::PopulateSet(), and CSeq_entry_Base::SetSet().
Referenced by OnAccept().
wxIcon CSegregateSets::GetIconResource | ( | const wxString & | name | ) |
vector< vector< int > > & CSegregateSets::GetSubsets | ( | ) |
Definition at line 479 of file segregate_sets.cpp.
References CRBSubpanel::GetSubsets(), and m_Notebook.
Referenced by GetCommand().
void CSegregateSets::Init | ( | void | ) |
Initialises member variables.
Member initialisation
Definition at line 138 of file segregate_sets.cpp.
Referenced by CSegregateSets().
void CSegregateSets::OnAccept | ( | wxCommandEvent & | event | ) |
Definition at line 289 of file segregate_sets.cpp.
References cmd, ICommandProccessor::Execute(), GetCommand(), CRBSubpanel::GetSubsets(), i, m_CmdProcessor, m_LeaveUp, m_Notebook, CSegregateSetsBase::m_SetSeq, CSegregateSetsBase::m_TopSeqEntry, CSegregateSetsBase::ReadBioseq(), CRBSubpanel::SetClusters(), and CRBSubpanel::UpdateList().
void CSegregateSets::OnCancel | ( | wxCommandEvent & | event | ) |
Definition at line 284 of file segregate_sets.cpp.
Definition at line 486 of file segregate_sets.cpp.
References m_Notebook, and CRBSubpanel::SetSubsets().
Referenced by CValidateFrame::OnSegregate(), CValidatorReportCfgDlg::OnSegregate(), and CDiscrepancyPanel::OnSegregate().
|
static |
Should we show tooltips?
Should we show tooltips?
Definition at line 257 of file segregate_sets.cpp.
|
private |
Definition at line 155 of file segregate_sets.hpp.
Referenced by CSegregateSets(), and OnAccept().
|
private |
Definition at line 156 of file segregate_sets.hpp.
Referenced by CreateControls(), and OnAccept().
|
private |
Definition at line 153 of file segregate_sets.hpp.
Referenced by CreateControls(), GetSubsets(), OnAccept(), and SetSubsets().
|
private |
Definition at line 154 of file segregate_sets.hpp.
Referenced by CreateControls(), and GetCommand().