diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-07-29 14:51:39 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-07-29 14:51:39 +0000 |
| commit | 78b970a0a036f78cfd491553b49ffa00214f7a64 (patch) | |
| tree | 18e737c865450e590297c086a8fc17a0ede8d833 /src/live_effects/parameter | |
| parent | Remove superfluous functions (diff) | |
| download | inkscape-78b970a0a036f78cfd491553b49ffa00214f7a64.tar.gz inkscape-78b970a0a036f78cfd491553b49ffa00214f7a64.zip | |
Rename isLPEParam() to isDeletable(), create new class LPEKnotHolderEntity and make inheritance from it a bit less clumsy
(bzr r6448)
Diffstat (limited to 'src/live_effects/parameter')
| -rw-r--r-- | src/live_effects/parameter/point.cpp | 2 | ||||
| -rw-r--r-- | src/live_effects/parameter/point.h | 3 | ||||
| -rw-r--r-- | src/live_effects/parameter/pointparam-knotholder.cpp | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/src/live_effects/parameter/point.cpp b/src/live_effects/parameter/point.cpp index eed16725d..0a782d4ec 100644 --- a/src/live_effects/parameter/point.cpp +++ b/src/live_effects/parameter/point.cpp @@ -152,7 +152,7 @@ PointParam::set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint knot_color = color; } -class PointParamKnotHolderEntity : public KnotHolderEntity { +class PointParamKnotHolderEntity : public LPEKnotHolderEntity { public: PointParamKnotHolderEntity(PointParam *p) { this->pparam = p; } virtual ~PointParamKnotHolderEntity() {} diff --git a/src/live_effects/parameter/point.h b/src/live_effects/parameter/point.h index bad138c9c..9718b232b 100644 --- a/src/live_effects/parameter/point.h +++ b/src/live_effects/parameter/point.h @@ -54,9 +54,6 @@ public: virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item); - // TODO: ditch this! - virtual bool isLPEParam() { return true; } - private: PointParam(const PointParam&); PointParam& operator=(const PointParam&); diff --git a/src/live_effects/parameter/pointparam-knotholder.cpp b/src/live_effects/parameter/pointparam-knotholder.cpp index 3ab07a951..d92532e32 100644 --- a/src/live_effects/parameter/pointparam-knotholder.cpp +++ b/src/live_effects/parameter/pointparam-knotholder.cpp @@ -60,7 +60,7 @@ PointParamKnotHolder::~PointParamKnotHolder() g_object_unref(G_OBJECT(this->lpeobject)); } -class KnotHolderEntityPointParam : public KnotHolderEntity { +class KnotHolderEntityPointParam : public LPEKnotHolderEntity { public: virtual NR::Point knot_get(); virtual void knot_set(NR::Point const &p, NR::Point const &origin, guint state); |
