In debug mode also measurement values are shown

This commit is contained in:
hneemann 2016-08-22 17:43:50 +02:00
parent c53c522a71
commit a3fc6845d4
2 changed files with 197 additions and 169 deletions

View File

@ -16,7 +16,7 @@
<string>Zi</string>
</entry>
</elementAttributes>
<pos x="240" y="220"/>
<pos x="240" y="200"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
@ -26,12 +26,21 @@
<string>Zo</string>
</entry>
</elementAttributes>
<pos x="460" y="220"/>
<pos x="460" y="200"/>
</visualElement>
<visualElement>
<elementName>D_FF</elementName>
<elementAttributes/>
<pos x="360" y="140"/>
<elementAttributes>
<entry>
<string>valueIsProbe</string>
<boolean>true</boolean>
</entry>
<entry>
<string>Label</string>
<string>C</string>
</entry>
</elementAttributes>
<pos x="360" y="100"/>
</visualElement>
<visualElement>
<elementName>In</elementName>
@ -55,8 +64,17 @@
</visualElement>
<visualElement>
<elementName>D_FF</elementName>
<elementAttributes/>
<pos x="360" y="220"/>
<elementAttributes>
<entry>
<string>valueIsProbe</string>
<boolean>true</boolean>
</entry>
<entry>
<string>Label</string>
<string>Z</string>
</entry>
</elementAttributes>
<pos x="360" y="200"/>
</visualElement>
<visualElement>
<elementName>In</elementName>
@ -66,7 +84,7 @@
<string>Ci</string>
</entry>
</elementAttributes>
<pos x="240" y="140"/>
<pos x="240" y="100"/>
</visualElement>
<visualElement>
<elementName>Out</elementName>
@ -76,11 +94,20 @@
<string>Co</string>
</entry>
</elementAttributes>
<pos x="460" y="140"/>
<pos x="460" y="100"/>
</visualElement>
<visualElement>
<elementName>D_FF</elementName>
<elementAttributes/>
<elementAttributes>
<entry>
<string>valueIsProbe</string>
<boolean>true</boolean>
</entry>
<entry>
<string>Label</string>
<string>N</string>
</entry>
</elementAttributes>
<pos x="360" y="300"/>
</visualElement>
<visualElement>
@ -114,42 +141,42 @@
<p1 x="340" y="320"/>
<p2 x="360" y="320"/>
</wire>
<wire>
<p1 x="340" y="240"/>
<p2 x="360" y="240"/>
</wire>
<wire>
<p1 x="340" y="160"/>
<p2 x="360" y="160"/>
</wire>
<wire>
<p1 x="240" y="400"/>
<p2 x="260" y="400"/>
</wire>
<wire>
<p1 x="420" y="100"/>
<p2 x="460" y="100"/>
</wire>
<wire>
<p1 x="240" y="100"/>
<p2 x="360" y="100"/>
</wire>
<wire>
<p1 x="240" y="360"/>
<p2 x="260" y="360"/>
</wire>
<wire>
<p1 x="340" y="120"/>
<p2 x="360" y="120"/>
</wire>
<wire>
<p1 x="420" y="200"/>
<p2 x="460" y="200"/>
</wire>
<wire>
<p1 x="240" y="200"/>
<p2 x="360" y="200"/>
</wire>
<wire>
<p1 x="340" y="220"/>
<p2 x="360" y="220"/>
</wire>
<wire>
<p1 x="320" y="380"/>
<p2 x="340" y="380"/>
</wire>
<wire>
<p1 x="420" y="140"/>
<p2 x="460" y="140"/>
</wire>
<wire>
<p1 x="240" y="140"/>
<p2 x="360" y="140"/>
</wire>
<wire>
<p1 x="420" y="220"/>
<p2 x="460" y="220"/>
</wire>
<wire>
<p1 x="240" y="220"/>
<p2 x="360" y="220"/>
</wire>
<wire>
<p1 x="420" y="300"/>
<p2 x="460" y="300"/>
@ -159,16 +186,16 @@
<p2 x="360" y="300"/>
</wire>
<wire>
<p1 x="340" y="160"/>
<p2 x="340" y="240"/>
<p1 x="340" y="120"/>
<p2 x="340" y="220"/>
</wire>
<wire>
<p1 x="340" y="220"/>
<p2 x="340" y="320"/>
</wire>
<wire>
<p1 x="340" y="320"/>
<p2 x="340" y="380"/>
</wire>
<wire>
<p1 x="340" y="240"/>
<p2 x="340" y="320"/>
</wire>
</wires>
</circuit>

View File

@ -1008,6 +1008,7 @@ public class Main extends JFrame implements ClosingWindowListener.ConfirmSave, E
private void setDebug(boolean debug) throws RemoteException {
VisualElement rom = getProgramRomFromCircuit();
rom.getElementAttributes().set(Keys.SHOW_LISTING, debug);
settings.set(Keys.SHOW_DATA_TABLE, debug);
}
@Override