diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 00:33:13 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 00:33:13 +0000 |
| commit | d2eab659b08ba4a28410ed2527ba0431832776b3 (patch) | |
| tree | 05f5786b153121b010abb01713e0ffa364ac82f9 /src/live_effects/effect.h | |
| parent | reimplement acceptsNumParams(); instead of making it a virtual function we ju... (diff) | |
| download | inkscape-d2eab659b08ba4a28410ed2527ba0431832776b3.tar.gz inkscape-d2eab659b08ba4a28410ed2527ba0431832776b3.zip | |
Remove done_pathparam_set and friends because it currently isn't used any more anyway; reimplement its intended functionality by using isReady()
(bzr r6643)
Diffstat (limited to 'src/live_effects/effect.h')
| -rw-r--r-- | src/live_effects/effect.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/live_effects/effect.h b/src/live_effects/effect.h index 1bc3988ab..e703c888b 100644 --- a/src/live_effects/effect.h +++ b/src/live_effects/effect.h @@ -113,7 +113,13 @@ public: int acceptsNumParams() { return acceptsNumParams(effectType()); } void doAcceptPathPreparations(SPLPEItem *lpeitem); - inline bool pathParamAccepted() { return done_pathparam_set; } + /* + * isReady() indicates whether all preparations which are necessary to apply the LPE are done, + * e.g., waiting for a parameter path either before the effect is created or when it needs a + * path as argument. This is set in sp_lpe_item_add_path_effect(). + */ + inline bool isReady() { return is_ready; } + inline void setReady(bool ready = true) { is_ready = ready; } virtual void doEffect (SPCurve * curve); @@ -179,7 +185,6 @@ protected: std::vector<std::pair<KnotHolderEntity*, const char*> > kh_entity_vector; int oncanvasedit_it; BoolParam is_visible; - bool done_pathparam_set; bool show_orig_path; // set this to true in derived effects to automatically have the original // path displayed as helperpath @@ -195,6 +200,8 @@ protected: private: bool provides_own_flash_paths; // if true, the standard flash path is suppressed + bool is_ready; + Effect(const Effect&); Effect& operator=(const Effect&); }; |
