Mercurial > projects > dwt-mac
comparison dwt/widgets/FileDialog.d @ 90:c7f7f4d7091a
All widgets are ported
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 30 Dec 2008 18:54:31 +0100 |
parents | cce7edf30dae |
children | 63a09873578e |
comparison
equal
deleted
inserted
replaced
89:8e3c85e1733d | 90:c7f7f4d7091a |
---|---|
47 * @see <a href="http://www.eclipse.org/swt/snippets/#filedialog">FileDialog snippets</a> | 47 * @see <a href="http://www.eclipse.org/swt/snippets/#filedialog">FileDialog snippets</a> |
48 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> | 48 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> |
49 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | 49 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
50 */ | 50 */ |
51 public class FileDialog : Dialog { | 51 public class FileDialog : Dialog { |
52 String [] filterNames = new String [0]; | 52 String [] filterNames; |
53 String [] filterExtensions = new String [0]; | 53 String [] filterExtensions; |
54 String [] fileNames = new String [0]; | 54 String [] fileNames; |
55 String filterPath = "", fileName = ""; | 55 String filterPath = "", fileName = ""; |
56 int filterIndex = -1; | 56 int filterIndex = -1; |
57 bool overwrite = true; //TODO: if setOverwrite(false) is implemented, change default to false for consistency | 57 bool overwrite = true; //TODO: if setOverwrite(false) is implemented, change default to false for consistency |
58 static final char EXTENSION_SEPARATOR = ';'; | 58 static final char EXTENSION_SEPARATOR = ';'; |
59 | 59 |
99 * </ul> | 99 * </ul> |
100 */ | 100 */ |
101 public this (Shell parent, int style) { | 101 public this (Shell parent, int style) { |
102 super (parent, checkStyle (parent, style)); | 102 super (parent, checkStyle (parent, style)); |
103 checkSubclass (); | 103 checkSubclass (); |
104 | |
105 filterNames = new String [0]; | |
106 filterExtensions = new String [0]; | |
107 fileNames = new String [0]; | |
104 } | 108 } |
105 | 109 |
106 /** | 110 /** |
107 * Returns the path of the first file that was | 111 * Returns the path of the first file that was |
108 * selected in the dialog relative to the filter path, or an | 112 * selected in the dialog relative to the filter path, or an |