diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2012-10-04 11:59:45 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2012-10-04 11:59:45 +0200 |
commit | 4dd054cc2ff1a8533645b19d09caa43700941b48 (patch) | |
tree | d5ead1b48fba960d9887c33be36f1f827da9bee8 /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java | |
parent | 920aa71511071ba92b00467696537bf45f64fa47 (diff) | |
download | pdf-over-4dd054cc2ff1a8533645b19d09caa43700941b48.tar.gz pdf-over-4dd054cc2ff1a8533645b19d09caa43700941b48.tar.bz2 pdf-over-4dd054cc2ff1a8533645b19d09caa43700941b48.zip |
+ Implemented behavior with set default output folder
+ centralized font sizes
+ added comments for documentation
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java')
-rw-r--r-- | trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java index abd2edb0..25cedaf0 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java @@ -20,6 +20,7 @@ import java.io.IOException; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; +import org.eclipse.swt.widgets.Display; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -41,15 +42,17 @@ import org.eclipse.swt.custom.StackLayout; import org.eclipse.swt.events.SelectionAdapter; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; +import org.eclipse.swt.graphics.Font; +import org.eclipse.swt.graphics.FontData; import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.layout.FormData; import org.eclipse.swt.layout.FormAttachment; /** - * + * Composite for hosting configuration composites */ public class ConfigurationComposite extends StateComposite { - + /** * Configuration Mode selection listener */ @@ -250,6 +253,10 @@ public class ConfigurationComposite extends StateComposite { }); btnSpeichern.setText(Messages.getString("common.Save")); //$NON-NLS-1$ + FontData[] fD_btnSpeichern = btnSpeichern.getFont().getFontData(); + fD_btnSpeichern[0].setHeight(TEXT_SIZE_BUTTON); + btnSpeichern.setFont(new Font(Display.getCurrent(), fD_btnSpeichern[0])); + Button btnAbbrechen = new Button(this, SWT.NONE); FormData fd_btnAbrechen = new FormData(); fd_btnAbrechen.left = new FormAttachment(btnSpeichern, 10); @@ -264,6 +271,10 @@ public class ConfigurationComposite extends StateComposite { } }); + FontData[] fD_btnAbbrechen = btnAbbrechen.getFont().getFontData(); + fD_btnAbbrechen[0].setHeight(TEXT_SIZE_BUTTON); + btnAbbrechen.setFont(new Font(Display.getCurrent(), fD_btnAbbrechen[0])); + this.btnAdvanced = new Button(this, SWT.NONE); FormData fd_btnAdvanced = new FormData(); fd_btnAdvanced.right = new FormAttachment(100, -5); @@ -272,7 +283,10 @@ public class ConfigurationComposite extends StateComposite { this.btnAdvanced.setText(Messages.getString("config.Advanced")); //$NON-NLS-1$ this.btnAdvanced .addSelectionListener(new ConfigurationModeSelectionListener()); - + + FontData[] fD_btnAdvanced = this.btnAdvanced.getFont().getFontData(); + fD_btnAdvanced[0].setHeight(TEXT_SIZE_BUTTON); + this.btnAdvanced.setFont(new Font(Display.getCurrent(), fD_btnAdvanced[0])); } boolean storeConfiguration() { |