Mercurial > projects > dwt-linux
comparison dwt/widgets/DirectoryDialog.d @ 276:9d67c3170a58 Release-1
Removed version=TANGOSVN for release 0.99.7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 26 Jul 2008 02:52:25 +0200 |
parents | d472fae79005 |
children |
comparison
equal
deleted
inserted
replaced
275:5983f0f11896 | 276:9d67c3170a58 |
---|---|
21 import dwt.internal.gtk.OS; | 21 import dwt.internal.gtk.OS; |
22 import dwt.widgets.Dialog; | 22 import dwt.widgets.Dialog; |
23 import dwt.widgets.Shell; | 23 import dwt.widgets.Shell; |
24 import dwt.widgets.Display; | 24 import dwt.widgets.Display; |
25 | 25 |
26 version(TANGOSVN) { | 26 static import tango.io.model.IFile; |
27 static import tango.io.model.IFile; | |
28 } | |
29 else{ | |
30 static import tango.io.FileConst; | |
31 } | |
32 static import tango.text.Util; | 27 static import tango.text.Util; |
33 | 28 |
34 /** | 29 /** |
35 * Instances of this class allow the user to navigate | 30 * Instances of this class allow the user to navigate |
36 * the file system and select a directory. | 31 * the file system and select a directory. |
49 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> | 44 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> |
50 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | 45 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
51 */ | 46 */ |
52 public class DirectoryDialog : Dialog { | 47 public class DirectoryDialog : Dialog { |
53 String message = "", filterPath = ""; | 48 String message = "", filterPath = ""; |
54 version(TANGOSVN) { | |
55 static const String SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorString; | 49 static const String SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorString; |
56 } | |
57 else{ | |
58 static const String SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorString; | |
59 } | |
60 | 50 |
61 /** | 51 /** |
62 * Constructs a new instance of this class given only its parent. | 52 * Constructs a new instance of this class given only its parent. |
63 * | 53 * |
64 * @param parent a shell which will be the parent of the new instance | 54 * @param parent a shell which will be the parent of the new instance |