Mercurial > projects > dwt-samples
comparison examples/controlexample/TreeTab.d @ 99:3fbc483a4599
added override
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 02 Jun 2008 22:01:36 +0200 |
parents | 4a04b6759f98 |
children | eb84f9418bbf |
comparison
equal
deleted
inserted
replaced
98:3690482009a4 | 99:3fbc483a4599 |
---|---|
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module examples.controlexample.TreeTab; | 13 module examples.controlexample.TreeTab; |
14 | |
15 | 14 |
16 | 15 |
17 import dwt.DWT; | 16 import dwt.DWT; |
18 import dwt.events.DisposeEvent; | 17 import dwt.events.DisposeEvent; |
19 import dwt.events.DisposeListener; | 18 import dwt.events.DisposeListener; |
807 void setWidgetLinesVisible () { | 806 void setWidgetLinesVisible () { |
808 tree1.setLinesVisible (linesVisibleButton.getSelection ()); | 807 tree1.setLinesVisible (linesVisibleButton.getSelection ()); |
809 tree2.setLinesVisible (linesVisibleButton.getSelection ()); | 808 tree2.setLinesVisible (linesVisibleButton.getSelection ()); |
810 } | 809 } |
811 | 810 |
812 protected void specialPopupMenuItems(Menu menu, Event event) { | 811 protected override void specialPopupMenuItems(Menu menu, Event event) { |
813 MenuItem item = new MenuItem(menu, DWT.PUSH); | 812 MenuItem item = new MenuItem(menu, DWT.PUSH); |
814 item.setText("getItem(Point) on mouse coordinates"); | 813 item.setText("getItem(Point) on mouse coordinates"); |
815 Tree t = cast(Tree) event.widget; | 814 Tree t = cast(Tree) event.widget; |
816 menuMouseCoords = t.toControl(new Point(event.x, event.y)); | 815 menuMouseCoords = t.toControl(new Point(event.x, event.y)); |
817 item.addSelectionListener(new class(t) SelectionAdapter { | 816 item.addSelectionListener(new class(t) SelectionAdapter { |