Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
VSI::Arrow Class Reference

Scene movement widget. More...

#include <Plugin-VSI/scene/arrow.hh>

Inheritance diagram for VSI::Arrow:

Public Types

enum  Direction {
  North, South, East, West,
  Center
}
 Movement direction.
 

Public Member Functions

 Arrow (GraphicsScene *_scene, QGraphicsItem *_parent, Direction _dir)
 Constructor.
 
 ~Arrow ()
 Destructor.
 
void activate ()
 Activates the timer for movement (will be called if an element is moved above)
 
void reset ()
 Stop the timer.
 
void setHighlight (bool _highlight)
 Highlights the widget if the scene can be moved in this direction.
 
virtual void setGeometry (const QRectF &_rect)
 Sets the geometry.
 

Protected Member Functions

virtual void hoverEnterEvent (QGraphicsSceneHoverEvent *_event)
 
virtual void hoverLeaveEvent (QGraphicsSceneHoverEvent *_event)
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *_event)
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *_event)
 
virtual void wheelEvent (QGraphicsSceneWheelEvent *_event)
 
virtual QSizeF sizeHint (Qt::SizeHint _which, const QSizeF &_constraint=QSizeF()) const
 

Private Slots

void timeout ()
 

Private Attributes

GraphicsScenescene_
 
Direction dir_
 
QTimer timer_
 
int interval_
 
bool moveSelected_
 
bool highlight_
 

Detailed Description

Scene movement widget.

Definition at line 68 of file arrow.hh.


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