diff dwt/widgets/Control.d @ 54:8f049b136add

first example working
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Jan 2008 14:31:37 +0100
parents 8015c460f713
children 93981635e709
line wrap: on
line diff
--- a/dwt/widgets/Control.d	Fri Jan 11 11:21:52 2008 +0100
+++ b/dwt/widgets/Control.d	Fri Jan 11 14:31:37 2008 +0100
@@ -43,40 +43,19 @@
 import dwt.widgets.Decorations;
 import dwt.widgets.Display;
 import dwt.widgets.Event;
-import dwt.widgets.EventTable;
 import dwt.widgets.Listener;
 import dwt.widgets.Menu;
 import dwt.widgets.Monitor;
 import dwt.widgets.Shell;
 import dwt.widgets.TypedListener;
 import dwt.widgets.Widget;
+import dwt.accessibility.Accessible;
 
 import Math = tango.math.Math;
 import tango.stdc.string;
 import tango.stdc.stringz;
 import tango.core.Thread;
 
-/+
-class Control : Widget {
-    GdkWindow* paintWindow () { return null; };
-    public Shell getShell();
-    bool isEnabled();
-    bool isDisposed();
-    GdkWindow* eventWindow ();
-    GtkIMContext * imHandle();
-    Control findBackgroundControl ();
-    GdkColor* getBackgroundColor () ;
-    GdkColor* getForegroundColor () ;
-    PangoFontDescription* getFontDescription ();
-    public Point toDisplay (int x, int y);
-    public Point toDisplay (Point point) ;
-    Point getIMCaretPos () ;
-}
-+/
-
-class Accessible{
-    static Accessible internal_new_Accessible(Control);
-}
 
 /**
  * Control is the abstract superclass of all windowed user interface classes.
@@ -2430,6 +2409,7 @@
 	switch (button) {
 		case -6: button = 4; break;
 		case -7: button = 5; break;
+        default:
 	}
 	return sendMouseEvent (SWT.MouseUp, button, display.clickCount, 0, false, gdkEvent.time, gdkEvent.x_root, gdkEvent.y_root, false, gdkEvent.state) ? 0 : 1;
 }
@@ -2509,6 +2489,7 @@
 
 			sendFocusEvent (gdkEventFocus.in_ !is 0 ? SWT.FocusIn : SWT.FocusOut);
 			break;
+        default:
 		}
 	}
 	return 0;
@@ -2693,6 +2674,7 @@
 			return sendMouseEvent (SWT.MouseDown, 4, gdkEvent.time, gdkEvent.x_root, gdkEvent.y_root, false, gdkEvent.state) ? 0 : 1;
 		case OS.GDK_SCROLL_RIGHT:
 			return sendMouseEvent (SWT.MouseDown, 5, gdkEvent.time, gdkEvent.x_root, gdkEvent.y_root, false, gdkEvent.state) ? 0 : 1;
+        default:
 	}
 	return 0;
 }
@@ -3121,6 +3103,7 @@
 					shell.setActiveControl (null);
 				}
 				break;
+            default:
 		}
 	}
 }
@@ -4148,6 +4131,7 @@
 		case SWT.TRAVERSE_MNEMONIC:		return traverseMnemonic (event.character);
 		case SWT.TRAVERSE_PAGE_NEXT:		return traversePage (true);
 		case SWT.TRAVERSE_PAGE_PREVIOUS:	return traversePage (false);
+        default:
 	}
 	return false;
 }
@@ -4290,6 +4274,7 @@
 				}
 			}
 			break;
+        default:
 		}
 	}
 	return super.windowProc (handle, arg0, user_data);