VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
makVrf::DtWidgetAnimator Class Reference

Represents a widget that can animate the movement of other widgets. More...

Inheritance diagram for makVrf::DtWidgetAnimator:
Inheritance graph
[legend]

Public Member Functions

 DtWidgetAnimator (QObject *parent=0)
 default constructor
virtual ~DtWidgetAnimator ()
 destructor
void move (QWidget *w, int top, int left, int time=800)
 Animates the moving of the widget w.
void reset ()
 Stops the animator.
void slide (QWidget *w, AnimationType type=SlideOpenRToL, int time=200)
 Animates the showing of the widget w with the animation type given.

Protected Slots

void slot_timeLineFrameChanged (int)
void slot_timeLineStateChanged (QTimeLine::State)
void widgetDestroyed ()
 Called when the widget that is animating is destroyed.

Protected Member Functions

void setup ()

Protected Attributes

QTimeLine * myTimeLine
AnimationType myAnimationType
QWidgetmyWidget
QPixmap myPixmap
RenderAreamyRendering
QPoint myOrigin
QPoint myDestination
QPoint myVector

Detailed Description

Represents a widget that can animate the movement of other widgets.

Constructor & Destructor Documentation

makVrf::DtWidgetAnimator::DtWidgetAnimator ( QObject parent = 0)

default constructor

virtual makVrf::DtWidgetAnimator::~DtWidgetAnimator ( )
virtual

destructor

Member Function Documentation

void makVrf::DtWidgetAnimator::move ( QWidget w,
int  top,
int  left,
int  time = 800 
)

Animates the moving of the widget w.

Use the time to specify how long (in milliseconds) the animation should last.

void makVrf::DtWidgetAnimator::reset ( )

Stops the animator.

void makVrf::DtWidgetAnimator::slide ( QWidget w,
AnimationType  type = SlideOpenRToL,
int  time = 200 
)

Animates the showing of the widget w with the animation type given.

Use the time to specify how long (in milliseconds) the animation should last.

void makVrf::DtWidgetAnimator::setup ( )
protected
void makVrf::DtWidgetAnimator::slot_timeLineFrameChanged ( int  )
protectedslot
void makVrf::DtWidgetAnimator::slot_timeLineStateChanged ( QTimeLine::State  )
protectedslot
void makVrf::DtWidgetAnimator::widgetDestroyed ( )
protectedslot

Called when the widget that is animating is destroyed.

Member Data Documentation

QTimeLine* makVrf::DtWidgetAnimator::myTimeLine
protected
AnimationType makVrf::DtWidgetAnimator::myAnimationType
protected
QWidget* makVrf::DtWidgetAnimator::myWidget
protected
QPixmap makVrf::DtWidgetAnimator::myPixmap
protected
RenderArea* makVrf::DtWidgetAnimator::myRendering
protected
QPoint makVrf::DtWidgetAnimator::myOrigin
protected
QPoint makVrf::DtWidgetAnimator::myDestination
protected
QPoint makVrf::DtWidgetAnimator::myVector
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)