- Prepare for scripting

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696314
This commit is contained in:
Richard J. Moore 2007-08-04 12:46:29 +00:00
parent e7512b5b77
commit 705b7839f9
3 changed files with 12 additions and 4 deletions

View File

@ -50,6 +50,9 @@ class DataContainer;
class PLASMA_EXPORT DataEngine : public QObject
{
Q_OBJECT
Q_PROPERTY( QStringList sources READ sources )
Q_PROPERTY( bool valid READ isValid )
Q_PROPERTY( QString icon READ icon WRITE setIcon )
public:
typedef QHash<QString, DataEngine*> Dict;

10
phase.h
View File

@ -37,6 +37,10 @@ namespace Plasma
class PLASMA_EXPORT Phase : public QObject
{
Q_OBJECT
Q_ENUMS( Animation )
Q_ENUMS( RenderOp )
Q_ENUMS( CurveShape )
Q_ENUMS( Movement )
public:
enum Animation
@ -82,9 +86,9 @@ public:
explicit Phase(QObject * parent = 0);
~Phase();
void animateItem(QGraphicsItem* item, Animation anim);
void moveItem(QGraphicsItem* item, Movement movement, const QPoint &destination);
void render(QGraphicsItem* item, QImage& image, RenderOp op);
Q_INVOKABLE void animateItem(QGraphicsItem* item, Animation anim);
Q_INVOKABLE void moveItem(QGraphicsItem* item, Movement movement, const QPoint &destination);
Q_INVOKABLE void render(QGraphicsItem* item, QImage& image, RenderOp op);
AnimId animateElement(QGraphicsItem *obj, ElementAnimation);
void stopElementAnimation(AnimId id);

View File

@ -44,6 +44,7 @@ namespace Plasma
class PLASMA_EXPORT Theme : public QObject
{
Q_OBJECT
Q_PROPERTY( QString themeName READ themeName )
public:
/**
@ -78,7 +79,7 @@ class PLASMA_EXPORT Theme : public QObject
* ".svg" part or a leading slash)
* @return the full path to the requested file for the current theme
*/
QString image( const QString& name ) const;
Q_INVOKABLE QString image( const QString& name ) const;
Q_SIGNALS:
/**