From 2981345a1efccd0ee0a1b74f986161ea2c4b881b Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 31 Oct 2012 16:36:55 +0000 Subject: 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 --- .../main/java/at/asit/pdfover/gui/Constants.java | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java') 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$ +} -- cgit v1.2.3