summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:07:29 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:07:29 +0000
commitc4c8c4ce5e2ac5a01cef25d2929d7ab882bd1499 (patch)
tree8dcfe05bc3a7f5d407ecc6c094fb6b64b5cf7e5e /pdf-over-gui/src
parent9a018374d7eae5b662217e5da953f021af08cf4c (diff)
downloadpdf-over-c4c8c4ce5e2ac5a01cef25d2929d7ab882bd1499.tar.gz
pdf-over-c4c8c4ce5e2ac5a01cef25d2929d7ab882bd1499.tar.bz2
pdf-over-c4c8c4ce5e2ac5a01cef25d2929d7ab882bd1499.zip
Add label to transparency scale
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@144 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java41
-rw-r--r--pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties3
2 files changed, 40 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 1ce3a781..7cc49d18 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
@@ -113,11 +113,44 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite {
});
log.debug(this.btnAutomatischePositionierung.getBounds().toString());
+ Label lblTransparenz = new Label(grpSignatur, SWT.HORIZONTAL);
+ FormData fd_lblTransparenz = new FormData();
+ fd_lblTransparenz.top = new FormAttachment(this.btnAutomatischePositionierung, 5);
+ fd_lblTransparenz.left = new FormAttachment(0, 5);
+ lblTransparenz.setLayoutData(fd_lblTransparenz);
+ lblTransparenz.setText(Messages.getString("advanced_config.SigPHTransparency")); //$NON-NLS-1$
+
+ FontData[] fD_lblTransparenz = lblTransparenz.getFont().getFontData();
+ fD_lblTransparenz[0].setHeight(TEXT_SIZE_NORMAL);
+ lblTransparenz.setFont(new Font(Display.getCurrent(), fD_lblTransparenz[0]));
+
+ Label lblTransparenzLinks = new Label(grpSignatur, SWT.HORIZONTAL);
+ FormData fd_lblTransparenzLinks = new FormData();
+ fd_lblTransparenzLinks.top = new FormAttachment(lblTransparenz, 5);
+ fd_lblTransparenzLinks.left = new FormAttachment(0, 15);
+ lblTransparenzLinks.setLayoutData(fd_lblTransparenzLinks);
+ lblTransparenzLinks.setText(Messages.getString("advanced_config.SigPHTransparencyMin")); //$NON-NLS-1$
+
+ FontData[] fD_lblTransparenzLinks = lblTransparenzLinks.getFont().getFontData();
+ fD_lblTransparenzLinks[0].setHeight(TEXT_SIZE_NORMAL);
+ lblTransparenzLinks.setFont(new Font(Display.getCurrent(), fD_lblTransparenzLinks[0]));
+
+ Label lblTransparenzRechts = new Label(grpSignatur, SWT.HORIZONTAL);
+ FormData fd_lblTransparenzRechts = new FormData();
+ fd_lblTransparenzRechts.top = new FormAttachment(lblTransparenz, 5);
+ fd_lblTransparenzRechts.right = new FormAttachment(100, -5);
+ lblTransparenzRechts.setLayoutData(fd_lblTransparenzRechts);
+ lblTransparenzRechts.setText(Messages.getString("advanced_config.SigPHTransparencyMax")); //$NON-NLS-1$
+
+ FontData[] fD_lblTransparenzRechts = lblTransparenzRechts.getFont().getFontData();
+ fD_lblTransparenzRechts[0].setHeight(TEXT_SIZE_NORMAL);
+ lblTransparenzRechts.setFont(new Font(Display.getCurrent(), fD_lblTransparenzRechts[0]));
+
this.sclTransparenz = new Scale(grpSignatur, SWT.HORIZONTAL);
FormData fd_sldTransparenz = new FormData();
- fd_sldTransparenz.right = new FormAttachment(100, -5);
- fd_sldTransparenz.top = new FormAttachment(this.btnAutomatischePositionierung, 5);
- fd_sldTransparenz.left = new FormAttachment(0, 5);
+ fd_sldTransparenz.right = new FormAttachment(lblTransparenzRechts, -5);
+ fd_sldTransparenz.top = new FormAttachment(lblTransparenz, 5);
+ fd_sldTransparenz.left = new FormAttachment(lblTransparenzLinks, 5);
this.sclTransparenz.setLayoutData(fd_sldTransparenz);
this.sclTransparenz.setMinimum(0);
this.sclTransparenz.setMaximum(255);
@@ -211,7 +244,7 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite {
this.txtOutputFolder = new Text(grpSpeicherort, SWT.BORDER);
FormData fd_text = new FormData();
fd_text.top = new FormAttachment(lblDefaultOutputFolder, 5);
- fd_text.left = new FormAttachment(0, 5);
+ fd_text.left = new FormAttachment(0, 15);
this.txtOutputFolder.setLayoutData(fd_text);
FontData[] fD_txtOutputFolder = this.txtOutputFolder.getFont().getFontData();
diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
index a789bddb..247e9671 100644
--- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
+++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
@@ -12,6 +12,9 @@ advanced_config.OutputFolder=Default output folder\:
advanced_config.OutputFolder.Dialog=Select a folder
advanced_config.OutputFolder.Dialog_Title=Select Output folder
advanced_config.OutputFolder_Title=Output location
+advanced_config.SigPHTransparency=Signature placeholder transparency
+advanced_config.SigPHTransparencyMax=Opaque
+advanced_config.SigPHTransparencyMin=Invisible
argument.error.output=is not a directory
argument.help.bku=Select the BKU to use values are\: LOCAL, MOBILE (example\: -b <option>
argument.help.config=Defines which configuration file to use. Example\: -c <config file>