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

Search Toolkit Book for CVcfRefSequencesPanel

#include <gui/widgets/loaders/vcf_ref_sequences_panel.hpp>

+ Inheritance diagram for CVcfRefSequencesPanel:
+ Collaboration diagram for CVcfRefSequencesPanel:

Public Types

enum  {
  ID_CVCFREFSEQUENCESPANEL = 10670 , ID_RADIOBTNALL = 10671 , ID_RADIOBTNSEL = 10672 , ID_CHECKLISTBOX = 10673 ,
  ID_SELECT_ALL_BTN = 10674 , ID_DESELECT_ALL_BTN = 10675 , ID_SEARCHCTRL = 10676
}
 Control identifiers. More...
 

Public Member Functions

 CVcfRefSequencesPanel ()
 Constructors. More...
 
 CVcfRefSequencesPanel (wxWindow *parent, wxWindowID id=ID_CVCFREFSEQUENCESPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 
bool Create (wxWindow *parent, wxWindowID id=ID_CVCFREFSEQUENCESPANEL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxTAB_TRAVERSAL)
 Creation. More...
 
 ~CVcfRefSequencesPanel ()
 Destructor. More...
 
void Init ()
 Initialises member variables. More...
 
void CreateControls ()
 Creates the controls and sizers. More...
 
void OnIdle (wxIdleEvent &event)
 wxEVT_IDLE event handler for ID_CVCFREFSEQUENCESPANEL More...
 
void OnRadiobtnAllSelected (wxCommandEvent &event)
 wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBTNALL More...
 
void OnRadiobtnSelSeqsSelected (wxCommandEvent &event)
 wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBTNSEL More...
 
void OnChecklistboxToggled (wxCommandEvent &event)
 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED event handler for ID_CHECKLISTBOX More...
 
void OnSelectAllBtnClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SELECT_ALL_BTN More...
 
void OnDeselectAllBtnClick (wxCommandEvent &event)
 wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DESELECT_ALL_BTN More...
 
void OnSearchButtonClick (wxCommandEvent &event)
 wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN event handler for ID_SEARCHCTRL More...
 
void OnSearchCancelClick (wxCommandEvent &event)
 wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN event handler for ID_SEARCHCTRL More...
 
void OnSearchEnter (wxCommandEvent &event)
 wxEVT_COMMAND_TEXT_ENTER event handler for ID_SEARCHCTRL More...
 
void OnSearchCtrlUpdate (wxUpdateUIEvent &event)
 wxEVT_UPDATE_UI event handler for ID_SEARCHCTRL More...
 
wxBitmap GetBitmapResource (const wxString &name)
 Retrieves bitmap resources. More...
 
wxIcon GetIconResource (const wxString &name)
 Retrieves icon resources. More...
 
void SetReferenceSeqIds (const vector< CConstRef< objects::CSeq_id > > &refSeqIds)
 
void GetSelectedReferenceSeqIds (vector< CConstRef< objects::CSeq_id > > &selSeqIds) const
 
bool ImportAll () const
 
void SetGenCollAssembly (const CRef< objects::CGC_Assembly > &gc_assm)
 
void SetTopLevelSeqCount (size_t count)
 

Static Public Member Functions

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

Public Attributes

wxRadioButton * m_LoadAllSeqsBtn
 
wxStaticText * m_SeqSelectText
 
wxCheckListBox * m_RefSeqList
 
wxButton * m_SelectAllBtn
 
wxButton * m_DeselctAllBtn
 
wxSearchCtrl * m_SearchCtrl
 

Private Member Functions

void x_FillList (const string &filter)
 

Private Attributes

vector< CConstRef< objects::CSeq_id > > m_RefSeqIds
 
set< const objects::CSeq_id * > m_SelectedSeqIds
 
list< size_t > m_IdsWithNoDescriptions
 
CRef< objects::CScope > m_Scope
 
string m_CurrentFilter
 
unique_ptr< objects::IIdMapper > m_IdMapper
 
CRef< objects::CGC_Assembly > m_GenCollAssm
 

Detailed Description

CVcfRefSequencesPanel class declaration

Definition at line 66 of file vcf_ref_sequences_panel.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Control identifiers.

Enumerator
ID_CVCFREFSEQUENCESPANEL 
ID_RADIOBTNALL 
ID_RADIOBTNSEL 
ID_CHECKLISTBOX 
ID_SELECT_ALL_BTN 
ID_DESELECT_ALL_BTN 
ID_SEARCHCTRL 

Definition at line 156 of file vcf_ref_sequences_panel.hpp.

Constructor & Destructor Documentation

◆ CVcfRefSequencesPanel() [1/2]

CVcfRefSequencesPanel::CVcfRefSequencesPanel ( )

Constructors.

CVcfRefSequencesPanel type definition

CVcfRefSequencesPanel event table definition

CVcfRefSequencesPanel constructors

Definition at line 87 of file vcf_ref_sequences_panel.cpp.

References Init().

◆ CVcfRefSequencesPanel() [2/2]

CVcfRefSequencesPanel::CVcfRefSequencesPanel ( wxWindow *  parent,
wxWindowID  id = ID_CVCFREFSEQUENCESPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ ~CVcfRefSequencesPanel()

CVcfRefSequencesPanel::~CVcfRefSequencesPanel ( )

Destructor.

CVcfRefSequencesPanel destructor

Definition at line 124 of file vcf_ref_sequences_panel.cpp.

Member Function Documentation

◆ Create()

bool CVcfRefSequencesPanel::Create ( wxWindow *  parent,
wxWindowID  id = ID_CVCFREFSEQUENCESPANEL,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize(400, 300),
long  style = wxTAB_TRAVERSAL 
)

◆ CreateControls()

void CVcfRefSequencesPanel::CreateControls ( )

◆ GetBitmapResource()

wxBitmap CVcfRefSequencesPanel::GetBitmapResource ( const wxString &  name)

Retrieves bitmap resources.

Get bitmap resources

Definition at line 217 of file vcf_ref_sequences_panel.cpp.

◆ GetIconResource()

wxIcon CVcfRefSequencesPanel::GetIconResource ( const wxString &  name)

Retrieves icon resources.

Get icon resources

Definition at line 230 of file vcf_ref_sequences_panel.cpp.

◆ GetSelectedReferenceSeqIds()

void CVcfRefSequencesPanel::GetSelectedReferenceSeqIds ( vector< CConstRef< objects::CSeq_id > > &  selSeqIds) const

Definition at line 265 of file vcf_ref_sequences_panel.cpp.

References m_SelectedSeqIds.

Referenced by CColumnarVCFLoaderManager::GetTask().

◆ ImportAll()

bool CVcfRefSequencesPanel::ImportAll ( ) const

Definition at line 274 of file vcf_ref_sequences_panel.cpp.

References m_LoadAllSeqsBtn.

Referenced by CColumnarVCFLoaderManager::GetTask().

◆ Init()

void CVcfRefSequencesPanel::Init ( void  )

Initialises member variables.

Member initialisation

Definition at line 135 of file vcf_ref_sequences_panel.cpp.

References m_DeselctAllBtn, m_LoadAllSeqsBtn, m_RefSeqList, m_SearchCtrl, m_SelectAllBtn, m_SeqSelectText, and NULL.

Referenced by CVcfRefSequencesPanel().

◆ OnChecklistboxToggled()

void CVcfRefSequencesPanel::OnChecklistboxToggled ( wxCommandEvent &  event)

wxEVT_COMMAND_CHECKLISTBOX_TOGGLED event handler for ID_CHECKLISTBOX

Definition at line 416 of file vcf_ref_sequences_panel.cpp.

References set< Key, Compare >::erase(), set< Key, Compare >::find(), set< Key, Compare >::insert(), m_RefSeqList, and m_SelectedSeqIds.

◆ OnDeselectAllBtnClick()

void CVcfRefSequencesPanel::OnDeselectAllBtnClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_DESELECT_ALL_BTN

Definition at line 293 of file vcf_ref_sequences_panel.cpp.

References set< Key, Compare >::clear(), i, m_RefSeqList, m_SelectedSeqIds, NcbiEmptyString, and x_FillList().

◆ OnIdle()

void CVcfRefSequencesPanel::OnIdle ( wxIdleEvent &  event)

wxEVT_IDLE event handler for ID_CVCFREFSEQUENCESPANEL

Definition at line 378 of file vcf_ref_sequences_panel.cpp.

References CLabel::eDescription, ERR_POST, Error(), CLabel::GetLabel(), CSeq_id::GetSeqIdString(), m_IdsWithNoDescriptions, m_RefSeqList, m_Scope, and ToWxString().

◆ OnRadiobtnAllSelected()

void CVcfRefSequencesPanel::OnRadiobtnAllSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBTNALL

Definition at line 400 of file vcf_ref_sequences_panel.cpp.

References m_DeselctAllBtn, m_RefSeqList, m_SearchCtrl, and m_SelectAllBtn.

◆ OnRadiobtnSelSeqsSelected()

void CVcfRefSequencesPanel::OnRadiobtnSelSeqsSelected ( wxCommandEvent &  event)

wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBTNSEL

Definition at line 408 of file vcf_ref_sequences_panel.cpp.

References m_DeselctAllBtn, m_RefSeqList, m_SearchCtrl, and m_SelectAllBtn.

◆ OnSearchButtonClick()

void CVcfRefSequencesPanel::OnSearchButtonClick ( wxCommandEvent &  event)

wxEVT_COMMAND_SEARCHCTRL_SEARCH_BTN event handler for ID_SEARCHCTRL

Definition at line 301 of file vcf_ref_sequences_panel.cpp.

References x_FillList().

◆ OnSearchCancelClick()

void CVcfRefSequencesPanel::OnSearchCancelClick ( wxCommandEvent &  event)

wxEVT_COMMAND_SEARCHCTRL_CANCEL_BTN event handler for ID_SEARCHCTRL

Definition at line 306 of file vcf_ref_sequences_panel.cpp.

References NcbiEmptyString, and x_FillList().

◆ OnSearchCtrlUpdate()

void CVcfRefSequencesPanel::OnSearchCtrlUpdate ( wxUpdateUIEvent &  event)

wxEVT_UPDATE_UI event handler for ID_SEARCHCTRL

Definition at line 373 of file vcf_ref_sequences_panel.cpp.

References m_CurrentFilter, and m_SearchCtrl.

◆ OnSearchEnter()

void CVcfRefSequencesPanel::OnSearchEnter ( wxCommandEvent &  event)

wxEVT_COMMAND_TEXT_ENTER event handler for ID_SEARCHCTRL

Definition at line 311 of file vcf_ref_sequences_panel.cpp.

References m_SearchCtrl, and x_FillList().

◆ OnSelectAllBtnClick()

void CVcfRefSequencesPanel::OnSelectAllBtnClick ( wxCommandEvent &  event)

wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_SELECT_ALL_BTN

Definition at line 284 of file vcf_ref_sequences_panel.cpp.

References i, set< Key, Compare >::insert(), m_RefSeqList, m_SelectedSeqIds, NcbiEmptyString, and x_FillList().

◆ SetGenCollAssembly()

void CVcfRefSequencesPanel::SetGenCollAssembly ( const CRef< objects::CGC_Assembly > &  gc_assm)

Definition at line 279 of file vcf_ref_sequences_panel.cpp.

References m_GenCollAssm.

Referenced by CColumnarVCFLoaderManager::GetCurrentPanel().

◆ SetReferenceSeqIds()

void CVcfRefSequencesPanel::SetReferenceSeqIds ( const vector< CConstRef< objects::CSeq_id > > &  refSeqIds)

◆ SetTopLevelSeqCount()

void CVcfRefSequencesPanel::SetTopLevelSeqCount ( size_t  count)

Definition at line 258 of file vcf_ref_sequences_panel.cpp.

References _ASSERT, label, and m_LoadAllSeqsBtn.

Referenced by CColumnarVCFLoaderManager::GetCurrentPanel().

◆ ShowToolTips()

bool CVcfRefSequencesPanel::ShowToolTips ( )
static

Should we show tooltips?

Should we show tooltips?

Definition at line 208 of file vcf_ref_sequences_panel.cpp.

◆ x_FillList()

void CVcfRefSequencesPanel::x_FillList ( const string filter)
private

Member Data Documentation

◆ m_CurrentFilter

string CVcfRefSequencesPanel::m_CurrentFilter
private

Definition at line 172 of file vcf_ref_sequences_panel.hpp.

Referenced by OnSearchCtrlUpdate(), and x_FillList().

◆ m_DeselctAllBtn

wxButton* CVcfRefSequencesPanel::m_DeselctAllBtn

◆ m_GenCollAssm

CRef<objects::CGC_Assembly> CVcfRefSequencesPanel::m_GenCollAssm
private

Definition at line 174 of file vcf_ref_sequences_panel.hpp.

Referenced by SetGenCollAssembly(), and x_FillList().

◆ m_IdMapper

unique_ptr<objects::IIdMapper> CVcfRefSequencesPanel::m_IdMapper
private

Definition at line 173 of file vcf_ref_sequences_panel.hpp.

Referenced by x_FillList().

◆ m_IdsWithNoDescriptions

list<size_t> CVcfRefSequencesPanel::m_IdsWithNoDescriptions
private

Definition at line 170 of file vcf_ref_sequences_panel.hpp.

Referenced by OnIdle(), and x_FillList().

◆ m_LoadAllSeqsBtn

wxRadioButton* CVcfRefSequencesPanel::m_LoadAllSeqsBtn

Definition at line 149 of file vcf_ref_sequences_panel.hpp.

Referenced by CreateControls(), ImportAll(), Init(), and SetTopLevelSeqCount().

◆ m_RefSeqIds

vector<CConstRef<objects::CSeq_id> > CVcfRefSequencesPanel::m_RefSeqIds
private

Definition at line 168 of file vcf_ref_sequences_panel.hpp.

Referenced by SetReferenceSeqIds(), and x_FillList().

◆ m_RefSeqList

wxCheckListBox* CVcfRefSequencesPanel::m_RefSeqList

◆ m_Scope

CRef<objects::CScope> CVcfRefSequencesPanel::m_Scope
private

Definition at line 171 of file vcf_ref_sequences_panel.hpp.

Referenced by OnIdle(), and SetReferenceSeqIds().

◆ m_SearchCtrl

wxSearchCtrl* CVcfRefSequencesPanel::m_SearchCtrl

◆ m_SelectAllBtn

wxButton* CVcfRefSequencesPanel::m_SelectAllBtn

◆ m_SelectedSeqIds

set<const objects::CSeq_id*> CVcfRefSequencesPanel::m_SelectedSeqIds
private

◆ m_SeqSelectText

wxStaticText* CVcfRefSequencesPanel::m_SeqSelectText

Definition at line 150 of file vcf_ref_sequences_panel.hpp.

Referenced by CreateControls(), Init(), and SetReferenceSeqIds().


The documentation for this class was generated from the following files:
Modified on Sat May 25 14:15:56 2024 by modify_doxy.py rev. 669887