Mercurial > projects > dwt-samples
comparison examples/controlexample/CustomControlExample.d @ 161:eb84f9418bbf
Change module names to this not have examples in the FQN.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 01 Sep 2008 22:24:27 +0200 |
parents | 4a04b6759f98 |
children |
comparison
equal
deleted
inserted
replaced
158:683d3e7b184a | 161:eb84f9418bbf |
---|---|
8 * Contributors: | 8 * Contributors: |
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.CustomControlExample; | 13 module controlexample.CustomControlExample; |
14 | 14 |
15 import dwt.layout.FillLayout; | 15 import dwt.layout.FillLayout; |
16 import dwt.widgets.Composite; | 16 import dwt.widgets.Composite; |
17 import dwt.widgets.Display; | 17 import dwt.widgets.Display; |
18 import dwt.widgets.Shell; | 18 import dwt.widgets.Shell; |
19 | 19 |
20 import tango.io.Stdout; | 20 import tango.io.Stdout; |
21 | 21 |
22 import examples.controlexample.ControlExample; | 22 import controlexample.ControlExample; |
23 import examples.controlexample.CComboTab; | 23 import controlexample.CComboTab; |
24 import examples.controlexample.CLabelTab; | 24 import controlexample.CLabelTab; |
25 import examples.controlexample.CTabFolderTab; | 25 import controlexample.CTabFolderTab; |
26 import examples.controlexample.SashFormTab; | 26 import controlexample.SashFormTab; |
27 import examples.controlexample.StyledTextTab; | 27 import controlexample.StyledTextTab; |
28 import examples.controlexample.Tab; | 28 import controlexample.Tab; |
29 | |
30 version(JIVE) import jive.stacktrace; | |
29 | 31 |
30 public class CustomControlExampleFactory : IControlExampleFactory { | 32 public class CustomControlExampleFactory : IControlExampleFactory { |
31 CustomControlExample create(Shell shell, char[] title) { | 33 CustomControlExample create(Shell shell, char[] title) { |
32 | 34 |
33 Stdout.formatln( "The CustomControlExample: still work left" ); | 35 Stdout.formatln( "The CustomControlExample: still work left" ); |
58 /** | 60 /** |
59 * Answers the set of example Tabs | 61 * Answers the set of example Tabs |
60 */ | 62 */ |
61 Tab[] createTabs() { | 63 Tab[] createTabs() { |
62 return [ cast(Tab) | 64 return [ cast(Tab) |
63 new CComboTab (this), | 65 //new CComboTab (this), |
64 new CLabelTab (this), | 66 //new CLabelTab (this), |
65 new CTabFolderTab (this), | 67 new CTabFolderTab (this) |
66 new SashFormTab (this), | 68 //new SashFormTab (this), |
67 new StyledTextTab (this) | 69 //new StyledTextTab (this) |
68 ]; | 70 ]; |
69 } | 71 } |
70 } | 72 } |