summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-08-18 15:14:00 +0000
committerSilenio Quarti <silenio>2008-08-18 15:14:00 +0000
commit114a90e9c5c0a4fae8a6509db4dd3947871a06a6 (patch)
tree9e22800b8fd3eb5e9d420a613644bfcbab975e8e /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets
parent047551711731234f55bfa1e053304f3a7d2a17a6 (diff)
downloadeclipse.platform.swt-114a90e9c5c0a4fae8a6509db4dd3947871a06a6.tar.gz
eclipse.platform.swt-114a90e9c5c0a4fae8a6509db4dd3947871a06a6.tar.xz
eclipse.platform.swt-114a90e9c5c0a4fae8a6509db4dd3947871a06a6.zip
64 bit work
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java2
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java2
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java10
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java6
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java8
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java4
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java2
7 files changed, 17 insertions, 17 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
index 8345585235..69b111c0a9 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Composite.java
@@ -724,7 +724,7 @@ void scrollWheel (int /*long*/ id, int /*long*/ sel, int /*long*/ theEvent) {
NSView view = scrollView != null ? scrollView : this.view;
if (id == view.id) {
NSEvent nsEvent = new NSEvent(theEvent);
- double /*float*/ delta = nsEvent.deltaY();
+ float /*double*/ delta = nsEvent.deltaY();
if (delta != 0) {
if (hooks (SWT.MouseWheel) || filters (SWT.MouseWheel)) {
if (!sendMouseEvent(nsEvent, SWT.MouseWheel, true)) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
index f9b1e40baa..53d1129512 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Control.java
@@ -2270,7 +2270,7 @@ boolean sendMouseEvent (NSEvent nsEvent, int type, boolean send) {
break;
case SWT.MouseWheel:
event.detail = SWT.SCROLL_LINE;
- double /*float*/ delta = nsEvent.deltaY();
+ float /*double*/ delta = nsEvent.deltaY();
event.count = delta > 0 ? Math.max (1, (int)delta) : Math.min (-1, (int)delta);
break;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
index 06eeda4930..1ea4abe17c 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
@@ -900,14 +900,14 @@ public Rectangle getBounds () {
Rectangle getBounds (NSArray screens) {
NSRect primaryFrame = new NSScreen(screens.objectAtIndex(0)).frame();
- double /*float*/ minX = Float.MAX_VALUE, maxX = Float.MIN_VALUE;
- double /*float*/ minY = Float.MAX_VALUE, maxY = Float.MIN_VALUE;
+ float /*double*/ minX = Float.MAX_VALUE, maxX = Float.MIN_VALUE;
+ float /*double*/ minY = Float.MAX_VALUE, maxY = Float.MIN_VALUE;
int /*long*/ count = screens.count();
for (int i = 0; i < count; i++) {
NSScreen screen = new NSScreen(screens.objectAtIndex(i));
NSRect frame = screen.frame();
- double /*float*/ x1 = frame.x, x2 = frame.x + frame.width;
- double /*float*/ y1 = primaryFrame.height - frame.y, y2 = primaryFrame.height - (frame.y + frame.height);
+ float /*double*/ x1 = frame.x, x2 = frame.x + frame.width;
+ float /*double*/ y1 = primaryFrame.height - frame.y, y2 = primaryFrame.height - (frame.y + frame.height);
if (x1 < minX) minX = x1;
if (x2 < minX) minX = x2;
if (x1 > maxX) maxX = x1;
@@ -956,7 +956,7 @@ public Rectangle getClientArea () {
NSScreen screen = new NSScreen(screens.objectAtIndex(0));
NSRect frame = screen.frame();
NSRect visibleFrame = screen.visibleFrame();
- double /*float*/ y = frame.height - (visibleFrame.y + visibleFrame.height);
+ float /*double*/ y = frame.height - (visibleFrame.y + visibleFrame.height);
return new Rectangle((int)visibleFrame.x, (int)y, (int)visibleFrame.width, (int)visibleFrame.height);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
index b6bb1b7b41..dc799157c1 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
@@ -490,7 +490,7 @@ void createHandle () {
}
display.cascadeWindow(window, screen);
NSRect screenFrame = screen.frame();
- double /*float*/ width = screenFrame.width * 5 / 8, height = screenFrame.height * 5 / 8;;
+ float /*double*/ width = screenFrame.width * 5 / 8, height = screenFrame.height * 5 / 8;;
NSRect frame = window.frame();
NSRect primaryFrame = primaryScreen.frame();
frame.y = primaryFrame.height - ((primaryFrame.height - (frame.y + frame.height)) + height);
@@ -634,7 +634,7 @@ public int getAlpha () {
public Rectangle getBounds () {
checkWidget();
NSRect frame = window.frame();
- double /*float*/ y = display.getPrimaryFrame().height - (int)(frame.y + frame.height);
+ float /*double*/ y = display.getPrimaryFrame().height - (int)(frame.y + frame.height);
return new Rectangle ((int)frame.x, (int)y, (int)frame.width, (int)frame.height);
}
@@ -702,7 +702,7 @@ public int getImeInputMode () {
public Point getLocation () {
checkWidget();
NSRect frame = window.frame();
- double /*float*/ y = display.getPrimaryFrame().height - (int)(frame.y + frame.height);
+ float /*double*/ y = display.getPrimaryFrame().height - (int)(frame.y + frame.height);
return new Point ((int)frame.x, (int)y);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java
index 36b3907092..bf1fa6761c 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java
@@ -703,14 +703,14 @@ public boolean open () {
tracking = true;
window = (NSWindow)new NSWindow().alloc();
NSArray screens = NSScreen.screens();
- double /*float*/ minX = Float.MAX_VALUE, maxX = Float.MIN_VALUE;
- double /*float*/ minY = Float.MAX_VALUE, maxY = Float.MIN_VALUE;
+ float /*double*/ minX = Float.MAX_VALUE, maxX = Float.MIN_VALUE;
+ float /*double*/ minY = Float.MAX_VALUE, maxY = Float.MIN_VALUE;
int count = (int)/*64*/screens.count();
for (int i = 0; i < count; i++) {
NSScreen screen = new NSScreen(screens.objectAtIndex(i));
NSRect frame = screen.frame();
- double /*float*/ x1 = frame.x, x2 = frame.x + frame.width;
- double /*float*/ y1 = frame.y, y2 = frame.y + frame.height;
+ float /*double*/ x1 = frame.x, x2 = frame.x + frame.width;
+ float /*double*/ y1 = frame.y, y2 = frame.y + frame.height;
if (x1 < minX) minX = x1;
if (x2 < minX) minX = x2;
if (x1 > maxX) maxX = x1;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java
index 4aca800d8d..7714806168 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/TrayItem.java
@@ -337,7 +337,7 @@ public void setImage (Image image) {
if (image != null && image.isDisposed ()) error (SWT.ERROR_INVALID_ARGUMENT);
super.setImage (image);
view.setImage(image != null ? image.handle : null);
- double /*float*/ width = image != null && visible ? image.handle.size().width + BORDER : 0;
+ float /*double*/ width = image != null && visible ? image.handle.size().width + BORDER : 0;
item.setLength(width);
}
@@ -404,7 +404,7 @@ public void setVisible (boolean visible) {
if (isDisposed ()) return;
}
this.visible = visible;
- double /*float*/ width = image != null && visible ? image.handle.size().width + BORDER : 0;
+ float /*double*/ width = image != null && visible ? image.handle.size().width + BORDER : 0;
item.setLength(width);
if (!visible) sendEvent (SWT.Hide);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
index e75e0feb95..307c24bb1a 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
@@ -80,7 +80,7 @@ public class Tree extends Composite {
TreeColumn sortColumn;
int columnCount;
int sortDirection;
- double /*float*/ levelIndent;
+ float /*double*/ levelIndent;
boolean ignoreExpand, ignoreSelect;
/**