VR-Forces 4.0.4 Class Documentation
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]

List of all members.

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

default constructor

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.

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  ) [protected, slot]
void makVrf::DtWidgetAnimator::slot_timeLineStateChanged ( QTimeLine::State  ) [protected, slot]
void makVrf::DtWidgetAnimator::widgetDestroyed ( ) [protected, slot]

Called when the widget that is animating is destroyed.


Member Data Documentation

QTimeLine* makVrf::DtWidgetAnimator::myTimeLine [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)