summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:56 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:56 +0000
commit220fd02d05c701ebfd99c72068cd58b9427a15c4 (patch)
treeb258c91c3487ad667a2ec53b7a8fffa82a018021
parentbd4e8d4b132a1caf6bee6598e3a2375f987beaf4 (diff)
downloadpdf-over-220fd02d05c701ebfd99c72068cd58b9427a15c4.tar.gz
pdf-over-220fd02d05c701ebfd99c72068cd58b9427a15c4.tar.bz2
pdf-over-220fd02d05c701ebfd99c72068cd58b9427a15c4.zip
+ added progress message for waiting composite
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12746 3a0b52a2-8410-0410-bc02-ff6273a87459
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java15
-rw-r--r--trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties1
2 files changed, 14 insertions, 2 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java
index 1b609dc9..b9b74149 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/WaitingComposite.java
@@ -21,8 +21,10 @@ import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.ProgressBar;
+import at.asit.pdfover.gui.Messages;
import at.asit.pdfover.gui.workflow.states.State;
/**
@@ -39,10 +41,19 @@ public class WaitingComposite extends StateComposite {
super(parent, style, state);
setLayout(new FormLayout());
+ Label lbl_description = new Label(this, SWT.NATIVE);
+ FormData fd_lbl_description = new FormData();
+ fd_lbl_description.bottom = new FormAttachment(50, -10);
+ fd_lbl_description.left = new FormAttachment(0, +10);
+ fd_lbl_description.right = new FormAttachment(100, -10);
+ lbl_description.setLayoutData(fd_lbl_description);
+ lbl_description.setAlignment(SWT.CENTER);
+ lbl_description.setText(Messages.getString("waiting.message")); //$NON-NLS-1$
+
ProgressBar progressBar = new ProgressBar(this, SWT.HORIZONTAL | SWT.INDETERMINATE);
FormData fd_progressBar = new FormData();
- fd_progressBar.top = new FormAttachment(50, -15);
- fd_progressBar.bottom = new FormAttachment(50, +15);
+ fd_progressBar.top = new FormAttachment(50, +10);
+ fd_progressBar.bottom = new FormAttachment(50, +40);
fd_progressBar.left = new FormAttachment(50, -100);
fd_progressBar.right = new FormAttachment(50, +100);
progressBar.setLayoutData(fd_progressBar);
diff --git a/trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
index 872eef8a..35d33c01 100644
--- a/trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
+++ b/trunk/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties
@@ -77,6 +77,7 @@ exception.InvalidEmblemFile=is an invalid signature logo file\!
exception.InvalidPort=is invalid has to be between 1 and
exception.PasswordTooLong=Given password is too long\!
exception.PasswordTooShort=Given password is too short\!
+waiting.message=Signature creation in progress ...
main.configuration=Configuration
main.done=Finish
main.position=Positioning