add clickHandler

This commit is contained in:
2023-06-14 14:27:57 +02:00
parent ffc2f67b53
commit 8cc4c9089f
11 changed files with 513 additions and 101 deletions

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="15.1">
<zoom_level>14</zoom_level>
<zoom_level>20</zoom_level>
<element>
<id>UMLSpecialState</id>
<coordinates>
<x>546</x>
<y>140</y>
<w>28</w>
<h>28</h>
<x>1160</x>
<y>200</y>
<w>40</w>
<h>40</h>
</coordinates>
<panel_attributes>type=initial</panel_attributes>
<additional_attributes/>
@ -15,10 +15,10 @@
<element>
<id>UMLState</id>
<coordinates>
<x>210</x>
<y>364</y>
<w>196</w>
<h>56</h>
<x>680</x>
<y>520</y>
<w>280</w>
<h>80</h>
</coordinates>
<panel_attributes>ST_PBPRESSED</panel_attributes>
<additional_attributes/>
@ -26,10 +26,10 @@
<element>
<id>UMLState</id>
<coordinates>
<x>714</x>
<y>364</y>
<w>196</w>
<h>56</h>
<x>1400</x>
<y>520</y>
<w>280</w>
<h>80</h>
</coordinates>
<panel_attributes>ST_PBRELEASED</panel_attributes>
<additional_attributes/>
@ -37,10 +37,10 @@
<element>
<id>Relation</id>
<coordinates>
<x>798</x>
<y>406</y>
<w>126</w>
<h>168</h>
<x>1520</x>
<y>580</y>
<w>180</w>
<h>240</h>
</coordinates>
<panel_attributes>lt=-&gt;
evPBPoll</panel_attributes>
@ -49,10 +49,10 @@ evPBPoll</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>546</x>
<y>154</y>
<w>126</w>
<h>126</h>
<x>1160</x>
<y>220</y>
<w>180</w>
<h>180</h>
</coordinates>
<panel_attributes>lt=-&gt;
evPBInit</panel_attributes>
@ -61,10 +61,10 @@ evPBInit</panel_attributes>
<element>
<id>UMLSpecialState</id>
<coordinates>
<x>532</x>
<y>252</y>
<w>56</w>
<h>56</h>
<x>1140</x>
<y>360</y>
<w>80</w>
<h>80</h>
</coordinates>
<panel_attributes>type=decision</panel_attributes>
<additional_attributes/>
@ -72,10 +72,10 @@ evPBInit</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>294</x>
<y>266</y>
<w>266</w>
<h>126</h>
<x>800</x>
<y>380</y>
<w>380</w>
<h>180</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=[pB==1]</panel_attributes>
@ -84,10 +84,10 @@ m1=[pB==1]</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>294</x>
<y>406</y>
<w>126</w>
<h>126</h>
<x>800</x>
<y>580</y>
<w>180</w>
<h>180</h>
</coordinates>
<panel_attributes>lt=-&gt;
evPBPoll</panel_attributes>
@ -96,10 +96,10 @@ evPBPoll</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>574</x>
<y>266</y>
<w>266</w>
<h>126</h>
<x>1200</x>
<y>380</y>
<w>380</w>
<h>180</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=[pB==0]</panel_attributes>
@ -108,10 +108,10 @@ m1=[pB==0]</panel_attributes>
<element>
<id>UMLSpecialState</id>
<coordinates>
<x>280</x>
<y>504</y>
<w>56</w>
<h>56</h>
<x>780</x>
<y>720</y>
<w>80</w>
<h>80</h>
</coordinates>
<panel_attributes>type=decision</panel_attributes>
<additional_attributes/>
@ -119,10 +119,10 @@ m1=[pB==0]</panel_attributes>
<element>
<id>UMLSpecialState</id>
<coordinates>
<x>784</x>
<y>546</y>
<w>56</w>
<h>56</h>
<x>1500</x>
<y>780</y>
<w>80</w>
<h>80</h>
</coordinates>
<panel_attributes>type=decision</panel_attributes>
<additional_attributes/>
@ -130,10 +130,10 @@ m1=[pB==0]</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>350</x>
<y>308</y>
<w>462</w>
<h>308</h>
<x>880</x>
<y>440</y>
<w>660</w>
<h>440</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=[pB==1] / pbPress()</panel_attributes>
@ -142,10 +142,10 @@ m1=[pB==1] / pbPress()</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>322</x>
<y>308</y>
<w>462</w>
<h>266</h>
<x>840</x>
<y>440</y>
<w>660</w>
<h>380</h>
</coordinates>
<panel_attributes>lt=-&gt;
@ -155,10 +155,10 @@ m1=[pB==0] / pbRelease()</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>154</x>
<y>308</y>
<w>154</w>
<h>266</h>
<x>600</x>
<y>440</y>
<w>220</w>
<h>380</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=[else]</panel_attributes>
@ -167,13 +167,25 @@ m1=[else]</panel_attributes>
<element>
<id>Relation</id>
<coordinates>
<x>826</x>
<y>308</y>
<w>154</w>
<h>308</h>
<x>1560</x>
<y>440</y>
<w>220</w>
<h>440</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=[else]</panel_attributes>
<additional_attributes>10.0;190.0;90.0;190.0;90.0;10.0;30.0;10.0;30.0;40.0</additional_attributes>
</element>
<element>
<id>UMLNote</id>
<coordinates>
<x>1000</x>
<y>880</y>
<w>400</w>
<h>100</h>
</coordinates>
<panel_attributes>pbRelease() &amp; pbPress()
are CallBack Functions</panel_attributes>
<additional_attributes/>
</element>
</diagram>

