Added some effects to graphics elements and changed default theme a bit.
[jspeed] / src / graphicselement.h
index ee9c4c2..94d0143 100644 (file)
@@ -27,7 +27,9 @@ class QByteArray;
 class QFont;
 class QGraphicsItem;
 class GraphicsScene;
+class QGraphicsEffect;
 class Reader;
+class Effect;
 
 class GraphicsElement
 {
@@ -46,6 +48,9 @@ public:
     virtual void update() = 0;
     virtual QGraphicsItem* getElement() const = 0;
     QString const& getError() const;
+    bool setEffect(QString const& effect);
+    bool setEffectAttribute(QString const& name, QString const& value);
+    void applyEffect();
 
 protected:
     int getAttribute(QString const& name, QString const& value, const AttributeDetails details[], int count, int& intValue);
@@ -56,6 +61,7 @@ protected:
 private:
     Reader* reader_;
     QString error_;
+    Effect* effect_;
     QMap<QString, QString> loadedFonts_;
 };