diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-06-04 12:19:54 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-06-04 12:19:54 +0000 |
| commit | 88f4b0093529c35964c39b589a0b614ad231d02c (patch) | |
| tree | c0c2cf46cdd788415efe2e15e398779b24607b8a /src/knot.h | |
| parent | Added tool style for eraser. (diff) | |
| download | inkscape-88f4b0093529c35964c39b589a0b614ad231d02c.tar.gz inkscape-88f4b0093529c35964c39b589a0b614ad231d02c.zip | |
C++ify knotholders
(bzr r5797)
Diffstat (limited to 'src/knot.h')
| -rw-r--r-- | src/knot.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/knot.h b/src/knot.h index bba49f3e7..07f5040fa 100644 --- a/src/knot.h +++ b/src/knot.h @@ -20,6 +20,7 @@ #include "forward.h" #include <libnr/nr-point.h> #include "knot-enums.h" +#include <sigc++/sigc++.h> class SPKnot; class SPKnotClass; @@ -65,6 +66,16 @@ struct SPKnot : GObject { double pressure; /**< The tablet pen pressure when the knot is being dragged. */ + // C++ signals + /** + sigc::signal<void, NR::Point const &, NR::Point const &, guint> _moved_signal; + sigc::signal<void, guint> _click_signal; + sigc::signal<NR::Point> _ungrabbed_signal; + **/ + sigc::signal<void, SPKnot *, NR::Point const *, guint> _moved_signal; + sigc::signal<void, SPKnot *, guint> _click_signal; + sigc::signal<void> _ungrabbed_signal; + //TODO: all the members above should eventualle become private, accessible via setters/getters inline void setSize (guint i) {size = i;} inline void setShape (guint i) {shape = (SPKnotShapeType) i;} |
