summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:48 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:48 +0000
commit9ca611ae0ea85f93e236fa132d978110bc34cc1e (patch)
treed84d9e01d82651cc0f4faea81b442a5b3c54b277 /trunk/pdf-over-gui/src/main
parentf56ed925bb2b4caea3f83407035ea47d4c7c92ed (diff)
downloadpdf-over-9ca611ae0ea85f93e236fa132d978110bc34cc1e.tar.gz
pdf-over-9ca611ae0ea85f93e236fa132d978110bc34cc1e.tar.bz2
pdf-over-9ca611ae0ea85f93e236fa132d978110bc34cc1e.zip
Make simple config scrollable
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12729 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java23
1 files changed, 15 insertions, 8 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 d14c5242..c7536d17 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
@@ -217,18 +217,23 @@ public class ConfigurationComposite extends StateComposite {
fd_tabFolder.left = new FormAttachment(0, 5);
tabFolder.setLayoutData(fd_tabFolder);
- TabItem simpleTabItem = new TabItem(tabFolder, SWT.NULL);
- simpleTabItem.setText(Messages.getString("config.Simple")); //$NON-NLS-1$
-
FontData[] fD_tabFolder = tabFolder.getFont().getFontData();
fD_tabFolder[0].setHeight(TEXT_SIZE_NORMAL);
tabFolder.setFont(new Font(Display.getCurrent(), fD_tabFolder[0]));
-
- this.simpleConfigComposite = new SimpleConfigurationComposite(tabFolder,
- SWT.NONE, state, this.configurationContainer);
- simpleTabItem.setControl(this.simpleConfigComposite);
- tabFolder.setSelection(simpleTabItem);
+ TabItem simpleTabItem = new TabItem(tabFolder, SWT.NONE);
+ simpleTabItem.setText(Messages.getString("config.Simple")); //$NON-NLS-1$
+
+ ScrolledComposite simpleCompositeScr = new ScrolledComposite(
+ tabFolder, SWT.H_SCROLL | SWT.V_SCROLL);
+ simpleTabItem.setControl(simpleCompositeScr);
+ this.simpleConfigComposite = new SimpleConfigurationComposite(
+ simpleCompositeScr, SWT.NONE, state, this.configurationContainer);
+ simpleCompositeScr.setContent(this.simpleConfigComposite);
+ simpleCompositeScr.setExpandHorizontal(true);
+ simpleCompositeScr.setExpandVertical(true);
+ simpleCompositeScr.setMinSize(
+ this.simpleConfigComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
TabItem advancedTabItem = new TabItem(tabFolder, SWT.NONE);
advancedTabItem.setText(Messages.getString("config.Advanced")); //$NON-NLS-1$
@@ -244,6 +249,8 @@ public class ConfigurationComposite extends StateComposite {
advancedCompositeScr.setMinSize(
this.advancedConfigComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
+ tabFolder.setSelection(simpleTabItem);
+
Button btnSpeichern = new Button(this, SWT.NONE);
FormData fd_btnSpeichern = new FormData();
fd_btnSpeichern.right = new FormAttachment(100, -5);