diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-24 17:05:50 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-24 17:05:50 +0000 |
commit | a7b62c39d53a68ff64b580bb52a05018b5990802 (patch) | |
tree | 1b312e00136c77a98218f58abb29bd9f45d4d3a3 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui | |
parent | 56f0f632e4c23e7678b70a7458499d118d5f2848 (diff) | |
download | pdf-over-a7b62c39d53a68ff64b580bb52a05018b5990802.tar.gz pdf-over-a7b62c39d53a68ff64b580bb52a05018b5990802.tar.bz2 pdf-over-a7b62c39d53a68ff64b580bb52a05018b5990802.zip |
Remove accidentally committed file
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12402 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/GUI.java | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/GUI.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/GUI.java deleted file mode 100644 index 9b9f8a63..00000000 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/GUI.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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; - -// Imports -import org.eclipse.swt.SWT; -import org.eclipse.swt.events.SelectionAdapter; -import org.eclipse.swt.events.SelectionEvent; -import org.eclipse.swt.widgets.Button; -import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Display; -import org.eclipse.swt.widgets.Label; -import org.eclipse.swt.widgets.Shell; - -/** - * - */ -public class GUI { - /** - * Main window - */ - protected Shell shell; - - /** - * Launch the application. - * @param args - */ - public static void main(String[] args) { - try { - GUI window = new GUI(); - window.open(); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * Open the window. - */ - public void open() { - Display display = Display.getDefault(); - createContents(); - this.shell.open(); - this.shell.layout(); - while (!this.shell.isDisposed()) { - if (!display.readAndDispatch()) { - display.sleep(); - } - } - } - - /** - * Create contents of the window. - */ - protected void createContents() { - this.shell = new Shell(); - this.shell.setSize(640, 480); - this.shell.setText("PDF-Over 4.0"); - - final Composite compOpenFile = new Composite(this.shell, SWT.NONE); - compOpenFile.setBounds(0, 0, 640, 480); - - final Composite compPosition = new Composite(this.shell, SWT.NONE); - compPosition.setBounds(0, 0, 640, 480); - - - Label lblPage1 = new Label(compOpenFile, SWT.NONE); - lblPage1.setBounds(20, 20, 70, 17); - lblPage1.setText("Open file"); - - Button btnNext = new Button(compOpenFile, SWT.NONE); - btnNext.addSelectionListener(new SelectionAdapter() { - @Override - public void widgetSelected(SelectionEvent arg0) { - compPosition.moveAbove(compOpenFile); - } - }); - btnNext.setBounds(20, 50, 91, 29); - btnNext.setText("Next"); - - Label lblPage2 = new Label(compPosition, SWT.NONE); - lblPage2.setBounds(20, 20, 140, 17); - lblPage2.setText("Position signature"); - - - } -} |