CAlnSpanWidget Class Reference

Search Toolkit Book for CAlnSpanWidget

#include <alnspan_widget.hpp>

Inheritance diagram for CAlnSpanWidget:

Inheritance graph
[legend]
Collaboration diagram for CAlnSpanWidget:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 50 of file alnspan_widget.hpp.

Public Types

typedef list< CConstRef< objects::CSeq_loc > > TLocations

Public Member Functions

 CAlnSpanWidget ()
 CAlnSpanWidget (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT|wxLC_VIRTUAL)
 Definitions for Align Span Widget commands.
virtual ~CAlnSpanWidget ()
void SetAlnModel (CAlnSpanVertModel &model)
void Update ()
int GetNumRowsSelected () const
void GetSelection (TLocations &locs) const
virtual void AppendMenuItems (wxMenu &aMenu)
Command and Event handlers
void OnSelectionChanged (wxListEvent &event)
void OnExportToCSV (wxCommandEvent &event)
void OnSettings (wxCommandEvent &event)
void OnSettingsUpdateUI (wxUpdateUIEvent &event)

Protected Member Functions

void x_NotifyWidgetSelChanged ()
void x_NotifyWidgetRangeChanged ()

Private Member Functions

 CAlnSpanWidget (const CAlnSpanWidget &)
 prohibited
CAlnSpanWidgetoperator= (const CAlnSpanWidget &)


Member Typedef Documentation

typedef list< CConstRef<objects::CSeq_loc> > CAlnSpanWidget::TLocations
 

Definition at line 75 of file alnspan_widget.hpp.


Constructor & Destructor Documentation

CAlnSpanWidget::CAlnSpanWidget  )  [inline]
 

Definition at line 54 of file alnspan_widget.hpp.

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

Definitions for Align Span Widget commands.

Definition at line 72 of file alnspan_widget.cpp.

CAlnSpanWidget::~CAlnSpanWidget  )  [virtual]
 

Definition at line 79 of file alnspan_widget.cpp.

CAlnSpanWidget::CAlnSpanWidget const CAlnSpanWidget  )  [private]
 

prohibited


Member Function Documentation

void CAlnSpanWidget::AppendMenuItems wxMenu &  aMenu  )  [virtual]
 

Reimplemented from CwxTableListCtrl.

Definition at line 135 of file alnspan_widget.cpp.

References _T, CwxTableListCtrl::AppendMenuItems(), CwxTableListCtrl::eCmdExportToCSV, and eCmdSettings.

int CAlnSpanWidget::GetNumRowsSelected  )  const [inline]
 

Definition at line 73 of file alnspan_widget.hpp.

Referenced by CAlignSpanView::x_UpdateStatusMessage().

void CAlnSpanWidget::GetSelection TLocations locs  )  const
 

we need to extract a location from each row we have two locations to provide: one for the object and one for the component

Definition at line 97 of file alnspan_widget.cpp.

References _ASSERT, CAlnSpanVertModel::GetData(), CwxTableListCtrl::GetDataRowsSelected(), CwxTableListCtrl::GetModel(), and ITERATE.

Referenced by CAlignSpanView::GetSelection(), and CAlignSpanView::GetVisibleRanges().

void CAlnSpanWidget::OnExportToCSV wxCommandEvent &  event  ) 
 

Definition at line 147 of file alnspan_widget.cpp.

References ExportTableControlToCSV().

void CAlnSpanWidget::OnSelectionChanged wxListEvent &  event  ) 
 

Definition at line 175 of file alnspan_widget.cpp.

References x_NotifyWidgetSelChanged().

void CAlnSpanWidget::OnSettings wxCommandEvent &  event  ) 
 

Definition at line 152 of file alnspan_widget.cpp.

References _ASSERT, CwxTableListCtrl::GetModel(), CAlnSpanSettingsDlg::GetThreshold(), CAlnSpanVertModel::GetThreshold(), CAlnSpanVertModel::SetThreshold(), CAlnSpanSettingsDlg::SetThreshold(), and x_NotifyWidgetSelChanged().

void CAlnSpanWidget::OnSettingsUpdateUI wxUpdateUIEvent &  event  ) 
 

Definition at line 169 of file alnspan_widget.cpp.

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

void CAlnSpanWidget::SetAlnModel CAlnSpanVertModel model  ) 
 

Definition at line 83 of file alnspan_widget.cpp.

References CAlnSpanVertModel::GetNumSequences(), and CwxTableListCtrl::SetModel().

Referenced by CAlignSpanView::CreateViewWindow().

void CAlnSpanWidget::Update  ) 
 

Definition at line 92 of file alnspan_widget.cpp.

Referenced by CAlignSpanView::x_Update().

void CAlnSpanWidget::x_NotifyWidgetRangeChanged  )  [protected]
 

Definition at line 128 of file alnspan_widget.cpp.

References CEvent::eEvent_Message, CEventHandler::ePool_Parent, CViewEvent::eWidgetRangeChanged, and CEventHandler::Send().

void CAlnSpanWidget::x_NotifyWidgetSelChanged  )  [protected]
 

Definition at line 121 of file alnspan_widget.cpp.

References CEvent::eEvent_Message, CEventHandler::ePool_Parent, CViewEvent::eWidgetSelectionChanged, and CEventHandler::Send().

Referenced by OnSelectionChanged(), and OnSettings().


The documentation for this class was generated from the following files:
Generated on Mon Dec 7 09:57:08 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:22:26 2009 by modify_doxy.py rev. 173732