diff options
| author | Markus Engel <markus.engel@tum.de> | 2013-03-29 23:46:09 +0000 |
|---|---|---|
| committer | Markus Engel <markus.engel@tum.de> | 2013-03-29 23:46:09 +0000 |
| commit | 732214b111f2e830a8a0b654a88b087766be9067 (patch) | |
| tree | ae0a9471ca69a2e580b350f0b13b64ce647d45b7 /src/live_effects/lpeobject.h | |
| parent | Added "virtual pads" to (diff) | |
| download | inkscape-732214b111f2e830a8a0b654a88b087766be9067.tar.gz inkscape-732214b111f2e830a8a0b654a88b087766be9067.zip | |
Added "virtual pads" for
- ColorProfile
- LivePathEffectObject
- Persp3D
(bzr r11608.1.51)
Diffstat (limited to 'src/live_effects/lpeobject.h')
| -rw-r--r-- | src/live_effects/lpeobject.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/live_effects/lpeobject.h b/src/live_effects/lpeobject.h index 3ea1ea9ad..d9349e0cc 100644 --- a/src/live_effects/lpeobject.h +++ b/src/live_effects/lpeobject.h @@ -31,8 +31,12 @@ struct LivePathEffectObjectClass { SPObjectClass parent_class; }; +class CLivePathEffectObject; + class LivePathEffectObject : public SPObject { public: + CLivePathEffectObject* clivepatheffectobject; + Inkscape::LivePathEffect::EffectType effecttype; bool effecttype_set; @@ -43,13 +47,13 @@ public: * So one should always check whether the returned value is NULL or not */ Inkscape::LivePathEffect::Effect * get_lpe() { return lpe; }; -private: +//private: Inkscape::LivePathEffect::Effect *lpe; // this can be NULL in a valid LivePathEffectObject /* C-style class functions: */ -public: +//public: static GType livepatheffect_get_type(); -private: +//private: static void livepatheffect_class_init(LivePathEffectObjectClass *klass); static void livepatheffect_init(LivePathEffectObject *stop); static void livepatheffect_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr); @@ -59,6 +63,22 @@ private: }; +class CLivePathEffectObject : public CObject { +public: + CLivePathEffectObject(LivePathEffectObject* lpeo); + virtual ~CLivePathEffectObject(); + + virtual void onBuild(SPDocument* doc, Inkscape::XML::Node* repr); + virtual void onRelease(); + + virtual void onSet(unsigned int key, const gchar* value); + + virtual Inkscape::XML::Node* onWrite(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, guint flags); + +private: + LivePathEffectObject* livepatheffectobject; +}; + #endif /* |
