From 31c595076c0574bd3f084c68fcd2f9a7ac163477 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:08:50 +0000 Subject: Move constants to separate class git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@157 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../main/java/at/asit/pdfover/gui/Constants.java | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java') 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$ +} -- cgit v1.2.3