2009-10-17 19:35:02 +02:00
|
|
|
/***********************************************************************/
|
|
|
|
/* animationprivate.h */
|
|
|
|
/* */
|
|
|
|
/* Copyright(C) 2009 Adenilson Cavalcanti <adenilson.silva@idnt.org.br>*/
|
|
|
|
/* */
|
|
|
|
/* This library is free software; you can redistribute it and/or */
|
|
|
|
/* modify it under the terms of the GNU Lesser General Public */
|
|
|
|
/* License as published by the Free Software Foundation; either */
|
|
|
|
/* version 2.1 of the License, or (at your option) any later version. */
|
|
|
|
/* */
|
|
|
|
/* This library is distributed in the hope that it will be useful, */
|
|
|
|
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
|
|
|
|
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
|
|
|
|
/* Lesser General Public License for more details. */
|
|
|
|
/* */
|
|
|
|
/* You should have received a copy of the GNU Lesser General Public */
|
|
|
|
/* License along with this library; if not, write to the Free Software */
|
|
|
|
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA */
|
|
|
|
/* 02110-1301 USA */
|
|
|
|
/***********************************************************************/
|
|
|
|
#ifndef PLASMA_ANIMATIONPRIVATE_H
|
|
|
|
#define PLASMA_ANIMATIONPRIVATE_H
|
|
|
|
|
2009-10-20 23:14:46 +02:00
|
|
|
#include <QEasingCurve>
|
|
|
|
#include <QWeakPointer>
|
2009-10-20 15:08:23 +02:00
|
|
|
|
2009-10-17 19:35:02 +02:00
|
|
|
namespace Plasma
|
|
|
|
{
|
|
|
|
|
2009-10-20 23:04:49 +02:00
|
|
|
class AbstractAnimationPrivate
|
2009-10-17 19:35:02 +02:00
|
|
|
{
|
|
|
|
public:
|
2009-10-22 15:40:30 +02:00
|
|
|
|
|
|
|
AbstractAnimationPrivate();
|
2009-10-17 19:35:02 +02:00
|
|
|
/**
|
|
|
|
* Object the animation(s) should act upon.
|
|
|
|
*/
|
2009-10-20 23:14:46 +02:00
|
|
|
QWeakPointer<QGraphicsWidget> animObject;
|
2009-10-17 19:35:02 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Animation direction: where the animation will move.
|
|
|
|
*/
|
|
|
|
AnimationDirection animDirection;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Animation distance: displacement factor for animations where
|
|
|
|
* there is change in the position of animated widget.
|
|
|
|
*/
|
|
|
|
qreal animDistance;
|
|
|
|
|
2009-10-17 21:40:44 +02:00
|
|
|
/**
|
|
|
|
* Animation visibility: whether to end the animation being visible
|
|
|
|
* or not.
|
|
|
|
*/
|
|
|
|
bool animVisible;
|
|
|
|
|
2009-10-20 15:08:23 +02:00
|
|
|
/**
|
|
|
|
* Animation easing curve type
|
|
|
|
*/
|
|
|
|
QEasingCurve::Type easingCurve;
|
|
|
|
|
2009-10-21 07:32:04 +02:00
|
|
|
/**
|
|
|
|
* Animation rotation angle (e.g. 45, 180, etc)
|
|
|
|
*/
|
|
|
|
qreal angle;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Rotation axis (e.g. X, Y, Z)
|
|
|
|
*/
|
|
|
|
Qt::Axis axis;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Rotation reference (e.g. Center, Up, Down, Left, Right) can
|
|
|
|
* be combined (i.e. Center|Up)
|
|
|
|
*/
|
|
|
|
qint8 reference;
|
|
|
|
|
2009-10-22 15:40:30 +02:00
|
|
|
bool forwards;
|
2009-10-17 19:35:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|