forked from j62/ctbrec
1
0
Fork 0

Add tooltip for max resolution

This commit is contained in:
0xboobface 2019-02-06 20:53:05 +01:00
parent 351560079b
commit 9245ab6592
1 changed files with 4 additions and 1 deletions

View File

@ -292,8 +292,11 @@ public class SettingsTab extends Tab implements TabSelectionListener {
GridPane.setMargin(splitAfter, new Insets(0, 0, 0, CHECKBOX_MARGIN)); GridPane.setMargin(splitAfter, new Insets(0, 0, 0, CHECKBOX_MARGIN));
l = new Label("Maximum resolution (0 = unlimited)"); l = new Label("Maximum resolution (0 = unlimited)");
Tooltip tt = new Tooltip("video height, e.g. 720 or 1080");
l.setTooltip(tt);
layout.add(l, 0, row); layout.add(l, 0, row);
maxResolution = new TextField(Integer.toString(Config.getInstance().getSettings().maximumResolution)); maxResolution = new TextField(Integer.toString(Config.getInstance().getSettings().maximumResolution));
maxResolution.setTooltip(tt);
maxResolution.textProperty().addListener((observable, oldValue, newValue) -> { maxResolution.textProperty().addListener((observable, oldValue, newValue) -> {
if (!newValue.matches("\\d*")) { if (!newValue.matches("\\d*")) {
maxResolution.setText(newValue.replaceAll("[^\\d]", "")); maxResolution.setText(newValue.replaceAll("[^\\d]", ""));
@ -346,7 +349,7 @@ public class SettingsTab extends Tab implements TabSelectionListener {
GridPane.setMargin(postProcessing, new Insets(0, 0, 0, CHECKBOX_MARGIN)); GridPane.setMargin(postProcessing, new Insets(0, 0, 0, CHECKBOX_MARGIN));
layout.add(postProcessing, 1, row++); layout.add(postProcessing, 1, row++);
Tooltip tt = new Tooltip("Check every x seconds, if a model came online"); tt = new Tooltip("Check every x seconds, if a model came online");
l = new Label("Check online state every (seconds)"); l = new Label("Check online state every (seconds)");
l.setTooltip(tt); l.setTooltip(tt);
layout.add(l, 0, row); layout.add(l, 0, row);