summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-16 14:55:10 +0100
committerErich Eckner <git@eckner.net>2018-02-16 14:55:10 +0100
commitade3628c95ee853fe392c85a0fb9d261279e56ef (patch)
tree3b87489174006c9f26b8e61dc8cb84365f76c498 /src
parent6045f9a3c4657272cfae0ad36d51910c6596a5d1 (diff)
downloaddbmodel-ade3628c95ee853fe392c85a0fb9d261279e56ef.tar.xz
src/connector.{h,cpp}: isStart() new - is this the start of the arrow?
Diffstat (limited to 'src')
-rw-r--r--src/connector.cpp6
-rw-r--r--src/connector.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/connector.cpp b/src/connector.cpp
index bbd7580..bf85ed0 100644
--- a/src/connector.cpp
+++ b/src/connector.cpp
@@ -82,6 +82,12 @@ Connector::isConnected() const
return m_hub;
}
+bool
+Connector::isStart()
+{
+ return this==owner()->connector(0);
+}
+
DiagramObject *
Connector::connectedObject() const
{
diff --git a/src/connector.h b/src/connector.h
index 66e2b1a..ee2ecb6 100644
--- a/src/connector.h
+++ b/src/connector.h
@@ -37,6 +37,8 @@ public:
bool isConnected() const;
DiagramObject *connectedObject() const;
+ bool isStart();
+
Connector *otherEnd() const;
Hub *hub() const;