casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
casa::CanvasMode Class Referenceabstract

#include <CanvasMode.h>

Inheritance diagram for casa::CanvasMode:
casa::CanvasModeAnnotation casa::CanvasModeChannel casa::CanvasModeContextMenu casa::CanvasModeRangeSelection casa::CanvasModeZoom

Public Types

enum  ModeIndex {
  MODE_ANNOTATION,
  MODE_CHANNEL,
  MODE_CONTEXTMENU,
  MODE_RANGESELECTION,
  MODE_ZOOM
}
 

Public Member Functions

void setReceiver (QtCanvas *receiver)
 
virtual bool isMode (ModeIndex mode) const
 
void mousePressEvent (QMouseEvent *event)
 
virtual void mousePressEventSpecific (QMouseEvent *event)=0
 
virtual void mouseMoveEvent (QMouseEvent *event)=0
 
void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseReleaseEventSpecific (QMouseEvent *event)=0
 
virtual QString toString () const =0
 
virtual ~CanvasMode ()
 

Protected Member Functions

 CanvasMode (Qt::CursorShape modeCursor)
 

Protected Attributes

QtCanvasreceiver
 
Qt::CursorShape cursor
 

Detailed Description

Definition at line 37 of file CanvasMode.h.

Member Enumeration Documentation

Enumerator
MODE_ANNOTATION 
MODE_CHANNEL 
MODE_CONTEXTMENU 
MODE_RANGESELECTION 
MODE_ZOOM 

Definition at line 40 of file CanvasMode.h.

Constructor & Destructor Documentation

virtual casa::CanvasMode::~CanvasMode ( )
virtual
casa::CanvasMode::CanvasMode ( Qt::CursorShape  modeCursor)
protected

Member Function Documentation

virtual bool casa::CanvasMode::isMode ( ModeIndex  mode) const
virtual
virtual void casa::CanvasMode::mouseMoveEvent ( QMouseEvent *  event)
pure virtual
void casa::CanvasMode::mousePressEvent ( QMouseEvent *  event)
virtual void casa::CanvasMode::mousePressEventSpecific ( QMouseEvent *  event)
pure virtual
void casa::CanvasMode::mouseReleaseEvent ( QMouseEvent *  event)
virtual void casa::CanvasMode::mouseReleaseEventSpecific ( QMouseEvent *  event)
pure virtual
void casa::CanvasMode::setReceiver ( QtCanvas receiver)
virtual QString casa::CanvasMode::toString ( ) const
pure virtual

Member Data Documentation

Qt::CursorShape casa::CanvasMode::cursor
protected

Definition at line 54 of file CanvasMode.h.

QtCanvas* casa::CanvasMode::receiver
protected

Definition at line 53 of file CanvasMode.h.


The documentation for this class was generated from the following file: