mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-27 06:51:37 -04:00
allow multi line text
This commit is contained in:
parent
9bc391d09b
commit
954e96a9bc
@ -5,11 +5,11 @@ planned as v0.13
|
||||
- If an error occurs, the name of the affected circuit file is shown.
|
||||
- An input can have "high z" value as its default value.
|
||||
CAUTION: All default values are lost! If you have built a circuit that contains
|
||||
test cases that depend on a non-null default value, this tests will fail. To
|
||||
resolve this issue, reset the default value.
|
||||
test cases that depend on a non-null default value, this tests will fail. To
|
||||
resolve this issue, reset the default value.
|
||||
- added an enable input to the T flip-flop
|
||||
CAUTION: By default this input is activated now. In circuits which used the T flip-flop
|
||||
in the past, the new input needs to be disabled.
|
||||
in the past, the new input needs to be disabled.
|
||||
- A warning message shows up if a circuit with unnamed inputs/outputs is analysed.
|
||||
- A warning message shows up if a circuit with missing pin numbers is exported to a
|
||||
hardware-related file.
|
||||
@ -17,6 +17,9 @@ planned as v0.13
|
||||
- Comments are allowed in hex files.
|
||||
- Added zooming to measurement graphs.
|
||||
- Test results can be displayed as measurement graphs.
|
||||
- The Text component is able to show multiple lines.
|
||||
CAUTION: If you modify the text in an text component created in the past, you have to
|
||||
reenter the text.
|
||||
|
||||
v0.12.1, released on 05. Jun 2016
|
||||
- added a fuse to simulate a PROM or PAL.
|
||||
|
@ -31,6 +31,10 @@ public class TextShape implements Shape {
|
||||
*/
|
||||
public TextShape(ElementAttributes attr, PinDescriptions inputs, PinDescriptions outputs) {
|
||||
String text = attr.get(Keys.DESCRIPTION);
|
||||
|
||||
if (text.length() == 0) // ToDo: used to show the text from old files.
|
||||
text = attr.getLabel();
|
||||
|
||||
if (text.length() == 0)
|
||||
text = Lang.get("elem_Text");
|
||||
this.text = text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user