From 53f7ac73fbb1810770cbf68eb87e3db165245e64 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Wed, 17 Oct 2012 18:19:45 +0200 Subject: Move izpack stuff to resources, add icons dir --- trunk/pdf-over-gui/src/main/izpack/install.xml | 68 ---------------------- .../src/main/izpack/unix_shortcutSpec.xml | 29 --------- .../src/main/izpack/win_shortcutSpec.xml | 29 --------- .../src/main/resources/icons/delete_me | 0 .../src/main/resources/izpack/install.xml | 68 ++++++++++++++++++++++ .../main/resources/izpack/unix_shortcutSpec.xml | 29 +++++++++ .../src/main/resources/izpack/win_shortcutSpec.xml | 29 +++++++++ .../src/main/resources/scripts/pdfover_linux.sh | 2 + .../src/main/resources/scripts/pdfover_mac.sh | 2 + .../src/main/resources/scripts/pdfover_win.bat | 1 + .../pdf-over-gui/src/main/scripts/pdfover_linux.sh | 2 - trunk/pdf-over-gui/src/main/scripts/pdfover_mac.sh | 2 - .../pdf-over-gui/src/main/scripts/pdfover_win.bat | 1 - 13 files changed, 131 insertions(+), 131 deletions(-) delete mode 100644 trunk/pdf-over-gui/src/main/izpack/install.xml delete mode 100644 trunk/pdf-over-gui/src/main/izpack/unix_shortcutSpec.xml delete mode 100644 trunk/pdf-over-gui/src/main/izpack/win_shortcutSpec.xml create mode 100644 trunk/pdf-over-gui/src/main/resources/icons/delete_me create mode 100644 trunk/pdf-over-gui/src/main/resources/izpack/install.xml create mode 100644 trunk/pdf-over-gui/src/main/resources/izpack/unix_shortcutSpec.xml create mode 100644 trunk/pdf-over-gui/src/main/resources/izpack/win_shortcutSpec.xml create mode 100644 trunk/pdf-over-gui/src/main/resources/scripts/pdfover_linux.sh create mode 100644 trunk/pdf-over-gui/src/main/resources/scripts/pdfover_mac.sh create mode 100644 trunk/pdf-over-gui/src/main/resources/scripts/pdfover_win.bat delete mode 100644 trunk/pdf-over-gui/src/main/scripts/pdfover_linux.sh delete mode 100644 trunk/pdf-over-gui/src/main/scripts/pdfover_mac.sh delete mode 100644 trunk/pdf-over-gui/src/main/scripts/pdfover_win.bat (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/izpack/install.xml b/trunk/pdf-over-gui/src/main/izpack/install.xml deleted file mode 100644 index 002584ca..00000000 --- a/trunk/pdf-over-gui/src/main/izpack/install.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - PDFOver - 4.0 - - 1.6 - - - - - http://www.a-sit.at/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Main Installation - - - - - - - - - - \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/izpack/unix_shortcutSpec.xml b/trunk/pdf-over-gui/src/main/izpack/unix_shortcutSpec.xml deleted file mode 100644 index 05e8bee8..00000000 --- a/trunk/pdf-over-gui/src/main/izpack/unix_shortcutSpec.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/izpack/win_shortcutSpec.xml b/trunk/pdf-over-gui/src/main/izpack/win_shortcutSpec.xml deleted file mode 100644 index 8ad6666f..00000000 --- a/trunk/pdf-over-gui/src/main/izpack/win_shortcutSpec.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/resources/icons/delete_me b/trunk/pdf-over-gui/src/main/resources/icons/delete_me new file mode 100644 index 00000000..e69de29b diff --git a/trunk/pdf-over-gui/src/main/resources/izpack/install.xml b/trunk/pdf-over-gui/src/main/resources/izpack/install.xml new file mode 100644 index 00000000..002584ca --- /dev/null +++ b/trunk/pdf-over-gui/src/main/resources/izpack/install.xml @@ -0,0 +1,68 @@ + + + + + + PDFOver + 4.0 + + 1.6 + + + + + http://www.a-sit.at/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Main Installation + + + + + + + + + + \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/resources/izpack/unix_shortcutSpec.xml b/trunk/pdf-over-gui/src/main/resources/izpack/unix_shortcutSpec.xml new file mode 100644 index 00000000..05e8bee8 --- /dev/null +++ b/trunk/pdf-over-gui/src/main/resources/izpack/unix_shortcutSpec.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/resources/izpack/win_shortcutSpec.xml b/trunk/pdf-over-gui/src/main/resources/izpack/win_shortcutSpec.xml new file mode 100644 index 00000000..8ad6666f --- /dev/null +++ b/trunk/pdf-over-gui/src/main/resources/izpack/win_shortcutSpec.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_linux.sh b/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_linux.sh new file mode 100644 index 00000000..b785db7c --- /dev/null +++ b/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_linux.sh @@ -0,0 +1,2 @@ +#!/bin/sh +java -cp "lib/*" at.asit.pdfover.gui.Main \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_mac.sh b/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_mac.sh new file mode 100644 index 00000000..b785db7c --- /dev/null +++ b/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_mac.sh @@ -0,0 +1,2 @@ +#!/bin/sh +java -cp "lib/*" at.asit.pdfover.gui.Main \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_win.bat b/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_win.bat new file mode 100644 index 00000000..222bd263 --- /dev/null +++ b/trunk/pdf-over-gui/src/main/resources/scripts/pdfover_win.bat @@ -0,0 +1 @@ +..\lib\pdf-over-gui-4.0.0-SNAPSHOT.jar %* \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/scripts/pdfover_linux.sh b/trunk/pdf-over-gui/src/main/scripts/pdfover_linux.sh deleted file mode 100644 index b785db7c..00000000 --- a/trunk/pdf-over-gui/src/main/scripts/pdfover_linux.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -java -cp "lib/*" at.asit.pdfover.gui.Main \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/scripts/pdfover_mac.sh b/trunk/pdf-over-gui/src/main/scripts/pdfover_mac.sh deleted file mode 100644 index b785db7c..00000000 --- a/trunk/pdf-over-gui/src/main/scripts/pdfover_mac.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -java -cp "lib/*" at.asit.pdfover.gui.Main \ No newline at end of file diff --git a/trunk/pdf-over-gui/src/main/scripts/pdfover_win.bat b/trunk/pdf-over-gui/src/main/scripts/pdfover_win.bat deleted file mode 100644 index 222bd263..00000000 --- a/trunk/pdf-over-gui/src/main/scripts/pdfover_win.bat +++ /dev/null @@ -1 +0,0 @@ -..\lib\pdf-over-gui-4.0.0-SNAPSHOT.jar %* \ No newline at end of file -- cgit v1.2.3 From 1b21c58a97db6be37186690a7e830dde1e6ad97e Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 18 Oct 2012 08:46:13 +0200 Subject: Set foreground color to black --- .../src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java index 5ee261f1..a3e95e23 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java @@ -83,7 +83,8 @@ public abstract class MainBarButton extends Canvas { this.inactiveBackground = new Color(getDisplay(),0xD4, 0xE7, 0xF1); this.activeBackground1 = new Color(getDisplay(),0x6B, 0xA5, 0xD9); this.activeBackground = new Color(getDisplay(),0xB4, 0xCD, 0xEC); - this.textColor = this.getForeground(); + //this.textColor = this.getForeground(); + this.textColor = new Color(getDisplay(), 0x00, 0x00, 0x00); this.borderColor = new Color(getDisplay(), 0xf9, 0xf9, 0xf9); this.inactiveText = new Color(getDisplay(), 0x40, 0x40, 0x40); this.textsize = StateComposite.TEXT_SIZE_BUTTON; -- cgit v1.2.3 From edd77362bcc7592f749608bf34761fc6c7aa4d80 Mon Sep 17 00:00:00 2001 From: vkrnjic Date: Thu, 18 Oct 2012 13:29:28 +0200 Subject: pdf-over icon for 256 x 256 --- .../src/main/resources/img/pdf-over-icon.png | Bin 13796 -> 14903 bytes 1 file changed, 0 insertions(+), 0 deletions(-) (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/resources/img/pdf-over-icon.png b/trunk/pdf-over-gui/src/main/resources/img/pdf-over-icon.png index ceffae90..d74070d4 100644 Binary files a/trunk/pdf-over-gui/src/main/resources/img/pdf-over-icon.png and b/trunk/pdf-over-gui/src/main/resources/img/pdf-over-icon.png differ -- cgit v1.2.3 From 3032162bb2d76b0b4ac5d2e8abe7f9731a0768e9 Mon Sep 17 00:00:00 2001 From: vkrnjic Date: Thu, 18 Oct 2012 15:59:44 +0200 Subject: 96x96 icon --- .../pdf-over-gui/src/main/resources/icons/icon96x96.png | Bin 0 -> 4091 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 trunk/pdf-over-gui/src/main/resources/icons/icon96x96.png (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/resources/icons/icon96x96.png b/trunk/pdf-over-gui/src/main/resources/icons/icon96x96.png new file mode 100644 index 00000000..e4a3df8a Binary files /dev/null and b/trunk/pdf-over-gui/src/main/resources/icons/icon96x96.png differ -- cgit v1.2.3 From d843a72193d30509157b9bd8a439cd975bfef8a0 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 23 Oct 2012 08:30:58 +0200 Subject: + Color changed for drop border, + removed pack in BKUSelectionComposite + using default background color as mainbar border color --- .../java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java | 3 ++- .../java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java | 2 +- .../src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java index c59d50f9..a7a1b6aa 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java @@ -41,6 +41,7 @@ import at.asit.pdfover.signator.BKUs; */ public class BKUSelectionComposite extends StateComposite { + public static final int btnMargin = 2; /** * Listener for local bku selection @@ -151,7 +152,7 @@ public class BKUSelectionComposite extends StateComposite { btn_card.setImage(karte); - this.pack(); + //this.pack(); } @Override diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java index dffa38e7..fd466897 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java @@ -142,7 +142,7 @@ public class DataSourceSelectComposite extends StateComposite { Rectangle clientArea = DataSourceSelectComposite.this .drop_area.getClientArea(); - e.gc.setForeground(new Color(getDisplay(), 0x7E, 0x9F, 0xA5)); + e.gc.setForeground(new Color(getDisplay(),0x6B, 0xA5, 0xD9)); e.gc.setLineStyle(SWT.LINE_DASH); e.gc.drawRoundRectangle(clientArea.x, clientArea.y, clientArea.width - 2, clientArea.height - 2, diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java index a3e95e23..32b44a78 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java @@ -85,7 +85,8 @@ public abstract class MainBarButton extends Canvas { this.activeBackground = new Color(getDisplay(),0xB4, 0xCD, 0xEC); //this.textColor = this.getForeground(); this.textColor = new Color(getDisplay(), 0x00, 0x00, 0x00); - this.borderColor = new Color(getDisplay(), 0xf9, 0xf9, 0xf9); + //this.borderColor = new Color(getDisplay(), 0xf9, 0xf9, 0xf9); + this.borderColor = this.getBackground(); this.inactiveText = new Color(getDisplay(), 0x40, 0x40, 0x40); this.textsize = StateComposite.TEXT_SIZE_BUTTON; -- cgit v1.2.3 From b8ce94f8e7392124e7f0db6c2558dfda66ea6c22 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 23 Oct 2012 08:31:32 +0200 Subject: + try to fix mainbar repaint issue for windows platform --- .../main/java/at/asit/pdfover/gui/MainWindow.java | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index 2bf827b6..fb29ae9b 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java @@ -101,6 +101,8 @@ public class MainWindow { private FormData mainBarFormData; + private Composite mainbar; + /** * Default constructor * @@ -191,16 +193,16 @@ public class MainWindow { getShell().setLayout(new FormLayout()); - Composite composite = new Composite(getShell(), SWT.NONE); - composite.setLayout(new FormLayout()); + this.mainbar = new Composite(getShell(), SWT.NONE); + this.mainbar.setLayout(new FormLayout()); this.mainBarFormData = new FormData(); this.mainBarFormData.left = new FormAttachment(0, 10); this.mainBarFormData.right = new FormAttachment(100, -10); this.mainBarFormData.top = new FormAttachment(0, 10); this.mainBarFormData.bottom = new FormAttachment(0, 67); - composite.setLayoutData(this.mainBarFormData); + this.mainbar.setLayoutData(this.mainBarFormData); - this.btn_config = new MainBarRectangleButton(composite, SWT.NONE); + this.btn_config = new MainBarRectangleButton(this.mainbar, SWT.NONE); FormData fd_btn_config = new FormData(); fd_btn_config.bottom = new FormAttachment(100); fd_btn_config.right = new FormAttachment(0, 57); @@ -236,7 +238,7 @@ public class MainWindow { this.btn_config.setImage(new Image(Display.getDefault(), new ImageData( is))); - this.btn_open = new MainBarStartButton(composite, SWT.NONE); + this.btn_open = new MainBarStartButton(this.mainbar, SWT.NONE); FormData fd_btn_open = new FormData(); fd_btn_open.bottom = new FormAttachment(100); fd_btn_open.right = new FormAttachment(35, (MainBarButton.SplitFactor / 2)); @@ -265,7 +267,7 @@ public class MainWindow { }); this.buttonMap.put(Buttons.OPEN, this.btn_open); - this.btn_position = new MainBarMiddleButton(composite, SWT.NONE); + this.btn_position = new MainBarMiddleButton(this.mainbar, SWT.NONE); FormData fd_btn_position = new FormData(); fd_btn_position.bottom = new FormAttachment(100); fd_btn_position.right = new FormAttachment(60, (MainBarButton.SplitFactor / 2)); @@ -294,7 +296,7 @@ public class MainWindow { }); this.buttonMap.put(Buttons.POSITION, this.btn_position); - this.btn_sign = new MainBarMiddleButton(composite, SWT.NONE); + this.btn_sign = new MainBarMiddleButton(this.mainbar, SWT.NONE); FormData fd_btn_sign = new FormData(); fd_btn_sign.bottom = new FormAttachment(100); fd_btn_sign.right = new FormAttachment(85, (MainBarButton.SplitFactor / 2)); @@ -323,7 +325,7 @@ public class MainWindow { }); this.buttonMap.put(Buttons.SIGN, this.btn_sign); - MainBarEndButton end = new MainBarEndButton(composite, SWT.NONE); + MainBarEndButton end = new MainBarEndButton(this.mainbar, SWT.NONE); FormData fd_btn_end = new FormData(); fd_btn_end.bottom = new FormAttachment(100); fd_btn_end.right = new FormAttachment(100); @@ -371,6 +373,8 @@ public class MainWindow { } else { this.mainBarFormData.bottom = new FormAttachment(0, 0); } + + this.mainbar.redraw(); } /** -- cgit v1.2.3 From 86f1565d19616563bfa492a3f7ab56135a2f7d7f Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 23 Oct 2012 09:10:47 +0200 Subject: + fixed windows mainbar redraw issue --- trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index fb29ae9b..c8455d3f 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java @@ -205,7 +205,7 @@ public class MainWindow { this.btn_config = new MainBarRectangleButton(this.mainbar, SWT.NONE); FormData fd_btn_config = new FormData(); fd_btn_config.bottom = new FormAttachment(100); - fd_btn_config.right = new FormAttachment(0, 57); + fd_btn_config.right = new FormAttachment(0, 50); fd_btn_config.top = new FormAttachment(0); fd_btn_config.left = new FormAttachment(0); this.btn_config.setLayoutData(fd_btn_config); @@ -374,6 +374,8 @@ public class MainWindow { this.mainBarFormData.bottom = new FormAttachment(0, 0); } + this.getShell().getDisplay().update(); + this.mainbar.layout(true, true); this.mainbar.redraw(); } -- cgit v1.2.3 From e96e9dd6bcab614a60fa491ef68017bea4862af3 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 23 Oct 2012 15:46:53 +0200 Subject: + added Signator Placeholder generation for PDF-AS: check: SignatureParameter.getPlaceholder() --- .../at/asit/pdfover/gui/controls/MainBarButton.java | 20 ++++++++++++++++---- .../asit/pdfover/gui/workflow/states/OpenState.java | 8 +++++++- 2 files changed, 23 insertions(+), 5 deletions(-) (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java index 32b44a78..5c7af927 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/MainBarButton.java @@ -309,7 +309,7 @@ public abstract class MainBarButton extends Canvas { */ protected void paintText(PaintEvent e) { Point size = this.getSize(); - int height = size.y - 2; + int height = size.y; int width = size.x; @@ -351,9 +351,21 @@ public abstract class MainBarButton extends Canvas { e.gc.setForeground(current); } else { - int imgx = (width - height) / 2; - Image tmp = new Image(getDisplay(), this.image.getImageData()); - e.gc.drawImage(tmp, imgx, 0); + + //log.debug("Width: " + width + " Height: " + height); + + int w = 0; + Image tmp = null; + if(this.image.getImageData().width < width) { + tmp = new Image(getDisplay(), this.image.getImageData()); + w = (width - this.image.getImageData().width) / 2; + } else if(this.image.getImageData().width > width) { + tmp = new Image(getDisplay(), this.image.getImageData().scaledTo(width, width)); + } else { + tmp = new Image(getDisplay(), this.image.getImageData()); + } + + e.gc.drawImage(tmp, w, w); } } diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java index 08212c8f..a158d7ca 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java @@ -26,6 +26,9 @@ import at.asit.pdfover.gui.composites.DataSourceSelectComposite; import at.asit.pdfover.gui.workflow.ConfigProvider; import at.asit.pdfover.gui.workflow.StateMachine; import at.asit.pdfover.gui.workflow.Status; +import at.asit.pdfover.signator.FileNameEmlbem; +import at.asit.pdfover.signator.SignatureException; +import at.asit.pdfover.signator.SignatureParameter; /** * Selects the data source for the signature process. @@ -58,6 +61,9 @@ public class OpenState extends State { @Override public void run() { + + + Status status = this.stateMachine.getStatus(); if (!(status.getPreviousState() instanceof PrepareConfigurationState) && !(status.getPreviousState() instanceof OpenState)) @@ -67,7 +73,7 @@ public class OpenState extends State { status.setDocument(null); status.setSignaturePosition(config.getDefaultSignaturePosition()); } - + if (status.getDocument() == null) { DataSourceSelectComposite selection = this .getSelectionComposite(); -- cgit v1.2.3 From 74ff027ae135c9280912009d23cbd9945121b088 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 23 Oct 2012 17:00:12 +0200 Subject: + fixed Warnings --- .../gui/composites/BKUSelectionComposite.java | 31 +++- .../pdfover/gui/workflow/states/OpenState.java | 3 - .../workflow/states/PrepareConfigurationState.java | 4 +- .../at/asit/pdfover/gui/messages.properties | 188 +++++++++------------ 4 files changed, 112 insertions(+), 114 deletions(-) (limited to 'trunk/pdf-over-gui/src') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java index a7a1b6aa..522b3bad 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/BKUSelectionComposite.java @@ -41,6 +41,9 @@ import at.asit.pdfover.signator.BKUs; */ public class BKUSelectionComposite extends StateComposite { + /** + * Margin for button + */ public static final int btnMargin = 2; /** @@ -115,12 +118,12 @@ public class BKUSelectionComposite extends StateComposite { Button btn_mobile = new Button(this, SWT.NATIVE | SWT.RESIZE); - btn_mobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$ + //btn_mobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$ //Point mobile_size = btn_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT); FormData fd_btn_mobile = new FormData(); //fd_btn_mobile.left = new FormAttachment(40, 0); fd_btn_mobile.right = new FormAttachment(50, -5); - fd_btn_mobile.top = new FormAttachment(40, 0); + fd_btn_mobile.top = new FormAttachment(40, -20); //fd_btn_mobile.bottom = new FormAttachment(55, 0); btn_mobile.setLayoutData(fd_btn_mobile); btn_mobile.addSelectionListener(new MobileSelectionListener()); @@ -134,12 +137,12 @@ public class BKUSelectionComposite extends StateComposite { btn_mobile.setFont(new Font(Display.getCurrent(), fD_btn_mobile[0])); Button btn_card = new Button(this, SWT.NATIVE | SWT.RESIZE); - btn_card.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$ + //btn_card.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$ //Point card_size = btn_card.computeSize(SWT.DEFAULT, SWT.DEFAULT); FormData fd_btn_card = new FormData(); fd_btn_card.left = new FormAttachment(50, 5); //fd_btn_card.right = new FormAttachment(60, 0); - fd_btn_card.top = new FormAttachment(40, 0); + fd_btn_card.top = new FormAttachment(40, -20); //fd_btn_card.bottom = new FormAttachment(55, 0); btn_card.setLayoutData(fd_btn_card); btn_card.addSelectionListener(new LocalSelectionListener()); @@ -152,6 +155,25 @@ public class BKUSelectionComposite extends StateComposite { btn_card.setImage(karte); + Button btnMobile = new Button(this, SWT.NONE); + FormData fd_btnMobile = new FormData(); + fd_btnMobile.top = new FormAttachment(btn_mobile, 10); + //fd_btnMobile.left = new FormAttachment(btn_mobile, 0); + fd_btnMobile.right = new FormAttachment(50, -5); + fd_btnMobile.width = btn_mobile.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; + btnMobile.setLayoutData(fd_btnMobile); + btnMobile.setText(Messages.getString("bku_selection.mobile")); //$NON-NLS-1$ + btnMobile.addSelectionListener(new MobileSelectionListener()); + + Button btnCard = new Button(this, SWT.NONE); + FormData fd_btnCard = new FormData(); + fd_btnCard.top = new FormAttachment(btn_card, 10); + //fd_btnMobile.left = new FormAttachment(btn_mobile, 0); + fd_btnCard.left = new FormAttachment(50, 5); + fd_btnCard.width = btn_card.computeSize(SWT.DEFAULT, SWT.DEFAULT).x; + btnCard.setLayoutData(fd_btnCard); + btnCard.setText(Messages.getString("bku_selection.card")); //$NON-NLS-1$ + btnCard.addSelectionListener(new LocalSelectionListener()); //this.pack(); } @@ -167,5 +189,4 @@ public class BKUSelectionComposite extends StateComposite { public void doLayout() { this.layout(true, true); } - } diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java index a158d7ca..cafcc64e 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/OpenState.java @@ -26,9 +26,6 @@ import at.asit.pdfover.gui.composites.DataSourceSelectComposite; import at.asit.pdfover.gui.workflow.ConfigProvider; import at.asit.pdfover.gui.workflow.StateMachine; import at.asit.pdfover.gui.workflow.Status; -import at.asit.pdfover.signator.FileNameEmlbem; -import at.asit.pdfover.signator.SignatureException; -import at.asit.pdfover.signator.SignatureParameter; /** * Selects the data source for the signature process. diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java index 92cdb774..b4398581 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java @@ -170,7 +170,7 @@ public class PrepareConfigurationState extends State { log.error( "Failed to write PDF Over config file to config directory", e); //$NON-NLS-1$ throw new InitializationException( - "Failed to write PDF Over config file to config directory", + "Failed to write PDF Over config file to config directory", //$NON-NLS-1$ e); } finally { if (pdfOverConfig != null) { @@ -201,7 +201,7 @@ public class PrepareConfigurationState extends State { log.error( "Failed to create local configuration directory!", e); //$NON-NLS-1$ throw new InitializationException( - "Failed to create local configuration directory!", + "Failed to create local configuration directory!", //$NON-NLS-1$ e); } allOK = true; 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 7f7e8590..643d3cff 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 @@ -1,117 +1,97 @@ +#Eclipse messages class +#Tue Oct 23 16:04:42 CEST 2012 +BKU.LOCAL=Local BKU +BKU.MOBILE=Mobile BKU +BKU.NONE=no default +BKUSelectionComposite.btnMobile.text=MOBILE TrustedSocketFactory.FailedToCreateSecureConnection=Failed to create secure network connection - -main.title=PDF-Over -main.configuration=Configuration -main.position=Positioning -main.signature=Signing -main.done=Finish - -common.browse=browse +advanced_config.AutoPosition=Automatic positioning +advanced_config.AutoPosition_Title=Positioning +advanced_config.BKUSelection_Title=BKU Selection +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 +argument.error.output=is not a directory +argument.help.bku=Select the BKU to use values are\: LOCAL, MOBILE (example\: -b