VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.

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

Public Member Functions

 DtWidgetAnimator (QObject *parent=0)
 
virtual ~DtWidgetAnimator ()
 
void move (QWidget *w, int top, int left, int time=800)
 
void reset ()
 
void slide (QWidget *w, AnimationType type=SlideOpenRToL, int time=200, const QRect &finalRect=QRect())
 

Protected Slots

void slot_timeLineFrameChanged (int)
 
void slot_timeLineStateChanged (QTimeLine::State)
 
void widgetDestroyed ()
 

Protected Member Functions

void setup ()
 

Protected Attributes

QTimeLine * myTimeLine
 
AnimationType myAnimationType
 
QWidget * myWidget
 
QPixmap myPixmap
 
RenderAreamyRendering
 
QPoint myOrigin
 
QPoint myDestination
 
QPoint myVector
 
QRect myFinalGeometry
 

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,
const QRect &  finalRect = QRect() 
)

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
QRect makVrf::DtWidgetAnimator::myFinalGeometry
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)