diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:27:20 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:27:20 +0000 |
commit | 1dafb1445de6728a339c9265c678fd2484bd7dc4 (patch) | |
tree | 090f99d88e10003bb9efe856303f27c987ab29c4 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProvider.java | |
parent | f5776bbea82a2d610f7c088ebb8727288bb55729 (diff) | |
download | mocca-1dafb1445de6728a339c9265c678fd2484bd7dc4.tar.gz mocca-1dafb1445de6728a339c9265c678fd2484bd7dc4.tar.bz2 mocca-1dafb1445de6728a339c9265c678fd2484bd7dc4.zip |
Make main window size configurable
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@331 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProvider.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/ConfigProvider.java | 40 |
1 files changed, 24 insertions, 16 deletions
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 |