casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
casa::AnnotationText Class Reference

#include <AnnotationText.h>

Inheritance diagram for casa::AnnotationText:
casa::Annotation casa::PropertyListener

Public Member Functions

 AnnotationText (QWidget *parent)
 
void drawAnnotation (QPainter *painter)
 
virtual ~AnnotationText ()
 
virtual void propertiesChanged ()
 
- Public Member Functions inherited from casa::Annotation
 Annotation (QWidget *parent=NULL)
 
void setDimensionsPosition (int locationX, int locationY)
 Changes the size of the annotation. More...
 
void setDimensions (int width, int height)
 
void move (int positionX, int positionY)
 Moves the top left corner of the annotation to (positionX, positionY);. More...
 
bool registerMousePosition (int mouseX, int mouseY)
 Stores the passed in values as reference points so that they can be later used to calculate how much to move the annotation. More...
 
void mousePositionMoved (int mouseX, int mouseY)
 (mouseX,mouseY) are the new position of the mouse. More...
 
void draw (QPainter *painter)
 
void setSelected (bool selected)
 
bool isSelected () const
 
bool contains (int posX, int posY) const
 
void showEditor ()
 
virtual ~Annotation ()
 
- Public Member Functions inherited from casa::PropertyListener
 PropertyListener ()
 
virtual ~PropertyListener ()
 

Private Attributes

QString label
 
QFont fontFamily
 
AnnotationEditorTextannotationEditorText
 

Additional Inherited Members

- Protected Member Functions inherited from casa::Annotation
void init ()
 
- Protected Attributes inherited from casa::Annotation
AnnotationEditor annotationEditor
 
int pixelX
 Top left corner of the annotation. More...
 
int pixelY
 
int width
 
int height
 
int mouseDownX
 Stored reference point for later calculation move amounts. More...
 
int mouseDownY
 

Detailed Description

Definition at line 17 of file AnnotationText.h.

Constructor & Destructor Documentation

casa::AnnotationText::AnnotationText ( QWidget *  parent)
virtual casa::AnnotationText::~AnnotationText ( )
virtual

Member Function Documentation

void casa::AnnotationText::drawAnnotation ( QPainter *  painter)
virtual

Implements casa::Annotation.

virtual void casa::AnnotationText::propertiesChanged ( )
virtual

Reimplemented from casa::Annotation.

Member Data Documentation

AnnotationEditorText* casa::AnnotationText::annotationEditorText
private

Definition at line 28 of file AnnotationText.h.

QFont casa::AnnotationText::fontFamily
private

Definition at line 27 of file AnnotationText.h.

QString casa::AnnotationText::label
private

Definition at line 26 of file AnnotationText.h.


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