From 21540b68c6e2088435bd1aa643d1ae543c5e5337 Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Thu, 19 Nov 2020 11:30:08 +0100 Subject: AdvancedConfig extended --- .../composites/AdvancedConfigurationComposite.java | 45 ++++++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java index 3d8d7726..c29abb33 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java @@ -94,12 +94,14 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { List bkuStrings; Button btnKeystoreEnabled; - private Group grpSpeicherort; - private Label lblDefaultOutputFolder; + private final Group grpSpeicherort; + private final Label lblDefaultOutputFolder; Text txtOutputFolder; - private Button btnBrowse; + private final Button btnBrowse; + private final Label lblSaveFilePostFix; + private final Text txtSaveFilePostFix; - private Group grpLocaleAuswahl; + private final Group grpLocaleAuswahl; Combo cmbLocaleAuswahl; private Group grpUpdateCheck; @@ -500,6 +502,41 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { } } }); + + + this.lblSaveFilePostFix = new Label(this.grpSpeicherort, SWT.NONE); + FormData fd_lblSaveFilePostFix = new FormData(); + fd_lblSaveFilePostFix.top = new FormAttachment(this.lblDefaultOutputFolder); + fd_lblSaveFilePostFix.left = new FormAttachment(0, 5); + this.lblSaveFilePostFix.setLayoutData(fd_lblSaveFilePostFix); + + FontData[] fD_lblSaveFilePostFix = this.lblSaveFilePostFix.getFont() + .getFontData(); + fD_lblSaveFilePostFix[0].setHeight(Constants.TEXT_SIZE_NORMAL); + this.lblSaveFilePostFix.setFont(new Font(Display.getCurrent(), + fD_lblSaveFilePostFix[0])); + + this.txtSaveFilePostFix = new Text(this.grpSpeicherort, SWT.NONE); + FormData fd_PostFix = new FormData(); + fd_PostFix.top = new FormAttachment(this.lblSaveFilePostFix, 5); + fd_PostFix.left = new FormAttachment(0, 15); + this.txtSaveFilePostFix.setLayoutData(fd_text); + + FontData[] fD_txtPostFix = this.txtSaveFilePostFix.getFont() + .getFontData(); + fD_txtOutputFolder[0].setHeight(Constants.TEXT_SIZE_NORMAL); + this.txtSaveFilePostFix.setFont(new Font(Display.getCurrent(), + fD_txtOutputFolder[0])); + + this.txtSaveFilePostFix.addFocusListener(new FocusAdapter() { + + @Override + public void focusLost(FocusEvent e) { + //performOutputFolderChanged(AdvancedConfigurationComposite.this.txtSaveFilePostFix + //.getText()); + } + }); + this.grpLocaleAuswahl = new Group(this, SWT.NONE); FormLayout layout_grpLocaleAuswahl = new FormLayout(); -- cgit v1.2.3