Mercurial > projects > dwt-linux
comparison dwt/widgets/FileDialog.d @ 265:07d9ed8927b6
Add version TANGOSVN
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 15:34:21 +0200 |
parents | c0d810de7093 |
children | d472fae79005 |
comparison
equal
deleted
inserted
replaced
264:bfafc891369e | 265:07d9ed8927b6 |
---|---|
20 import dwt.widgets.Dialog; | 20 import dwt.widgets.Dialog; |
21 import dwt.widgets.Shell; | 21 import dwt.widgets.Shell; |
22 import dwt.widgets.Display; | 22 import dwt.widgets.Display; |
23 import dwt.dwthelper.utils; | 23 import dwt.dwthelper.utils; |
24 | 24 |
25 static import tango.io.FileConst; | 25 version(TANGOSVN) |
26 static import tango.io.model.IFile; | |
27 } | |
28 else{ | |
29 static import tango.io.FileConst; | |
30 } | |
26 static import tango.text.Util; | 31 static import tango.text.Util; |
27 static import tango.text.Text; | 32 static import tango.text.Text; |
28 | 33 |
29 /** | 34 /** |
30 * Instances of this class allow the user to navigate | 35 * Instances of this class allow the user to navigate |
39 * Note: Only one of the styles SAVE and OPEN may be specified. | 44 * Note: Only one of the styles SAVE and OPEN may be specified. |
40 * </p><p> | 45 * </p><p> |
41 * IMPORTANT: This class is intended to be subclassed <em>only</em> | 46 * IMPORTANT: This class is intended to be subclassed <em>only</em> |
42 * within the DWT implementation. | 47 * within the DWT implementation. |
43 * </p> | 48 * </p> |
44 * | 49 * |
45 * @see <a href="http://www.eclipse.org/swt/snippets/#filedialog">FileDialog snippets</a> | 50 * @see <a href="http://www.eclipse.org/swt/snippets/#filedialog">FileDialog snippets</a> |
46 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> | 51 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> |
47 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | 52 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
48 */ | 53 */ |
49 public class FileDialog : Dialog { | 54 public class FileDialog : Dialog { |
54 String[] fileNames; | 59 String[] fileNames; |
55 String fullPath = ""; | 60 String fullPath = ""; |
56 int filterIndex = -1; | 61 int filterIndex = -1; |
57 bool overwrite = false; | 62 bool overwrite = false; |
58 GtkWidget* handle; | 63 GtkWidget* handle; |
64 version(TANGOSVN) | |
65 static final char SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorChar; | |
66 } | |
67 else{ | |
59 static final char SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorChar; | 68 static final char SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorChar; |
69 } | |
60 static final char EXTENSION_SEPARATOR = ';'; | 70 static final char EXTENSION_SEPARATOR = ';'; |
61 | 71 |
62 /** | 72 /** |
63 * Constructs a new instance of this class given only its parent. | 73 * Constructs a new instance of this class given only its parent. |
64 * | 74 * |