summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2012-10-23 08:31:32 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2012-10-23 08:32:00 +0200
commitb8ce94f8e7392124e7f0db6c2558dfda66ea6c22 (patch)
treeb066a60985e50c43c07ef4b3116e0f6affba9b95
parentd843a72193d30509157b9bd8a439cd975bfef8a0 (diff)
downloadpdf-over-b8ce94f8e7392124e7f0db6c2558dfda66ea6c22.tar.gz
pdf-over-b8ce94f8e7392124e7f0db6c2558dfda66ea6c22.tar.bz2
pdf-over-b8ce94f8e7392124e7f0db6c2558dfda66ea6c22.zip
+ try to fix mainbar repaint issue for windows platform
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java20
1 files changed, 12 insertions, 8 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
index 2bf827b6..fb29ae9b 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
+++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
@@ -101,6 +101,8 @@ public class MainWindow {
private FormData mainBarFormData;
+ private Composite mainbar;
+
/**
* Default constructor
*
@@ -191,16 +193,16 @@ public class MainWindow {
getShell().setLayout(new FormLayout());
- Composite composite = new Composite(getShell(), SWT.NONE);
- composite.setLayout(new FormLayout());
+ this.mainbar = new Composite(getShell(), SWT.NONE);
+ this.mainbar.setLayout(new FormLayout());
this.mainBarFormData = new FormData();
this.mainBarFormData.left = new FormAttachment(0, 10);
this.mainBarFormData.right = new FormAttachment(100, -10);
this.mainBarFormData.top = new FormAttachment(0, 10);
this.mainBarFormData.bottom = new FormAttachment(0, 67);
- composite.setLayoutData(this.mainBarFormData);
+ this.mainbar.setLayoutData(this.mainBarFormData);
- this.btn_config = new MainBarRectangleButton(composite, SWT.NONE);
+ this.btn_config = new MainBarRectangleButton(this.mainbar, SWT.NONE);
FormData fd_btn_config = new FormData();
fd_btn_config.bottom = new FormAttachment(100);
fd_btn_config.right = new FormAttachment(0, 57);
@@ -236,7 +238,7 @@ public class MainWindow {
this.btn_config.setImage(new Image(Display.getDefault(), new ImageData(
is)));
- this.btn_open = new MainBarStartButton(composite, SWT.NONE);
+ this.btn_open = new MainBarStartButton(this.mainbar, SWT.NONE);
FormData fd_btn_open = new FormData();
fd_btn_open.bottom = new FormAttachment(100);
fd_btn_open.right = new FormAttachment(35, (MainBarButton.SplitFactor / 2));
@@ -265,7 +267,7 @@ public class MainWindow {
});
this.buttonMap.put(Buttons.OPEN, this.btn_open);
- this.btn_position = new MainBarMiddleButton(composite, SWT.NONE);
+ this.btn_position = new MainBarMiddleButton(this.mainbar, SWT.NONE);
FormData fd_btn_position = new FormData();
fd_btn_position.bottom = new FormAttachment(100);
fd_btn_position.right = new FormAttachment(60, (MainBarButton.SplitFactor / 2));
@@ -294,7 +296,7 @@ public class MainWindow {
});
this.buttonMap.put(Buttons.POSITION, this.btn_position);
- this.btn_sign = new MainBarMiddleButton(composite, SWT.NONE);
+ this.btn_sign = new MainBarMiddleButton(this.mainbar, SWT.NONE);
FormData fd_btn_sign = new FormData();
fd_btn_sign.bottom = new FormAttachment(100);
fd_btn_sign.right = new FormAttachment(85, (MainBarButton.SplitFactor / 2));
@@ -323,7 +325,7 @@ public class MainWindow {
});
this.buttonMap.put(Buttons.SIGN, this.btn_sign);
- MainBarEndButton end = new MainBarEndButton(composite, SWT.NONE);
+ MainBarEndButton end = new MainBarEndButton(this.mainbar, SWT.NONE);
FormData fd_btn_end = new FormData();
fd_btn_end.bottom = new FormAttachment(100);
fd_btn_end.right = new FormAttachment(100);
@@ -371,6 +373,8 @@ public class MainWindow {
} else {
this.mainBarFormData.bottom = new FormAttachment(0, 0);
}
+
+ this.mainbar.redraw();
}
/**