Mercurial > projects > dwt-mac
comparison dwt/widgets/FileDialog.d @ 123:63a09873578e
Fixed compile errors
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 15 Jan 2009 23:08:54 +0100 |
parents | c7f7f4d7091a |
children |
comparison
equal
deleted
inserted
replaced
122:2e671fa40eec | 123:63a09873578e |
---|---|
13 *******************************************************************************/ | 13 *******************************************************************************/ |
14 module dwt.widgets.FileDialog; | 14 module dwt.widgets.FileDialog; |
15 | 15 |
16 import dwt.dwthelper.utils; | 16 import dwt.dwthelper.utils; |
17 | 17 |
18 | 18 |
19 import dwt.DWT; | 19 import dwt.DWT; |
20 import dwt.DWTException; | 20 import dwt.DWTException; |
21 import dwt.internal.cocoa.NSArray; | 21 import dwt.internal.cocoa.NSArray; |
22 import dwt.internal.cocoa.NSOpenPanel; | 22 import dwt.internal.cocoa.NSOpenPanel; |
23 import dwt.internal.cocoa.NSSavePanel; | 23 import dwt.internal.cocoa.NSSavePanel; |
54 String [] fileNames; | 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 |
60 /** | 60 /** |
61 * Constructs a new instance of this class given only its parent. | 61 * Constructs a new instance of this class given only its parent. |
62 * | 62 * |
63 * @param parent a shell which will be the parent of the new instance | 63 * @param parent a shell which will be the parent of the new instance |
64 * | 64 * |
235 NSString pathOnly = filename.stringByDeletingLastPathComponent(); | 235 NSString pathOnly = filename.stringByDeletingLastPathComponent(); |
236 | 236 |
237 if (i is 0) { | 237 if (i is 0) { |
238 /* Filter path */ | 238 /* Filter path */ |
239 filterPath = pathOnly.getString(); | 239 filterPath = pathOnly.getString(); |
240 | 240 |
241 /* File name */ | 241 /* File name */ |
242 fileName = fileNames [0] = filenameOnly.getString(); | 242 fileName = fileNames [0] = filenameOnly.getString(); |
243 } else { | 243 } else { |
244 if (pathOnly.getString().equals (filterPath)) { | 244 if (pathOnly.getString().equals (filterPath)) { |
245 fileNames [i] = filenameOnly.getString(); | 245 fileNames [i] = filenameOnly.getString(); |