CSnpTableWidget Class Reference

Search Toolkit Book for CSnpTableWidget

#include <widget_snp_table.hpp>

Inheritance diagram for CSnpTableWidget:

Inheritance graph
[legend]
Collaboration diagram for CSnpTableWidget:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 70 of file widget_snp_table.hpp.

Public Member Functions

 CSnpTableWidget ()
 CSnpTableWidget (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT|wxLC_VIRTUAL)
 CSnpTableWidget.
virtual ~CSnpTableWidget ()
void GetSelection (TConstObjects &objs) const
 Get the selected objects.
void ShowAnalysisValues (bool show)
void SetDataSource (CSnpTableModel *new_ds)
 CSnpTableWidget (int x, int y, int w, int h, const char *label=0)
virtual ~CSnpTableWidget ()
void Init (CSnpTableData *ds, bool show_studyval=false)
void LoadAccession (std::string acc)
void SetFilter (const SSnpFilter &filter)
void ExportTo (const char *filename)
Command and Event handlers
void OnContextMenu (wxContextMenuEvent &event)
void OnEventLinkout (wxCommandEvent &event)
void OnExportCSV (wxCommandEvent &event)
void OnSelectFilter (wxCommandEvent &event)
IObserver interface implementation
virtual void OnUpdate (IObserverUpdate &update)

Static Public Member Functions

static void RegisterCommands (CUICommandRegistry &cmd_reg, wxFileArtProvider &provider)

Private Member Functions

void x_PrepareMenu (wxMenu *)
 CSnpTableWidget (const CSnpTableWidget &)
 forbidden
CSnpTableWidgetoperator= (const CSnpTableWidget &)
wxListCtrl reimplementation
virtual wxListItemAttr * OnGetItemAttr (long aRow) const

Private Attributes

bool m_bAppliedFilter
bool m_bShowStudies
int m_nUnfilteredSnps
string m_strStatus
CRef< CSnpTableModelm_SnpTableModel
CRef< CSnpTableDatam_SnpTable
CTableControl * m_pTableControl
CScrollPanel * m_pPanel


Constructor & Destructor Documentation

CSnpTableWidget::CSnpTableWidget  )  [inline]
 

Definition at line 76 of file widget_snp_table.hpp.

CSnpTableWidget::CSnpTableWidget wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxLC_REPORT|wxLC_VIRTUAL
 

CSnpTableWidget.

Definition at line 140 of file widget_snp_table.cpp.

References m_SnpTableModel, CRef< C, Locker >::Reset(), and CwxTableListCtrl::SetModel().

CSnpTableWidget::~CSnpTableWidget  )  [virtual]
 

Definition at line 149 of file widget_snp_table.cpp.

CSnpTableWidget::CSnpTableWidget const CSnpTableWidget  )  [private]
 

forbidden

CSnpTableWidget::CSnpTableWidget int  x,
int  y,
int  w,
int  h,
const char *  label = 0
 

virtual CSnpTableWidget::~CSnpTableWidget  )  [virtual]
 


Member Function Documentation

void CSnpTableWidget::ExportTo const char *  filename  ) 
 

void CSnpTableWidget::GetSelection TConstObjects objs  )  const
 

Get the selected objects.

Definition at line 331 of file widget_snp_table.cpp.

Referenced by CSnpTableView::GetSelection().

void CSnpTableWidget::Init CSnpTableData ds,
bool  show_studyval = false
 

void CSnpTableWidget::LoadAccession std::string  acc  ) 
 

void CSnpTableWidget::OnContextMenu wxContextMenuEvent &  event  ) 
 

Reimplemented from CwxTableListCtrl.

Definition at line 219 of file widget_snp_table.cpp.

References CUICommandRegistry::CreateMenu(), CUICommandRegistry::GetInstance(), and x_PrepareMenu().

void CSnpTableWidget::OnEventLinkout wxCommandEvent &  event  ) 
 

Definition at line 179 of file widget_snp_table.cpp.

References SSnpData::bitfield, eCmdLinkDisease, eCmdLinkGene, eCmdLinkGTY, eCmdLinkOMIM, eCmdLinkRefSNP, eCmdLinkSnp3D, CSnpBitfield::eMultipleFxn, f(), SSnpData::gene_id, CSnpBitfield::GetFunctionClass(), m_SnpTableModel, CwxTableListCtrl::RowVisibleToData(), SSnpData::rsid, and SSnpData::url.

