|
22 | 22 | import de.neemann.digital.core.memory.DataFieldConverter; |
23 | 23 | import de.neemann.digital.core.memory.rom.ROMManager; |
24 | 24 | import de.neemann.digital.core.memory.rom.ROMManagerFile; |
| 25 | +import de.neemann.digital.core.wiring.AsyncSeq; |
25 | 26 | import de.neemann.digital.core.wiring.Clock; |
26 | 27 | import de.neemann.digital.draw.graphics.Vector; |
27 | 28 | import de.neemann.digital.draw.graphics.*; |
| 29 | +import de.neemann.digital.draw.library.GenericInitCode; |
28 | 30 | import de.neemann.digital.draw.model.InverterConfig; |
29 | 31 | import de.neemann.digital.draw.shapes.CustomCircuitShapeType; |
30 | 32 | import de.neemann.digital.draw.shapes.Drawable; |
@@ -316,15 +318,21 @@ public void drawTo(Graphic graphic, Collection<Drawable> highLighted, Style high |
316 | 318 | for (Wire w : wires) |
317 | 319 | w.drawTo(graphic, highLighted.contains(w) ? highlight : null); |
318 | 320 | graphic.closeGroup(); |
319 | | - for (VisualElement p : visualElements) { |
320 | | - if (!presentingMode || !p.equalsDescription(TestCaseElement.DESCRIPTION)) { |
| 321 | + for (VisualElement ve : visualElements) { |
| 322 | + if (!presentingMode || !hideInPresentationMode(ve)) { |
321 | 323 | graphic.openGroup(); |
322 | | - p.drawTo(graphic, highLighted.contains(p) ? highlight : null); |
| 324 | + ve.drawTo(graphic, highLighted.contains(ve) ? highlight : null); |
323 | 325 | graphic.closeGroup(); |
324 | 326 | } |
325 | 327 | } |
326 | 328 | } |
327 | 329 |
|
| 330 | + private boolean hideInPresentationMode(VisualElement ve) { |
| 331 | + return ve.equalsDescription(TestCaseElement.DESCRIPTION) |
| 332 | + || ve.equalsDescription(GenericInitCode.DESCRIPTION) |
| 333 | + || ve.equalsDescription(AsyncSeq.DESCRIPTION); |
| 334 | + } |
| 335 | + |
328 | 336 | /** |
329 | 337 | * Adds a ne VisualElement |
330 | 338 | * |
|
0 commit comments