summaryrefslogtreecommitdiffstats
path: root/src/conn-avoid-ref.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/conn-avoid-ref.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/conn-avoid-ref.h')
-rw-r--r--src/conn-avoid-ref.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/conn-avoid-ref.h b/src/conn-avoid-ref.h
new file mode 100644
index 000000000..3b5e6d3b5
--- /dev/null
+++ b/src/conn-avoid-ref.h
@@ -0,0 +1,57 @@
+#ifndef SEEN_CONN_AVOID_REF
+#define SEEN_CONN_AVOID_REF
+
+/*
+ * A class for handling shape interaction with libavoid.
+ *
+ * Authors:
+ * Michael Wybrow <mjwybrow@users.sourceforge.net>
+ *
+ * Copyright (C) 2005 Michael Wybrow
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+
+#include <sigc++/connection.h>
+
+struct SPItem;
+namespace Avoid {
+ class ShapeRef;
+}
+
+class SPAvoidRef {
+public:
+ SPAvoidRef(SPItem *spitem);
+ ~SPAvoidRef();
+
+ // libavoid's internal representation of the item.
+ Avoid::ShapeRef *shapeRef;
+
+ void setAvoid(char const *value);
+ void handleSettingChange(void);
+
+private:
+ SPItem *item;
+
+ // true if avoiding, false if not.
+ bool setting;
+ bool new_setting;
+
+ // A sigc connection for transformed signal.
+ sigc::connection _transformed_connection;
+};
+
+
+#endif /* !SEEN_CONN_AVOID_REF */
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :