diff options
Diffstat (limited to '')
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/slice/app.composite | 336 | ||||
-rw-r--r-- | sca-cpp/trunk/modules/edit/apps/slice/htdocs/app.html | 24 |
2 files changed, 353 insertions, 7 deletions
diff --git a/sca-cpp/trunk/modules/edit/apps/slice/app.composite b/sca-cpp/trunk/modules/edit/apps/slice/app.composite index 847d9c4892..af61c11d26 100644 --- a/sca-cpp/trunk/modules/edit/apps/slice/app.composite +++ b/sca-cpp/trunk/modules/edit/apps/slice/app.composite @@ -18,23 +18,345 @@ * under the License. --> <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="app" targetNamespace="http://app"> + <service name="angle" promote="angle"/> + <service name="animation1" promote="animation1"/> <service name="start" promote="start"/> - <component name="number" title="#" color="orange1"> - <implementation.python script="nuvem/number.py"/> - <service name="number"/> - <property>0</property> + <service name="xpos" promote="xpos"/> + <service name="ypos" promote="ypos"/> + <component x="670" y="370" name="angle" title="{compname}" color="green1"> + <implementation.python script="nuvem/service.py"/> + <service name="service" visible="false"/> + <reference target="format1" name="content"/> + </component> + <component x="10" y="140" name="animation1" title="animation" color="green1"> + <implementation.python script="nuvem/animation.py"/> + <service name="animation" visible="false"> + <binding.http uri="animation"/> + </service> + <reference target="number6" name="n"/> + <reference target="true1" name="loop"/> + <reference target="foreach1" name="content"/> + </component> + <component x="450" y="160" name="call1" title="call" color="green1"> + <implementation.python script="nuvem/call.py"/> + <service name="call"/> + <reference target="name2" name="name"/> + <reference name="proxy" wiredByImpl="true" visible="false"/> + </component> + <component x="440" y="200" name="call2" title="call" color="green1"> + <implementation.python script="nuvem/call.py"/> + <service name="call"/> + <reference target="name3" name="name"/> + <reference name="proxy" wiredByImpl="true" visible="false"/> + </component> + <component x="520" y="250" name="call3" title="call" color="green1"> + <implementation.python script="nuvem/call.py"/> + <service name="call"/> + <reference target="name4" name="name"/> + <reference name="proxy" wiredByImpl="true" visible="false"/> + </component> + <component x="660" y="170" name="divide1" title="/" color="magenta1"> + <implementation.python script="nuvem/divide.py"/> + <service name="divide"> + <documentation>/</documentation> + </service> + <reference target="valueof3" name="value1"/> + <reference target="number3" name="value2"/> + </component> + <component x="80" y="130" name="foreach1" title="foreach" color="yellow1"> + <implementation.python script="nuvem/map_.py"/> + <service name="foreach"/> + <reference target="name1" name="item"/> + <reference target="list1" name="transform"/> + <reference target="range1" name="list"/> + </component> + <component x="780" y="380" name="format1" title="format" color="magenta1"> + <implementation.python script="nuvem/format_.py"/> + <service name="format"/> + <reference target="text1" name="pattern"/> + <reference target="list3" name="values"/> + </component> + <component x="390" y="90" name="htattrs1" title="html attrs:" color="magenta1"> + <implementation.python script="nuvem/htattrs.py"/> + <service name="htattrs"/> + <reference target="htstyle1" name="value"/> + </component> + <component x="110" y="0" name="htattrs2" title="html attrs:" color="magenta1"> + <implementation.python script="nuvem/htattrs.py"/> + <service name="htattrs"/> + <reference target="list5" name="value"/> + </component> + <component x="300" y="150" name="htstyle1" title="html style" color="magenta1"> + <implementation.python script="nuvem/htstyle.py"/> + <service name="htstyle"/> + <reference target="list2" name="value"/> </component> <component name="item" title="{propval} :" color="orange1"> <implementation.python script="nuvem/item.py"/> <service name="item"/> - <reference target="number" name="value"/> - <property>slice</property> + <reference target="htattrs2" name="value"/> + <property>sprite</property> + </component> + <component x="400" y="160" name="item1" title="{propval} :" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="call1" name="value"/> + <property>left</property> + </component> + <component x="400" y="190" name="item2" title="{propval} :" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="call2" name="value"/> + <property>top</property> + </component> + <component x="220" y="0" name="item3" title="{propval} :" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text3" name="value"/> + <property>src</property> + </component> + <component x="180" y="160" name="item4" title="{propval} :" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="htattrs1" name="value"/> + <property>sprite</property> + </component> + <component x="410" y="490" name="item5" title="{propval} :" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text4" name="value"/> + <property>position</property> + </component> + <component x="400" y="250" name="item6" title="{propval} :" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="call3" name="value"/> + <property>-webkit-transform</property> + </component> + <component x="220" y="40" name="item7" title="{propval} :" color="orange1"> + <implementation.python script="nuvem/item.py"/> + <service name="item"/> + <reference target="text2" name="value"/> + <property>onclick</property> + </component> + <component name="list1" title="list" color="yellow1"> + <implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="item4" name="item" clonable="true"/> + <reference name="item" clonable="true"/> + </component> + <component name="list2" title="list" color="yellow1"> + <implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="item5" name="item" clonable="true"/> + <reference target="item1" name="item" clonable="true"/> + <reference target="item2" name="item" clonable="true"/> + <reference target="item6" name="item" clonable="true"/> + <reference name="item" clonable="true"/> + </component> + <component name="list3" title="list" color="yellow1"> + <implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="multiply4" name="item" clonable="true"/> + <reference name="item" clonable="true"/> + </component> + <component name="list5" title="list" color="yellow1"> + <implementation.python script="nuvem/list_.py"/> + <service name="list"/> + <reference target="item3" name="item" clonable="true"/> + <reference target="item7" name="item" clonable="true"/> + <reference name="item" clonable="true"/> + </component> + <component x="540" y="140" name="multiply1" title="*" color="magenta1"> + <implementation.python script="nuvem/multiply.py"/> + <service name="multiply"> + <documentation>*</documentation> + </service> + <reference target="number4" name="value1"/> + <reference target="sin1" name="value2"/> + </component> + <component x="550" y="150" name="multiply2" title="*" color="magenta1"> + <implementation.python script="nuvem/multiply.py"/> + <service name="multiply"> + <documentation>*</documentation> + </service> + <reference target="pi1" name="value1"/> + <reference target="divide1" name="value2"/> + </component> + <component x="500" y="130" name="multiply3" title="*" color="magenta1"> + <implementation.python script="nuvem/multiply.py"/> + <service name="multiply"> + <documentation>*</documentation> + </service> + <reference target="number8" name="value1"/> + <reference target="valueof2" name="value2"/> + </component> + <component x="870" y="410" name="multiply4" title="*" color="magenta1"> + <implementation.python script="nuvem/multiply.py"/> + <service name="multiply"> + <documentation>*</documentation> + </service> + <reference target="number9" name="value1"/> + <reference target="valueof1" name="value2"/> + </component> + <component x="270" y="120" name="name1" title="" color="orange1"> + <implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>t</property> + </component> + <component x="480" y="160" name="name2" title="" color="orange1"> + <implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>xpos</property> </component> - <component x="17" y="9" name="start" title="start" color="green1"> + <component x="490" y="200" name="name3" title="" color="orange1"> + <implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>ypos</property> + </component> + <component x="560" y="250" name="name4" title="" color="orange1"> + <implementation.python script="nuvem/name.py"/> + <service name="name"/> + <property>angle</property> + </component> + <component x="210" y="110" name="number1" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>0</property> + </component> + <component x="200" y="140" name="number2" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>101</property> + </component> + <component x="730" y="200" name="number3" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>25</property> + </component> + <component x="510" y="140" name="number4" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>200</property> + </component> + <component x="530" y="120" name="number5" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>0</property> + </component> + <component x="80" y="70" name="number6" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>30</property> + </component> + <component x="760" y="230" name="number7" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>200</property> + </component> + <component x="730" y="130" name="number8" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>4</property> + </component> + <component x="890" y="410" name="number9" title="#" color="orange1"> + <implementation.python script="nuvem/number.py"/> + <service name="number"/> + <property>20</property> + </component> + <component x="580" y="150" name="pi1" title="pi" color="magenta1"> + <implementation.python script="nuvem/pi_.py"/> + <service name="pi"/> + </component> + <component x="640" y="40" name="pixels1" title="pixels" color="magenta1"> + <implementation.python script="nuvem/pixels.py"/> + <service name="pixels"/> + <reference target="multiply3" name="value"/> + </component> + <component x="650" y="110" name="pixels2" title="pixels" color="magenta1"> + <implementation.python script="nuvem/pixels.py"/> + <service name="pixels"/> + <reference target="subtract1" name="value"/> + </component> + <component x="270" y="160" name="range1" title="range" color="yellow1"> + <implementation.python script="nuvem/range_.py"/> + <service name="range"/> + <reference target="number1" name="first"/> + <reference target="number2" name="last"/> + </component> + <component x="760" y="260" name="round1" title="round" color="magenta1"> + <implementation.python script="nuvem/round_.py"/> + <service name="round"/> + <reference target="number5" name="n"/> + <reference target="multiply1" name="x"/> + </component> + <component x="630" y="190" name="sin1" title="sin" color="magenta1"> + <implementation.python script="nuvem/sin_.py"/> + <service name="sin"/> + <reference target="multiply2" name="x"/> + </component> + <component x="10" y="0" name="start" title="start" color="green1"> <implementation.python script="nuvem/start.py"/> <service name="start" visible="false"> <binding.http uri="start"/> </service> <reference target="item" name="content"/> </component> + <component x="510" y="210" name="subtract1" title="-" color="magenta1"> + <implementation.python script="nuvem/subtract.py"/> + <service name="subtract"> + <documentation>-</documentation> + </service> + <reference target="number7" name="value1"/> + <reference target="round1" name="value2"/> + </component> + <component x="830" y="380" name="text1" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>rotate({0:g}deg)</property> + </component> + <component x="410" y="330" name="text2" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>alert('Got it!')</property> + </component> + <component x="260" y="0" name="text3" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>http://www.apache.org/images/feather-small.gif</property> + </component> + <component x="480" y="490" name="text4" title=" '{propval}'" color="orange1"> + <implementation.python script="nuvem/text.py"/> + <service name="text"/> + <property>absolute</property> + </component> + <component x="80" y="100" name="true1" title="true" color="orange1"> + <implementation.python script="nuvem/true_.py"/> + <service name="true"/> + </component> + <component x="900" y="440" name="valueof1" title="valueof" color="orange1"> + <implementation.python script="nuvem/valueof.py"/> + <service name="valueof"/> + <property>t</property> + </component> + <component x="730" y="150" name="valueof2" title="valueof" color="orange1"> + <implementation.python script="nuvem/valueof.py"/> + <service name="valueof"/> + <property>t</property> + </component> + <component x="730" y="170" name="valueof3" title="valueof" color="orange1"> + <implementation.python script="nuvem/valueof.py"/> + <service name="valueof"/> + <property>t</property> + </component> + <component x="670" y="20" name="xpos" title="{compname}" color="green1"> + <implementation.python script="nuvem/service.py"/> + <service name="service" visible="false"/> + <reference target="pixels1" name="content"/> + </component> + <component x="670" y="120" name="ypos" title="{compname}" color="green1"> + <implementation.python script="nuvem/service.py"/> + <service name="service" visible="false"/> + <reference target="pixels2" name="content"/> + </component> </composite> diff --git a/sca-cpp/trunk/modules/edit/apps/slice/htdocs/app.html b/sca-cpp/trunk/modules/edit/apps/slice/htdocs/app.html new file mode 100644 index 0000000000..5bd091cd20 --- /dev/null +++ b/sca-cpp/trunk/modules/edit/apps/slice/htdocs/app.html @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<DIV id="page"> + <SPAN id="sprite" class="img" style="position: absolute; top: 0px; left: 2px; "> + <IMG src="/public/img.png"/> + </SPAN> +</DIV> |