From 1dafb1445de6728a339c9265c678fd2484bd7dc4 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:27:20 +0000 Subject: Make main window size configurable git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@331 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../asit/pdfover/gui/workflow/ConfigProvider.java | 40 +++++++++++++--------- 1 file changed, 24 insertions(+), 16 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProvider.java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProvider.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProvider.java index f98edd2e..c5d7fdd7 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProvider.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProvider.java @@ -19,11 +19,13 @@ import java.io.IOException; import java.io.InputStream; import java.util.Locale; +import org.eclipse.swt.graphics.Point; + import at.asit.pdfover.signator.BKUs; import at.asit.pdfover.signator.SignaturePosition; /** - * + * An interface for reading the configuration */ public interface ConfigProvider { /** @@ -31,31 +33,31 @@ public interface ConfigProvider { */ public static final String SIGN_POS_REGEX = "(x=(\\d\\.?\\d?);y=(\\d\\.?\\d?);p=(\\d))|(auto)|(x=(\\d\\.?\\d?);y=(\\d\\.?\\d?))"; //$NON-NLS-1$ - + /** * Gets the configuration file * @return the configuration file */ public String getConfigurationFile(); - + /** * Gets the configuration directory * @return the configuration directory */ public String getConfigurationDirectory(); - + /** * Gets the default Mobile number * @return the default mobile number */ public String getDefaultMobileNumber(); - + /** * Gets the password to use for Mobile BKU * @return the password */ public String getDefaultPassword(); - + /** * Gets the filename of the default emblem * @return the emblem @@ -67,61 +69,67 @@ public interface ConfigProvider { * @return the proxy hostname or ip address */ public String getProxyHost(); - + /** * Gets the proxy port * @return the proxy port */ public int getProxyPort(); - + /** * Get the default configured BKU * @return the default configured BKU */ public BKUs getDefaultBKU(); - + /** * Get the default configured SignaturePosition * @return the default configured SignaturePosition or null if not configured */ public SignaturePosition getDefaultSignaturePosition(); - + /** * Get the transparency of the signature placeholder * @return the transparency of the signature placeholder */ public int getPlaceholderTransparency(); - + /** * Gets the default output folder for signed documents * @return the default output folder */ public String getDefaultOutputFolder(); - + /** * Gets the mobile BKU URL * @return the mobile BKU URL */ public String getMobileBKUURL(); - + /** * Get the signature note text to use * @return the signature note text */ public String getSignatureNote(); - + /** * Gets the configured locale * @return the configured locale */ public Locale getConfigLocale(); - + /** * Gets the configured locale * @return the configured locale */ public Locale getSignLocale(); - + + /** + * Gets the configured MainWindow size + * @return the configured MainWindow size + */ + public Point getMainWindowSize(); + /** * Loads the current configuration to the current configuration file * @param configSource -- cgit v1.2.3