summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2001-11-15 00:46:03 +0000
committerGrant Gayed <ggayed>2001-11-15 00:46:03 +0000
commit315995fb27c74741ec1859219ebb41dded2032d1 (patch)
tree8651115824ff9ebade0e2c242e2d4de9822e37a6
parentbfcef4d4fe125afe0b8e6c538fb1857e425a612c (diff)
downloadeclipse.platform.swt-315995fb27c74741ec1859219ebb41dded2032d1.tar.gz
eclipse.platform.swt-315995fb27c74741ec1859219ebb41dded2032d1.tar.xz
eclipse.platform.swt-315995fb27c74741ec1859219ebb41dded2032d1.zip
*** empty log message ***
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java18
1 files changed, 8 insertions, 10 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java
index 3cecf9caae..b80d16d4ad 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java
@@ -301,14 +301,11 @@ public boolean getStippled () {
return stippled;
}
-void moveRectangles (int xChange, int yChange, Rectangle moveBounds) {
+void moveRectangles (int xChange, int yChange) {
if (xChange < 0 && ((style & SWT.LEFT) == 0)) return;
if (xChange > 0 && ((style & SWT.RIGHT) == 0)) return;
if (yChange < 0 && ((style & SWT.UP) == 0)) return;
if (yChange > 0 && ((style & SWT.DOWN) == 0)) return;
-// Rectangle bounds = computeBounds();
-// bounds.x += xChange; bounds.y += yChange;
-// if (!bounds.union (moveBounds).equals (moveBounds)) return;
for (int i = 0; i < rectangles.length; i++) {
rectangles [i].x += xChange;
rectangles [i].y += yChange;
@@ -369,12 +366,12 @@ public boolean open () {
event.x = newX [0];
event.y = newY [0];
if ((style & SWT.RESIZE) != 0) {
- resizeRectangles (newX [0] - oldX [0], newY [0] - oldY [0], null);
+ resizeRectangles (newX [0] - oldX [0], newY [0] - oldY [0]);
sendEvent (SWT.Resize, event);
cursorPos = adjustResizeCursor (xDisplay, xWindow);
newX [0] = cursorPos.x; newY [0] = cursorPos.y;
} else {
- moveRectangles (newX [0] - oldX [0], newY [0] - oldY [0], null);
+ moveRectangles (newX [0] - oldX [0], newY [0] - oldY [0]);
sendEvent (SWT.Move, event);
}
/*
@@ -429,11 +426,11 @@ public boolean open () {
event.x = oldX[0] + xChange;
event.y = oldY[0] + yChange;
if ((style & SWT.RESIZE) != 0) {
- resizeRectangles (xChange, yChange, null);
+ resizeRectangles (xChange, yChange);
sendEvent (SWT.Resize,event);
cursorPos = adjustResizeCursor (xDisplay, xWindow);
} else {
- moveRectangles (xChange, yChange, null);
+ moveRectangles (xChange, yChange);
sendEvent (SWT.Move,event);
cursorPos = adjustMoveCursor (xDisplay, xWindow);
}
@@ -480,7 +477,7 @@ public void removeControlListener (ControlListener listener) {
if (eventTable == null) return;
eventTable.unhook (SWT.Move, listener);
}
-void resizeRectangles (int xChange, int yChange, Rectangle resizeBounds) {
+void resizeRectangles (int xChange, int yChange) {
/*
* If the cursor orientation has not been set in the orientation of
* this change then try to set it here.
@@ -510,7 +507,6 @@ void resizeRectangles (int xChange, int yChange, Rectangle resizeBounds) {
/*
* The following are conditions under which the resize should not be applied
*/
-// if (!bounds.union (resizeBounds).equals (resizeBounds)) return;
if (bounds.width < 0 || bounds.height < 0) return;
Rectangle [] newRects = new Rectangle [rectangles.length];
@@ -525,6 +521,8 @@ void resizeRectangles (int xChange, int yChange, Rectangle resizeBounds) {
rectangles = newRects;
}
+public void setCursor (Cursor value) {
+}
/**
* Specify the rectangles that should be drawn.
*