summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:55 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:55 +0000
commit2981345a1efccd0ee0a1b74f986161ea2c4b881b (patch)
tree772bf079195a0b5a8918b2197f03371c0d78001e /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java
parent0d8f4da43d19ea8e0fb520c5c5d29caa51707251 (diff)
downloadpdf-over-2981345a1efccd0ee0a1b74f986161ea2c4b881b.tar.gz
pdf-over-2981345a1efccd0ee0a1b74f986161ea2c4b881b.tar.bz2
pdf-over-2981345a1efccd0ee0a1b74f986161ea2c4b881b.zip
Move constants to separate class
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12743 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java73
1 files changed, 73 insertions, 0 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java
new file mode 100644
index 00000000..6924b435
--- /dev/null
+++ b/trunk/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$
+}