mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-13 06:49:36 -04:00
Allows to disable component tool tips on the main panel.
This commit is contained in:
parent
e7a763a510
commit
d2c9cc64fb
@ -593,4 +593,11 @@ public final class Keys {
|
||||
public static final Key.KeyFile SETTINGS_GHDL_PATH
|
||||
= new Key.KeyFile("ghdlPath", new File("ghdl"));
|
||||
|
||||
/**
|
||||
* Avoid component tooltips in the main panel
|
||||
*/
|
||||
public static final Key<Boolean> SETTINGS_NOTOOLTIPS =
|
||||
new Key<>("noComponentToolTips", false);
|
||||
|
||||
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ public final class Settings implements AttributeListener {
|
||||
intList.add(Keys.SETTINGS_DEFAULT_TREESELECT);
|
||||
intList.add(Keys.SETTINGS_GRID);
|
||||
intList.add(Keys.SETTINGS_SHOW_WIRE_BITS);
|
||||
intList.add(Keys.SETTINGS_NOTOOLTIPS);
|
||||
intList.add(Keys.SETTINGS_LIBRARY_PATH);
|
||||
intList.add(Keys.SETTINGS_JAR_PATH);
|
||||
intList.add(Keys.SETTINGS_ATF1502_FITTER);
|
||||
|
@ -533,6 +533,9 @@ public class CircuitComponent extends JComponent implements Circuit.ChangedListe
|
||||
if (p != null)
|
||||
return createPinToolTip(p);
|
||||
|
||||
if (Settings.getInstance().get(Keys.SETTINGS_NOTOOLTIPS))
|
||||
return null;
|
||||
|
||||
try {
|
||||
ElementTypeDescription etd = library.getElementType(ve.getElementName());
|
||||
String tt = etd.getDescription(ve.getElementAttributes());
|
||||
|
@ -1128,6 +1128,10 @@ Sind evtl. die Namen der Variablen nicht eindeutig?</string>
|
||||
<string name="key_dipDefault_tt">Der Vorgabewert des DIP-Schalters, wenn die Simulation gestartet wird.</string>
|
||||
<string name="key_macMouse">Die MacOS Mausklicks verwenden.</string>
|
||||
<string name="key_macMouse_tt">Das unter MacOS übliche STRG-Klick anstelle von Rechtsklick verwenden.</string>
|
||||
<string name="key_noComponentToolTips">Keine ToolTips für Bauteile auf der Arbeitsfläche.</string>
|
||||
<string name="key_noComponentToolTips_tt">Wenn gesetzt, werden keine ToolTips für die Bauteile auf der Arbeitsfläche angezeigt.
|
||||
Vor allem in einer Präsentation können diese ToolTips sehr störend sein.</string>
|
||||
|
||||
|
||||
<string name="mod_insertWire">Leitung eingefügt.</string>
|
||||
<string name="mod_insertCopied">Aus Zwischenablage eingefügt.</string>
|
||||
|
@ -1121,6 +1121,9 @@
|
||||
|
||||
<string name="key_macMouse">Use MacOS mouse clicks.</string>
|
||||
<string name="key_macMouse_tt">Uses CTRL-click instead of right-click.</string>
|
||||
<string name="key_noComponentToolTips">No tool tips for components on the main panel.</string>
|
||||
<string name="key_noComponentToolTips_tt">If set, no tool tips for the components on the main panel are displayed.
|
||||
Especially in a presentation, these tool tips can be very annoying.</string>
|
||||
|
||||
|
||||
<string name="mod_insertWire">Inserted wire.</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user