[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/~makmanalp/plasma
From: Mehmet Ali Akmanalp <makmanalp () wpi ! edu>
Date: 2009-09-02 1:09:29
Message-ID: 1251853769.113996.19804.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1018642 by makmanalp:
- MovementDirection enum is now called AnimationDirection
- It's been moved to plasma.h
M +1 -11 animations/abstractanimation.h
M +1 -1 animations/expand.cpp
M +2 -2 animations/expand.h
M +1 -1 animations/slide.cpp
M +2 -2 animations/slide.h
M +14 -0 plasma.h
--- branches/work/~makmanalp/plasma/animations/abstractanimation.h #1018641:1018642
@@ -29,22 +29,12 @@
#include <QGraphicsWidget>
#include <QObject>
+#include <plasma/plasma.h>
#include <plasma/plasma_export.h>
namespace Plasma
{
-enum MovementDirection {
- MoveUp = 0,
- MoveUpRight,
- MoveRight,
- MoveDownRight,
- MoveDown,
- MoveDownLeft,
- MoveLeft,
- MoveUpLeft
-};
-
/**
* Abstract base class for AnimationGroup and Animation.
*/
--- branches/work/~makmanalp/plasma/animations/expand.cpp #1018641:1018642
@@ -26,7 +26,7 @@
namespace Plasma
{
-Expand::Expand(MovementDirection direction, int distance)
+Expand::Expand(AnimationDirection direction, int distance)
: m_direction(direction),
m_distance(distance)
{
--- branches/work/~makmanalp/plasma/animations/expand.h #1018641:1018642
@@ -42,14 +42,14 @@
Q_OBJECT
public:
- Expand(MovementDirection direction, int distance);
+ Expand(AnimationDirection direction, int distance);
virtual ~Expand(){};
protected:
virtual QPropertyAnimation* render(QObject* parent = 0);
private:
- MovementDirection m_direction;
+ AnimationDirection m_direction;
int m_distance;
};
--- branches/work/~makmanalp/plasma/animations/slide.cpp #1018641:1018642
@@ -27,7 +27,7 @@
namespace Plasma
{
-Slide::Slide(MovementDirection direction, int distance)
+Slide::Slide(AnimationDirection direction, int distance)
: m_direction(direction),
m_distance(distance),
m_end_visibility(true)
--- branches/work/~makmanalp/plasma/animations/slide.h #1018641:1018642
@@ -42,7 +42,7 @@
Q_OBJECT
public:
- Slide(MovementDirection direction, int distance);
+ Slide(AnimationDirection direction, int distance);
virtual ~Slide(){};
/**
* Set if the widget is visible at the end of the animation (default True).
@@ -54,7 +54,7 @@
virtual QPropertyAnimation* render(QObject* parent = 0);
private:
- MovementDirection m_direction;
+ AnimationDirection m_direction;
int m_distance;
//bool m_beginning_visibility;
bool m_end_visibility;
--- branches/work/~makmanalp/plasma/plasma.h #1018641:1018642
@@ -106,6 +106,20 @@
};
/**
+ * The movement direction of an animation.
+ */
+enum AnimationDirection {
+ MoveUp = 0, /**< Move up */
+ MoveUpRight, /**< Move up and right */
+ MoveRight, /**< Move right */
+ MoveDownRight, /**< Move down and right */
+ MoveDown, /**< Move down */
+ MoveDownLeft, /**< Move down and left */
+ MoveLeft, /**< Move left */
+ MoveUpLeft /**< Move up and left */
+};
+
+/**
* The Location enumeration describes where on screen an element, such as an
* Applet or its managing container, is positioned on the screen.
**/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic