Mercurial > projects > dwt-win
annotate dwt/custom/CTabFolderEvent.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | a5afe31f5cdd |
children | fd9c62a2998e |
rev | line source |
---|---|
155 | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2006 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 dwt.custom.CTabFolderEvent; | |
14 | |
15 | |
16 | |
17 import dwt.events.TypedEvent; | |
18 import dwt.widgets.Widget; | |
19 | |
20 import tango.util.Convert; | |
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
21 import dwt.dwthelper.utils; |
155 | 22 |
23 /** | |
24 * | |
25 */ | |
26 public class CTabFolderEvent : TypedEvent { | |
27 /** | |
28 * The tab item for the operation. | |
29 */ | |
30 public Widget item; | |
31 | |
32 /** | |
33 * A flag indicating whether the operation should be allowed. | |
34 * Setting this field to <code>false</code> will cancel the operation. | |
35 * Applies to the close and showList events. | |
36 */ | |
37 public bool doit; | |
38 | |
39 /** | |
40 * The widget-relative, x coordinate of the chevron button | |
41 * at the time of the event. Applies to the showList event. | |
42 * | |
43 * @since 3.0 | |
44 */ | |
45 public int x; | |
46 /** | |
47 * The widget-relative, y coordinate of the chevron button | |
48 * at the time of the event. Applies to the showList event. | |
49 * | |
50 * @since 3.0 | |
51 */ | |
52 public int y; | |
53 /** | |
54 * The width of the chevron button at the time of the event. | |
55 * Applies to the showList event. | |
56 * | |
57 * @since 3.0 | |
58 */ | |
59 public int width; | |
60 /** | |
61 * The height of the chevron button at the time of the event. | |
62 * Applies to the showList event. | |
63 * | |
64 * @since 3.0 | |
65 */ | |
66 public int height; | |
67 | |
68 static final long serialVersionUID = 3760566386225066807L; | |
69 | |
70 /** | |
71 * Constructs a new instance of this class. | |
72 * | |
73 * @param w the widget that fired the event | |
74 */ | |
75 this(Widget w) { | |
76 super(w); | |
77 } | |
78 | |
79 /** | |
80 * Returns a string containing a concise, human-readable | |
81 * description of the receiver. | |
82 * | |
83 * @return a string representation of the event | |
84 */ | |
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
85 public override String toString() { |
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
86 String string = super.toString (); |
155 | 87 return string[0.. $ - 1] // remove trailing '}' |
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
88 ~ " item=" ~ to!(String)(item) |
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
89 ~ " doit=" ~ to!(String)(doit) |
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
90 ~ " x=" ~ to!(String)(x) |
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
91 ~ " y=" ~ to!(String)(y) |
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
92 ~ " width=" ~ to!(String)(width) |
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
93 ~ " height=" ~ to!(String)(height) |
155 | 94 ~ "}"; |
95 } | |
96 } |