void CSnpTableWidget::OnExportCSV wxCommandEvent &  event  ) 
 

Definition at line 174 of file widget_snp_table.cpp.

References ExportTableControlToCSV().

wxListItemAttr * CSnpTableWidget::OnGetItemAttr long  aRow  )  const [private, virtual]
 

Reimplemented from CwxTableListCtrl.

Definition at line 230 of file widget_snp_table.cpp.

References CwxTableListCtrl::GetValueVisibleAt(), and m_bShowStudies.

void CSnpTableWidget::OnSelectFilter wxCommandEvent &  event  ) 
 

Definition at line 153 of file widget_snp_table.cpp.

References CSnpFilterListDialog::Create(), CSnpFilterListDialog::GetFilter(), and m_SnpTableModel.

virtual void CSnpTableWidget::OnUpdate IObserverUpdate update  )  [inline, virtual]
 

Implements IObserver.

Definition at line 106 of file widget_snp_table.hpp.

CSnpTableWidget& CSnpTableWidget::operator= const CSnpTableWidget  )  [private]
 

void CSnpTableWidget::RegisterCommands CUICommandRegistry cmd_reg,
wxFileArtProvider provider
[static]
 

Definition at line 110 of file widget_snp_table.cpp.

References EXPORT_CSV, LINK_DISEASE, LINK_GENE, LINK_GTY, LINK_OMIM, LINK_REFSNP, LINK_SNP3D, and SELECT_FILTER.

Referenced by CSnpTableViewFactory::RegisterCommands().

void CSnpTableWidget::SetDataSource CSnpTableModel new_ds  ) 
 

Definition at line 317 of file widget_snp_table.cpp.

References CRef< C, Locker >::GetPointer(), m_SnpTableModel, CwxTableListCtrl::RemoveModel(), CRef< C, Locker >::Reset(), and CwxTableListCtrl::SetModel().

Referenced by CSnpTableView::CreateViewWindow().

void CSnpTableWidget::SetFilter const SSnpFilter filter  ) 
 

void CSnpTableWidget::ShowAnalysisValues bool  show  ) 
 

Definition at line 305 of file widget_snp_table.cpp.

References CwxTableListCtrl::HideColumn(), and CwxTableListCtrl::ShowColumn().

Referenced by CSnpTableView::x_Update().

void CSnpTableWidget::x_PrepareMenu wxMenu *   )  [private]
 

Definition at line 251 of file widget_snp_table.cpp.

References SSnpData::bitfield, CleanupSeparators(), CSnpBitfield::eHasDiseaseInfo, CSnpBitfield::eHasGenotype, CSnpBitfield::eHasOMIM_OMIA, CSnpBitfield::eHasSnp3D, CSnpBitfield::eUnknownFxn, id, CSnpBitfield::IsTrue(), LINK_DISEASE, LINK_GENE, LINK_GTY, LINK_OMIM, LINK_REFSNP, LINK_SNP3D, m_SnpTableModel, CwxTableListCtrl::RowVisibleToData(), and ToWxString().

Referenced by OnContextMenu().


Member Data Documentation

bool CSnpTableWidget::m_bAppliedFilter [private]
 

Definition at line 123 of file widget_snp_table.hpp.

bool CSnpTableWidget::m_bShowStudies [private]
 

Definition at line 124 of file widget_snp_table.hpp.

Referenced by OnGetItemAttr().

int CSnpTableWidget::m_nUnfilteredSnps [private]
 

Definition at line 125 of file widget_snp_table.hpp.

CScrollPanel* CSnpTableWidget::m_pPanel [private]
 

Definition at line 66 of file snp_table_widget.hpp.

CTableControl* CSnpTableWidget::m_pTableControl [private]
 

Definition at line 65 of file snp_table_widget.hpp.

CRef<CSnpTableData> CSnpTableWidget::m_SnpTable [private]
 

Definition at line 63 of file snp_table_widget.hpp.

CRef<CSnpTableModel> CSnpTableWidget::m_SnpTableModel [private]
 

Definition at line 128 of file widget_snp_table.hpp.

Referenced by CSnpTableWidget(), OnEventLinkout(), OnSelectFilter(), SetDataSource(), and x_PrepareMenu().

string CSnpTableWidget::m_strStatus [private]
 

Definition at line 126 of file widget_snp_table.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 7 14:33:48 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:06 2009 by modify_doxy.py rev. 173732