summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:08:50 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:08:50 +0000
commit31c595076c0574bd3f084c68fcd2f9a7ac163477 (patch)
tree5b3cdd263b9c988ebc384c2162376aeee644900e /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
parentc9c5ab74fb8e71b840d4c1584f437fa42d3aea3a (diff)
downloadmocca-31c595076c0574bd3f084c68fcd2f9a7ac163477.tar.gz
mocca-31c595076c0574bd3f084c68fcd2f9a7ac163477.tar.bz2
mocca-31c595076c0574bd3f084c68fcd2f9a7ac163477.zip
Move constants to separate class
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@157 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
index ebb99260..4b118a89 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java
@@ -34,7 +34,6 @@ import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.TraverseEvent;
import org.eclipse.swt.events.TraverseListener;
-import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Image;
@@ -57,6 +56,7 @@ import org.eclipse.swt.widgets.Text;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import at.asit.pdfover.gui.Constants;
import at.asit.pdfover.gui.Messages;
import at.asit.pdfover.gui.controls.ErrorDialog;
import at.asit.pdfover.gui.controls.ErrorMarker;
@@ -97,7 +97,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
FontData[] fD_grpHandySignatur = grpHandySignatur.getFont()
.getFontData();
- fD_grpHandySignatur[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_grpHandySignatur[0].setHeight(Constants.TEXT_SIZE_NORMAL);
grpHandySignatur.setFont(new Font(Display.getCurrent(),
fD_grpHandySignatur[0]));
@@ -109,7 +109,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
.setText(Messages.getString("simple_config.PhoneNumber")); //$NON-NLS-1$
FontData[] fD_lblMobileNumber = lblMobileNumber.getFont().getFontData();
- fD_lblMobileNumber[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_lblMobileNumber[0].setHeight(Constants.TEXT_SIZE_NORMAL);
lblMobileNumber.setFont(new Font(Display.getCurrent(),
fD_lblMobileNumber[0]));
@@ -139,7 +139,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
FontData[] fD_txtMobileNumber = this.txtMobileNumber.getFont()
.getFontData();
- fD_txtMobileNumber[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_txtMobileNumber[0].setHeight(Constants.TEXT_SIZE_NORMAL);
this.txtMobileNumber.setFont(new Font(Display.getCurrent(),
fD_txtMobileNumber[0]));
@@ -174,7 +174,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
grpBildmarke.setText(Messages.getString("simple_config.Emblem_Title")); //$NON-NLS-1$
FontData[] fD_grpBildmarke = grpBildmarke.getFont().getFontData();
- fD_grpBildmarke[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_grpBildmarke[0].setHeight(Constants.TEXT_SIZE_NORMAL);
grpBildmarke
.setFont(new Font(Display.getCurrent(), fD_grpBildmarke[0]));
@@ -200,7 +200,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
@Override
public void paintControl(PaintEvent e) {
// e.gc.setForeground();
- e.gc.setForeground(new Color(getDisplay(),0xB4, 0xCD, 0xEC));
+ e.gc.setForeground(Constants.DROP_BORDER_COLOR);
e.gc.setLineWidth(3);
e.gc.setLineStyle(SWT.LINE_DASH);
e.gc.drawRoundRectangle(e.x, e.y, e.width - 2, e.height - 2,
@@ -254,7 +254,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
});
FontData[] fD_lblEmblem = this.lblEmblem.getFont().getFontData();
- fD_lblEmblem[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_lblEmblem[0].setHeight(Constants.TEXT_SIZE_NORMAL);
this.lblEmblem.setFont(new Font(Display.getCurrent(), fD_lblEmblem[0]));
DropTarget dnd_target = new DropTarget(controlComposite,
@@ -330,7 +330,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
});
FontData[] fD_btnUseImage = this.btnClearImage.getFont().getFontData();
- fD_btnUseImage[0].setHeight(TEXT_SIZE_BUTTON);
+ fD_btnUseImage[0].setHeight(Constants.TEXT_SIZE_BUTTON);
this.btnClearImage.setFont(new Font(Display.getCurrent(),
fD_btnUseImage[0]));
@@ -351,7 +351,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
btnBrowseEmblem.setText(Messages.getString("common.browse")); //$NON-NLS-1$
FontData[] fD_btnBrowseEmblem = btnBrowseEmblem.getFont().getFontData();
- fD_btnBrowseEmblem[0].setHeight(TEXT_SIZE_BUTTON);
+ fD_btnBrowseEmblem[0].setHeight(Constants.TEXT_SIZE_BUTTON);
btnBrowseEmblem.setFont(new Font(Display.getCurrent(),
fD_btnBrowseEmblem[0]));
@@ -365,7 +365,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
grpProxy.setText(Messages.getString("simple_config.Proxy_Title")); //$NON-NLS-1$
FontData[] fD_grpProxy = grpProxy.getFont().getFontData();
- fD_grpProxy[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_grpProxy[0].setHeight(Constants.TEXT_SIZE_NORMAL);
grpProxy.setFont(new Font(Display.getCurrent(), fD_grpProxy[0]));
Label lblNewLabel = new Label(grpProxy, SWT.NONE);
@@ -377,7 +377,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
lblNewLabel.setText(Messages.getString("simple_config.ProxyHost")); //$NON-NLS-1$
FontData[] fD_lblNewLabel = lblNewLabel.getFont().getFontData();
- fD_lblNewLabel[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_lblNewLabel[0].setHeight(Constants.TEXT_SIZE_NORMAL);
lblNewLabel.setFont(new Font(Display.getCurrent(), fD_lblNewLabel[0]));
Composite composite = new Composite(grpProxy, SWT.NONE);
@@ -392,7 +392,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
fd_txtProxyHost.left = new FormAttachment(0, 5);
FontData[] fD_txtProxyHost = this.txtProxyHost.getFont().getFontData();
- fD_txtProxyHost[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_txtProxyHost[0].setHeight(Constants.TEXT_SIZE_NORMAL);
this.txtProxyHost.setFont(new Font(Display.getCurrent(),
fD_txtProxyHost[0]));
@@ -434,7 +434,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
lblNewLabel_1.setText(Messages.getString("simple_config.ProxyPort")); //$NON-NLS-1$
FontData[] fD_lblNewLabel_1 = lblNewLabel_1.getFont().getFontData();
- fD_lblNewLabel_1[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_lblNewLabel_1[0].setHeight(Constants.TEXT_SIZE_NORMAL);
lblNewLabel_1.setFont(new Font(Display.getCurrent(),
fD_lblNewLabel_1[0]));
@@ -452,7 +452,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
this.txtProxyPort.setLayoutData(this.fd_txtProxyPort);
FontData[] fD_txtProxyPort = this.txtProxyPort.getFont().getFontData();
- fD_txtProxyPort[0].setHeight(TEXT_SIZE_NORMAL);
+ fD_txtProxyPort[0].setHeight(Constants.TEXT_SIZE_NORMAL);
this.txtProxyPort.setFont(new Font(Display.getCurrent(),
fD_txtProxyPort[0]));