summaryrefslogtreecommitdiffstats
path: root/kig/macros/square.kigt
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch)
treed3bb9f5d25a2dc09ca81adecf39621d871534297 /kig/macros/square.kigt
downloadtdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz
tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/macros/square.kigt')
-rw-r--r--kig/macros/square.kigt44
1 files changed, 44 insertions, 0 deletions
diff --git a/kig/macros/square.kigt b/kig/macros/square.kigt
new file mode 100644
index 00000000..09c500e0
--- /dev/null
+++ b/kig/macros/square.kigt
@@ -0,0 +1,44 @@
+<!DOCTYPE KigMacroFile>
+<KigMacroFile Number="1" Version="0.9.0" >
+ <Macro>
+ <Name>Square</Name>
+ <Description>Square with two given adjacent vertices</Description>
+ <ActionName>objects_new_square</ActionName>
+ <IconFileName>square.png</IconFileName>
+ <Construction>
+ <input requirement="point" id="1" />
+ <input requirement="point" id="2" />
+ <intermediate action="calc" type="SegmentAB" id="3" >
+ <arg>1</arg>
+ <arg>2</arg>
+ </intermediate>
+ <intermediate action="fetch-property" property="mid-point" id="4" >
+ <arg>3</arg>
+ </intermediate>
+ <intermediate action="calc" type="CircleBCP" id="5" >
+ <arg>4</arg>
+ <arg>1</arg>
+ </intermediate>
+ <intermediate action="calc" type="SegmentAB" id="6" >
+ <arg>1</arg>
+ <arg>2</arg>
+ </intermediate>
+ <intermediate action="calc" type="LinePerpend" id="7" >
+ <arg>6</arg>
+ <arg>4</arg>
+ </intermediate>
+ <intermediate action="push" type="int" id="8" >-1</intermediate>
+ <intermediate action="calc" type="ConicLineIntersection" id="9" >
+ <arg>5</arg>
+ <arg>7</arg>
+ <arg>8</arg>
+ </intermediate>
+ <intermediate action="push" type="int" id="10" >4</intermediate>
+ <result action="calc" type="PoligonBCV" id="11" >
+ <arg>9</arg>
+ <arg>1</arg>
+ <arg>10</arg>
+ </result>
+ </Construction>
+ </Macro>
+</KigMacroFile>