From 5b715d17ebafd3613c5e8e01731b329f10278582 Mon Sep 17 00:00:00 2001 From: clviper Date: Wed, 6 Dec 2017 22:55:08 +0000 Subject: [PATCH 1/5] Add support for topic orientation. --- xmind/core/topic.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmind/core/topic.py b/xmind/core/topic.py index 9b011cd..8e05439 100644 --- a/xmind/core/topic.py +++ b/xmind/core/topic.py @@ -62,6 +62,12 @@ def _get_children(self): def _set_hyperlink(self, hyperlink): self.setAttribute(const.ATTR_HREF, hyperlink) #self.updateModifiedTime() + + def _set_orientation(self,orientation): + self.setAttribute(const.ATTR_ORIENTATION,orientation) + + def setTopicOrientation(self,orientation): + self._set_orientation(orientation) def getOwnerSheet(self): parent = self.getParentNode() From 6acf7c98ee6354c8e39e1df44f284b8e5cfd5ba2 Mon Sep 17 00:00:00 2001 From: clviper Date: Wed, 6 Dec 2017 22:55:40 +0000 Subject: [PATCH 2/5] Update const.py --- xmind/core/const.py | 1 + 1 file changed, 1 insertion(+) diff --git a/xmind/core/const.py b/xmind/core/const.py index a9b27d1..80c7894 100644 --- a/xmind/core/const.py +++ b/xmind/core/const.py @@ -55,6 +55,7 @@ ATTR_END1 = "end1" ATTR_END2 = "end2" ATTR_MARKERID = "marker-id" +ATTR_ORIENTATION ="structure-class" NS_URI = "http://www.w3.org/1999/xhtml" From 545f3e32c86ee4b4e737b797672fed79bf03b4e3 Mon Sep 17 00:00:00 2001 From: clviper Date: Wed, 6 Dec 2017 23:22:12 +0000 Subject: [PATCH 3/5] Update topic.py Renamed Orientation to Structure that is the current nomenclature. --- xmind/core/topic.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xmind/core/topic.py b/xmind/core/topic.py index 8e05439..a919055 100644 --- a/xmind/core/topic.py +++ b/xmind/core/topic.py @@ -63,11 +63,11 @@ def _set_hyperlink(self, hyperlink): self.setAttribute(const.ATTR_HREF, hyperlink) #self.updateModifiedTime() - def _set_orientation(self,orientation): - self.setAttribute(const.ATTR_ORIENTATION,orientation) + def _set_structure(self,structure): + self.setAttribute(const.ATTR_STRUCTURE,structure) - def setTopicOrientation(self,orientation): - self._set_orientation(orientation) + def setTopicStructure(self,structure): + self._set_orientation(structure) def getOwnerSheet(self): parent = self.getParentNode() From ca6a6d580b82885b549c7a9e5dbf5a6925d422f7 Mon Sep 17 00:00:00 2001 From: clviper Date: Wed, 6 Dec 2017 23:22:38 +0000 Subject: [PATCH 4/5] Update const.py Renamed Orientation to Structure that is the current nomenclature. --- xmind/core/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmind/core/const.py b/xmind/core/const.py index 80c7894..a1b0bcb 100644 --- a/xmind/core/const.py +++ b/xmind/core/const.py @@ -55,7 +55,7 @@ ATTR_END1 = "end1" ATTR_END2 = "end2" ATTR_MARKERID = "marker-id" -ATTR_ORIENTATION ="structure-class" +ATTR_STRUCTURE ="structure-class" NS_URI = "http://www.w3.org/1999/xhtml" From 8e7448a5c92362ee3c9f8629c670c58348590df1 Mon Sep 17 00:00:00 2001 From: clviper Date: Wed, 6 Dec 2017 23:26:10 +0000 Subject: [PATCH 5/5] Update topic.py --- xmind/core/topic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmind/core/topic.py b/xmind/core/topic.py index a919055..adef2dd 100644 --- a/xmind/core/topic.py +++ b/xmind/core/topic.py @@ -67,7 +67,7 @@ def _set_structure(self,structure): self.setAttribute(const.ATTR_STRUCTURE,structure) def setTopicStructure(self,structure): - self._set_orientation(structure) + self._set_structure(structure) def getOwnerSheet(self): parent = self.getParentNode()