From 0621f88c65f32d1a43cc206596d3938f9b1752f9 Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Thu, 26 Nov 2020 10:52:25 +0100 Subject: Adaption when using official signature --- .../asit/pdfover/gui/composites/AdvancedConfigurationComposite.java | 5 ++++- .../at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'pdf-over-gui') 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 79523afe..31348dd3 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 @@ -755,6 +755,10 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { this.btnSignatureFieldsUsage.setEnabled(enable); this.configurationContainer.setEnablePlaceholderUsage(enable); this.btnEnablePlaceholderUsage.setSelection(enable); + if (!enable){ + this.btnPlatzhalterVerwenden.setSelection(false); + this.btnSignatureFieldsUsage.setSelection(false); + } } void performPdfACompatSelection(boolean compat) { @@ -937,7 +941,6 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { public void performSetSignatureProfile(Profile profile) { switch (profile) { case INVISIBLE: - case AMTSSIGNATURBLOCK: this.performPositionSelection(true); this.btnAutomatischePositionierung.setEnabled(false); this.btnEnablePlaceholderUsage.setEnabled(false); diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java index da0a1f91..269f72d3 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java @@ -885,6 +885,8 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { store.setSignatureNote(this.configurationContainer.getSignatureNote()); store.setSignatureProfile(this.configurationContainer.getSignatureProfile().name()); + + } /* -- cgit v1.2.3