155
02-UML/ST_CLICK_HANDLER.uxf Normal file
View File

@ -0,0 +1,155 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<diagram program="umlet" version="15.1">
<zoom_level>20</zoom_level>
<element>
<id>UMLSpecialState</id>
<coordinates>
<x>700</x>
<y>20</y>
<w>40</w>
<h>40</h>
</coordinates>
<panel_attributes>type=initial</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>700</x>
<y>40</y>
<w>180</w>
<h>180</h>
</coordinates>
<panel_attributes>lt=-&gt;
evCHInit</panel_attributes>
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>580</x>
<y>180</y>
<w>280</w>
<h>80</h>
</coordinates>
<panel_attributes>ST_WAIT</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>700</x>
<y>240</y>
<w>200</w>
<h>180</h>
</coordinates>
<panel_attributes>lt=-&gt;
evPBPress</panel_attributes>
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>700</x>
<y>440</y>
<w>240</w>
<h>180</h>
</coordinates>
<panel_attributes>lt=-&gt;
evPBRelease</panel_attributes>
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>540</x>
<y>380</y>
<w>360</w>
<h>80</h>
</coordinates>
<panel_attributes>ST_LONG_CLICK</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>540</x>
<y>580</y>
<w>360</w>
<h>80</h>
</coordinates>
<panel_attributes>ST_SINGLE_CLICK</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>UMLState</id>
<coordinates>
<x>540</x>
<y>780</y>
<w>360</w>
<h>80</h>
</coordinates>
<panel_attributes>ST_DOUBLE_CLICK</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>700</x>
<y>640</y>
<w>200</w>
<h>180</h>
</coordinates>
<panel_attributes>lt=-&gt;
evPBPress</panel_attributes>
<additional_attributes>10.0;10.0;10.0;70.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>840</x>
<y>200</y>
<w>560</w>
<h>280</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=evCHtimer / chLongClick()</panel_attributes>
<additional_attributes>30.0;110.0;260.0;110.0;260.0;10.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>840</x>
<y>200</y>
<w>560</w>
<h>480</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=evCHtimer / chSingleClick()</panel_attributes>
<additional_attributes>30.0;210.0;260.0;210.0;260.0;10.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>840</x>
<y>200</y>
<w>560</w>
<h>660</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=evCHtimer / chDoubleClick()</panel_attributes>
<additional_attributes>30.0;300.0;260.0;300.0;260.0;10.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>840</x>
<y>200</y>
<w>560</w>
<h>700</h>
</coordinates>
<panel_attributes>lt=-&gt;
m1=evPBRelease / chDoubleClick()</panel_attributes>
<additional_attributes>30.0;320.0;260.0;320.0;260.0;10.0;10.0;10.0</additional_attributes>
</element>
</diagram>