CAnnotCompareWidget Class Reference

Search Toolkit Book for CAnnotCompareWidget

#include <annot_compare.hpp>

Inheritance diagram for CAnnotCompareWidget:

Inheritance graph
[legend]
Collaboration diagram for CAnnotCompareWidget:

Collaboration graph
[legend]
List of all members.

Detailed Description

CAnnotCompareWidget.

Definition at line 55 of file annot_compare.hpp.

Public Types

typedef list< CConstRef< objects::CSeq_loc > > TLocations
typedef CAnnotCompareDS::SRow TDSRow
typedef CEvent TEvent
typedef list< CConstRef< objects::CSeq_loc > > TLocs
 retrieve a list of the selected locations
enum  EEventType { eEvent_SelectionChanged }
enum  EColumns {
  eFeat1Label, eFeat1Sequence, eFeat1Location, eFeat2Label,
  eFeat2Sequence, eFeat2Location, eFeatType, eLocationCompare,
  eSequenceCompare, eProductCompare, eMaxCol
}
 the columns we plan to show More...

Public Member Functions

 CAnnotCompareWidget ()
 CAnnotCompareWidget (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxLC_REPORT|wxLC_VIRTUAL)
virtual ~CAnnotCompareWidget ()
void GetSelectedLocations (TLocs &locs) const
void SetDataSource (CAnnotCompareDS &ds)
CAnnotCompareDSGetDataSource ()
void Update ()
void UpdateModel ()
ITimerListener interface
void OnTimeout (int timer_id)
Event handlers
void OnFilter ()
void OnTextReport ()

Protected Member Functions

void x_OnDoubleClick ()
 handle row double-click events
void x_OnDataSourceUpdated (CEvent *)
 event handler for data source update events

Protected Attributes

CRef< CAnnotCompareDSm_Model
 the table's model
string m_LabelStr
 dialog for text report
wxTimer m_Timer
 timer for progress updates

Private Member Functions

 CAnnotCompareWidget (const CAnnotCompareWidget &)
 prohibited
CAnnotCompareWidgetoperator= (const CAnnotCompareWidget &)
void x_OnRowSelect (CEvent *evt)


Member Typedef Documentation

typedef CAnnotCompareDS::SRow CAnnotCompareWidget::TDSRow
 

Definition at line 60 of file annot_compare.hpp.

typedef CEvent CAnnotCompareWidget::TEvent
 

Definition at line 65 of file annot_compare.hpp.

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

Definition at line 59 of file annot_compare.hpp.

typedef list< CConstRef<objects::CSeq_loc> > CAnnotCompareWidget::TLocs
 

retrieve a list of the selected locations

Definition at line 103 of file annot_compare.hpp.


Member Enumeration Documentation

enum CAnnotCompareWidget::EColumns
 

the columns we plan to show

Enumerator:
eFeat1Label 
eFeat1Sequence 
eFeat1Location 
eFeat2Label 
eFeat2Sequence 
eFeat2Location 
eFeatType 
eLocationCompare 
eSequenceCompare 
eProductCompare 
eMaxCol  must be last!

Definition at line 68 of file annot_compare.hpp.

enum CAnnotCompareWidget::EEventType
 

Enumerator:
eEvent_SelectionChanged 

Definition at line 62 of file annot_compare.hpp.


Constructor & Destructor Documentation

CAnnotCompareWidget::CAnnotCompareWidget  )  [inline]
 

Definition at line 84 of file annot_compare.hpp.

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

Definition at line 278 of file annot_compare.cpp.

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

CAnnotCompareWidget::~CAnnotCompareWidget  )  [virtual]
 

Definition at line 291 of file annot_compare.cpp.

References CwxTableListCtrl::RemoveModel().

CAnnotCompareWidget::CAnnotCompareWidget const CAnnotCompareWidget  )  [private]
 

prohibited


Member Function Documentation

CAnnotCompareDS & CAnnotCompareWidget::GetDataSource  ) 
 

Definition at line 362 of file annot_compare.cpp.

Referenced by Update().

void CAnnotCompareWidget::GetSelectedLocations TLocs locs  )  const
 

Definition at line 420 of file annot_compare.cpp.

void CAnnotCompareWidget::OnFilter  ) 
 

Definition at line 331 of file annot_compare.cpp.

void CAnnotCompareWidget::OnTextReport  ) 
 

Definition at line 345 of file annot_compare.cpp.

void CAnnotCompareWidget::OnTimeout int  timer_id  ) 
 

Definition at line 316 of file annot_compare.cpp.

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

void CAnnotCompareWidget::SetDataSource CAnnotCompareDS ds  ) 
 

Definition at line 368 of file annot_compare.cpp.

References CEventHandler::ePool_Parent, m_Model, and CRef< C, Locker >::Reset().

void CAnnotCompareWidget::Update  ) 
 

Definition at line 443 of file annot_compare.cpp.

References GetDataSource(), CAnnotCompareDS::Update(), and UpdateModel().

void CAnnotCompareWidget::UpdateModel  ) 
 

Definition at line 454 of file annot_compare.cpp.

References m_Model.

Referenced by Update(), and x_OnDataSourceUpdated().

void CAnnotCompareWidget::x_OnDataSourceUpdated CEvent  )  [protected]
 

event handler for data source update events

Definition at line 461 of file annot_compare.cpp.

References m_Timer, and UpdateModel().

void CAnnotCompareWidget::x_OnDoubleClick  )  [protected]
 

handle row double-click events

Definition at line 413 of file annot_compare.cpp.

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

void CAnnotCompareWidget::x_OnRowSelect CEvent evt  )  [private]
 


Member Data Documentation

string CAnnotCompareWidget::m_LabelStr [protected]
 

dialog for text report

Definition at line 135 of file annot_compare.hpp.

CRef<CAnnotCompareDS> CAnnotCompareWidget::m_Model [protected]
 

the table's model

Definition at line 130 of file annot_compare.hpp.

Referenced by CAnnotCompareWidget(), SetDataSource(), and UpdateModel().

wxTimer CAnnotCompareWidget::m_Timer [protected]
 

timer for progress updates

Definition at line 138 of file annot_compare.hpp.

Referenced by x_OnDataSourceUpdated().


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