Mercurial > projects > dwt-samples
comparison examples/controlexample/ControlExample.d @ 80:8a1930f94cbb
fix package renaming
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 11 May 2008 21:03:41 +0200 |
parents | 4a04b6759f98 |
children | eb84f9418bbf |
comparison
equal
deleted
inserted
replaced
79:da17aa0427da | 80:8a1930f94cbb |
---|---|
71 Shell shell = new Shell(display, DWT.SHELL_TRIM); | 71 Shell shell = new Shell(display, DWT.SHELL_TRIM); |
72 shell.setLayout(new FillLayout()); | 72 shell.setLayout(new FillLayout()); |
73 | 73 |
74 IControlExampleFactory ifactory; | 74 IControlExampleFactory ifactory; |
75 char[] key; | 75 char[] key; |
76 if( auto factory = ClassInfo.find( "dwtexamples.controlexample.CustomControlExample.CustomControlExampleFactory" )){ | 76 if( auto factory = ClassInfo.find( "examples.controlexample.CustomControlExample.CustomControlExampleFactory" )){ |
77 ifactory = cast(IControlExampleFactory) factory.create; | 77 ifactory = cast(IControlExampleFactory) factory.create; |
78 key = "custom.window.title"; | 78 key = "custom.window.title"; |
79 } | 79 } |
80 else{ | 80 else{ |
81 ifactory = new ControlExampleFactory(); | 81 ifactory = new ControlExampleFactory(); |
123 } | 123 } |
124 } | 124 } |
125 | 125 |
126 public class ControlExample { | 126 public class ControlExample { |
127 private static ResourceBundle resourceBundle; | 127 private static ResourceBundle resourceBundle; |
128 private static const char[] resourceData = import( "dwtexamples.controlexample.controlexample.properties" ); | 128 private static const char[] resourceData = import( "examples.controlexample.controlexample.properties" ); |
129 | 129 |
130 private ShellTab shellTab; | 130 private ShellTab shellTab; |
131 private TabFolder tabFolder; | 131 private TabFolder tabFolder; |
132 private Tab [] tabs; | 132 private Tab [] tabs; |
133 Image images[]; | 133 Image images[]; |
134 | 134 |
135 static const int ciClosedFolder = 0, ciOpenFolder = 1, ciTarget = 2, ciBackground = 3, ciParentBackground = 4; | 135 static const int ciClosedFolder = 0, ciOpenFolder = 1, ciTarget = 2, ciBackground = 3, ciParentBackground = 4; |
136 | 136 |
137 static const byte[][] imageData = [ | 137 static const byte[][] imageData = [ |
138 cast(byte[]) import( "dwtexamples.controlexample.closedFolder.gif" ), | 138 cast(byte[]) import( "examples.controlexample.closedFolder.gif" ), |
139 cast(byte[]) import( "dwtexamples.controlexample.openFolder.gif" ), | 139 cast(byte[]) import( "examples.controlexample.openFolder.gif" ), |
140 cast(byte[]) import( "dwtexamples.controlexample.target.gif" ), | 140 cast(byte[]) import( "examples.controlexample.target.gif" ), |
141 cast(byte[]) import( "dwtexamples.controlexample.backgroundImage.png" ), | 141 cast(byte[]) import( "examples.controlexample.backgroundImage.png" ), |
142 cast(byte[]) import( "dwtexamples.controlexample.parentBackgroundImage.png" ) | 142 cast(byte[]) import( "examples.controlexample.parentBackgroundImage.png" ) |
143 ]; | 143 ]; |
144 static const int[] imageTypes = [ | 144 static const int[] imageTypes = [ |
145 DWT.ICON, | 145 DWT.ICON, |
146 DWT.ICON, | 146 DWT.ICON, |
147 DWT.ICON, | 147 DWT.ICON, |