32 void move(
int positionX,
int positionY );
48 void draw( QPainter* painter );
51 bool contains(
int posX,
int posY)
const;
72 bool isInCorner(
int cornerX,
int cornerY,
int mouseX,
int mouseY )
const;
Annotation(QWidget *parent=NULL)
void mousePositionMoved(int mouseX, int mouseY)
(mouseX,mouseY) are the new position of the mouse.
virtual void drawAnnotation(QPainter *painter)=0
bool isInCorner(int cornerX, int cornerY, int mouseX, int mouseY) const
int mouseDownX
Stored reference point for later calculation move amounts.
AnnotationEditor annotationEditor
void draw(QPainter *painter)
int pixelX
Top left corner of the annotation.
MouseLocation mouseLocation
void setDimensions(int width, int height)
void move(int positionX, int positionY)
Moves the top left corner of the annotation to (positionX, positionY);.
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 ...
bool contains(int posX, int posY) const
void drawCorner(MouseLocation cornerLocation, QPainter *painter, int cornerX, int cornerY)
void setDimensionsPosition(int locationX, int locationY)
Changes the size of the annotation.
void setSelected(bool selected)