summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-08 15:00:02 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-08 15:00:02 +0200
commitedcabbd3f6b9fc7d4697257d4f9c2e18dc7c9534 (patch)
treec4411b5c4af5703b529aefabc24ca8abfd922664 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
parent6c13dd46eabee023b9b852fa9e7897658017e4b8 (diff)
downloadpdf-over-edcabbd3f6b9fc7d4697257d4f9c2e18dc7c9534.tar.gz
pdf-over-edcabbd3f6b9fc7d4697257d4f9c2e18dc7c9534.tar.bz2
pdf-over-edcabbd3f6b9fc7d4697257d4f9c2e18dc7c9534.zip
remove placeholder transparency from config
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java10
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java1
2 files changed, 2 insertions, 9 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
index 7316b91e..b98f4fda 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
@@ -170,6 +170,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
SWTUtils.setFontHeight(lblTransparenzRechts, Constants.TEXT_SIZE_NORMAL);
this.sclTransparenz = new Scale(this.grpSignatur, SWT.HORIZONTAL);
+ this.sclTransparenz.setEnabled(false);
SWTUtils.anchor(sclTransparenz).right(lblTransparenzRechts, -5).top(lblTransparenz, 5).left(lblTransparenzLinks, 5).set();
this.sclTransparenz.setMinimum(0);
this.sclTransparenz.setMaximum(255);
@@ -179,7 +180,6 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.sclTransparenz.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- performPlaceholderTransparency(AdvancedConfigurationComposite.this.sclTransparenz.getSelection());
}
});
@@ -569,10 +569,6 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
}
}
- void performPlaceholderTransparency(int transparency) {
- this.configurationContainer.placeholderTransparency = transparency;
- }
-
void performUpdateCheckSelection(boolean checkUpdate) {
this.configurationContainer.updateCheck = checkUpdate;
this.btnUpdateCheck.setSelection(checkUpdate);
@@ -643,7 +639,6 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.configurationContainer.setUseSignatureFields(provider.getUseSignatureFields());
this.configurationContainer.enabledPlaceholderUsage = provider.getEnablePlaceholderUsage();
this.configurationContainer.signaturePDFACompat = provider.getSignaturePdfACompat();
- this.configurationContainer.placeholderTransparency = provider.getPlaceholderTransparency();
this.configurationContainer.defaultBKU = provider.getDefaultBKUPersistent();
this.configurationContainer.keystoreEnabled = provider.getKeyStoreEnabledPersistent();
@@ -690,7 +685,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
performUseMarkerSelection(this.configurationContainer.getUseMarker());
performUseSignatureFieldsSelection(this.configurationContainer.getUseSignatureFields());
performEnableUsePlaceholder(this.configurationContainer.enabledPlaceholderUsage);
- this.sclTransparenz.setSelection(this.configurationContainer.placeholderTransparency);
+ this.sclTransparenz.setSelection(170); // TODO REPLACE WITH SIGNATURE SCALE
performLocaleSelectionChanged(this.configurationContainer.interfaceLocale);
performPdfACompatSelection(this.configurationContainer.signaturePDFACompat);
performKeystoreEnabledSelection(this.configurationContainer.keystoreEnabled);
@@ -734,7 +729,6 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
store.setUseSignatureFieldsPersistent(this.configurationContainer.getUseSignatureFields());
store.setEnablePlaceholderUsagePersistent(this.configurationContainer.enabledPlaceholderUsage);
store.setSignaturePdfACompatPersistent(this.configurationContainer.signaturePDFACompat);
- store.setPlaceholderTransparency(this.configurationContainer.placeholderTransparency);
store.setDefaultBKUPersistent(this.configurationContainer.defaultBKU);
store.setKeyStoreEnabledPersistent(this.configurationContainer.keystoreEnabled);
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
index 19bbace0..167d50ea 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
@@ -31,7 +31,6 @@ import org.eclipse.swt.events.FocusAdapter;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.MouseAdapter;
import org.eclipse.swt.events.MouseEvent;
-import org.eclipse.swt.events.MouseListener;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;