diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index 55a171414e58ee59144961b62c4cfd3e1f0734e9..314ad807c5a1de383472327124a322bff06cfd6a 100644 (file)
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
#include "sp-pattern.h"
#include "style.h"
#include "live_effects/lpeobject.h"
+#include "live_effects/effect.h"
#include "desktop.h"
#include "display/sp-canvas.h"
}
}
+/**
+ * \brief Returns true if at least one of the KnotHolderEntities has the mouse hovering above it
+ */
+bool KnotHolder::knot_mouseover()
+{
+ for(std::list<KnotHolderEntity *>::iterator i = entity.begin(); i != entity.end(); ++i) {
+ SPKnot *knot = (*i)->knot;
+ if (knot && (knot->flags & SP_KNOT_MOUSEOVER)) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
void
KnotHolder::knot_clicked_handler(SPKnot *knot, guint state)
{
_("<b>Move</b> the pattern fill inside the object"),
SP_KNOT_SHAPE_CROSS);
entity_scale->create(desktop, item, this,
- _("<b>Scale</b> the pattern fill uniformly"),
+ _("<b>Scale</b> the pattern fill; uniformly if with <b>Ctrl</b>"),
SP_KNOT_SHAPE_SQUARE, SP_KNOT_MODE_XOR);
entity_angle->create(desktop, item, this,
_("<b>Rotate</b> the pattern fill; with <b>Ctrl</b> to snap angle"),