Mercurial > projects > dwt2
annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/CTabFolderEvent.d @ 49:7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:59:54 +0100 |
parents | ddbfe84d86df |
children | c01d033c633a |
rev | line source |
---|---|
25 | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2008 IBM Corporation and others. | |
3 * All rights reserved. This program and the accompanying materials | |
4 * are made available under the terms of the Eclipse Public License v1.0 | |
5 * which accompanies this distribution, and is available at | |
6 * http://www.eclipse.org/legal/epl-v10.html | |
7 * | |
8 * Contributors: | |
9 * IBM Corporation - initial API and implementation | |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 module org.eclipse.swt.custom.CTabFolderEvent; | |
14 | |
15 import java.lang.all; | |
16 | |
17 | |
18 | |
19 import org.eclipse.swt.events.TypedEvent; | |
20 import org.eclipse.swt.widgets.Widget; | |
21 | |
48 | 22 version(Tango){ |
25 | 23 import tango.util.Convert; |
48 | 24 } else { // Phobos |
25 } | |
25 | 26 |
27 /** | |
28 * This event is sent when an event is generated in the CTabFolder. | |
29 * | |
30 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
31 */ | |
32 public class CTabFolderEvent : TypedEvent { | |
33 /** | |
34 * The tab item for the operation. | |
35 */ | |
36 public Widget item; | |
37 | |
38 /** | |
39 * A flag indicating whether the operation should be allowed. | |
40 * Setting this field to <code>false</code> will cancel the operation. | |
41 * Applies to the close and showList events. | |
42 */ | |
43 public bool doit; | |
44 | |
45 /** | |
46 * The widget-relative, x coordinate of the chevron button | |
47 * at the time of the event. Applies to the showList event. | |
48 * | |
49 * @since 3.0 | |
50 */ | |
51 public int x; | |
52 /** | |
53 * The widget-relative, y coordinate of the chevron button | |
54 * at the time of the event. Applies to the showList event. | |
55 * | |
56 * @since 3.0 | |
57 */ | |
58 public int y; | |
59 /** | |
60 * The width of the chevron button at the time of the event. | |
61 * Applies to the showList event. | |
62 * | |
63 * @since 3.0 | |
64 */ | |
65 public int width; | |
66 /** | |
67 * The height of the chevron button at the time of the event. | |
68 * Applies to the showList event. | |
69 * | |
70 * @since 3.0 | |
71 */ | |
72 public int height; | |
73 | |
49
7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
Frank Benoit <benoit@tionex.de>
parents:
48
diff
changeset
|
74 static const long serialVersionUID = 3760566386225066807L; |
25 | 75 |
76 /** | |
77 * Constructs a new instance of this class. | |
78 * | |
79 * @param w the widget that fired the event | |
80 */ | |
81 this(Widget w) { | |
82 super(w); | |
83 } | |
84 | |
85 /** | |
86 * Returns a string containing a concise, human-readable | |
87 * description of the receiver. | |
88 * | |
89 * @return a string representation of the event | |
90 */ | |
91 public override String toString() { | |
92 String string = super.toString (); | |
93 return string[0.. $ - 1] // remove trailing '}' | |
94 ~ " item=" ~ to!(String)(item) | |
95 ~ " doit=" ~ to!(String)(doit) | |
96 ~ " x=" ~ to!(String)(x) | |
97 ~ " y=" ~ to!(String)(y) | |
98 ~ " width=" ~ to!(String)(width) | |
99 ~ " height=" ~ to!(String)(height) | |
100 ~ "}"; | |
101 } | |
102 } |