summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.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/Constants.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/Constants.java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java73
1 files changed, 73 insertions, 0 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java
new file mode 100644
index 00000000..6924b435
--- /dev/null
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java
@@ -0,0 +1,73 @@
+/*
+ * Copyright 2012 by A-SIT, Secure Information Technology Center Austria
+ *
+ * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by
+ * the European Commission - subsequent versions of the EUPL (the "Licence");
+ * You may not use this work except in compliance with the Licence.
+ * You may obtain a copy of the Licence at:
+ * http://joinup.ec.europa.eu/software/page/eupl
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the Licence is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the Licence for the specific language governing permissions and
+ * limitations under the Licence.
+ */
+package at.asit.pdfover.gui;
+
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * Various constants
+ */
+public class Constants {
+
+ /** Current display - used for Colors */
+ static private Display display = Display.getCurrent();
+
+ /** Main window height */
+ public static final int MAINWINDOW_HEIGHT = 768;
+
+ /** Main window width */
+ public static final int MAINWINDOW_WIDTH = 550;
+
+ /** Main bar height */
+ public static final int MAINBAR_HEIGHT = 60;
+
+ /** Main bar active background - light start of gradient */
+ public static final Color MAINBAR_ACTIVE_BACK_LIGHT = new Color(display, 0x6B, 0xA5, 0xD9);
+
+ /** Main bar active background - dark end of gradient */
+ public static final Color MAINBAR_ACTIVE_BACK_DARK = new Color(display, 0xB4, 0xCD, 0xEC);
+
+ /** Main bar inactive background */
+ public static final Color MAINBAR_INACTIVE_BACK = new Color(display, 0xD4, 0xE7, 0xF1);
+
+ /** Main bar active text color */
+ public static final Color MAINBAR_ACTIVE_TEXTCOLOR = new Color(display, 0x00, 0x00, 0x00);
+
+ /** Main bar inactive text color */
+ public static final Color MAINBAR_INACTIVE_TEXTCOLOR = new Color(display, 0x40, 0x40, 0x40);
+
+ /** Drop border color */
+ public static final Color DROP_BORDER_COLOR = MAINBAR_ACTIVE_BACK_DARK;
+
+ /** Normal text size */
+ public static final int TEXT_SIZE_NORMAL = 12;
+
+ /** Button text size */
+ public static final int TEXT_SIZE_BUTTON = 12;
+
+ /** Small text size */
+ public static final int TEXT_SIZE_SMALL = 10;
+
+ /** Big text size */
+ public static final int TEXT_SIZE_BIG = 14;
+
+ /** How far to displace the signature with the arrow keys */
+ public static final int SIGNATURE_KEYBOARD_POSITIONING_OFFSET = 15;
+
+ /** File suffix for the signed document */
+ public final static String SIGNED_SUFFIX = "_signed"; //$NON-NLS-1$
+}