diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2012-01-12 21:06:16 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2012-01-12 21:06:16 +0000 |
| commit | 76f0853b7d6bbe1233daa3141ce1379e2df1e934 (patch) | |
| tree | caeee88d187ec0312914f48953729d6f7f0b21d9 /src/live_effects/parameter/originalpath.h | |
| parent | Initial C++ification of SPCanvas. (diff) | |
| download | inkscape-76f0853b7d6bbe1233daa3141ce1379e2df1e934.tar.gz inkscape-76f0853b7d6bbe1233daa3141ce1379e2df1e934.zip | |
LPE: add new LPE that outputs the original path data. used to make a clone (without LPE) of a path with an LPE applied
(bzr r10874)
Diffstat (limited to 'src/live_effects/parameter/originalpath.h')
| -rw-r--r-- | src/live_effects/parameter/originalpath.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/live_effects/parameter/originalpath.h b/src/live_effects/parameter/originalpath.h new file mode 100644 index 000000000..e56dbf2df --- /dev/null +++ b/src/live_effects/parameter/originalpath.h @@ -0,0 +1,49 @@ +#ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_ORIGINAL_PATH_H +#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_ORIGINAL_PATH_H + +/* + * Inkscape::LivePathEffectParameters + * +* Copyright (C) Johan Engelen 2012 <j.b.c.engelen@alumnus.utwente.nl> + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include "live_effects/parameter/path.h" + +namespace Inkscape { + +namespace LivePathEffect { + +class OriginalPathParam: public PathParam { +public: + OriginalPathParam ( const Glib::ustring& label, + const Glib::ustring& tip, + const Glib::ustring& key, + Inkscape::UI::Widget::Registry* wr, + Effect* effect); + virtual ~OriginalPathParam(); + + bool linksToPath() { return (href != NULL); } + + virtual Gtk::Widget * param_newWidget(); + /** Disable the canvas indicators of parent class by overriding this method */ + virtual void param_editOncanvas(SPItem * /*item*/, SPDesktop * /*dt*/) {}; + /** Disable the canvas indicators of parent class by overriding this method */ + virtual void addCanvasIndicators(SPLPEItem * /*lpeitem*/, std::vector<Geom::PathVector> & /*hp_vec*/) {}; + +protected: + virtual void linked_modified_callback(SPObject *linked_obj, guint flags); + void on_select_original_button_click(); + +private: + OriginalPathParam(const OriginalPathParam&); + OriginalPathParam& operator=(const OriginalPathParam&); +}; + + +} //namespace LivePathEffect + +} //namespace Inkscape + +#endif |
