Mercurial > projects > dynamin
comparison dynamin/gui/file_dialog.d @ 46:127b9d99c01c
Rename uses of 'directory' to 'folder' in method names and comments.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Thu, 30 Jul 2009 19:20:30 -0500 |
parents | 836a064828e8 |
children | 73060bc3f004 |
comparison
equal
deleted
inserted
replaced
45:4eebc294a3ac | 46:127b9d99c01c |
---|---|
51 mixin FileDialogBackend; | 51 mixin FileDialogBackend; |
52 protected: | 52 protected: |
53 bool _multipleSelection; | 53 bool _multipleSelection; |
54 string _initialFileName; | 54 string _initialFileName; |
55 string _text; | 55 string _text; |
56 string _directory; | 56 string _folder; |
57 string[] _files; | 57 string[] _files; |
58 FileDialogFilter[] _filters; | 58 FileDialogFilter[] _filters; |
59 int _selectedFilter; | 59 int _selectedFilter; |
60 | 60 |
61 uint fileDialogType; | 61 uint fileDialogType; |
133 // TODO: make sure str is not a path? | 133 // TODO: make sure str is not a path? |
134 _initialFileName = str; | 134 _initialFileName = str; |
135 } | 135 } |
136 | 136 |
137 /** | 137 /** |
138 * Sets the directory that the FileDialog shows. If this is null, | 138 * Sets the folder that the FileDialog shows. If this is null, |
139 * the default directory is used when the dialog is first shown. | 139 * the default folder is used when the dialog is first shown. |
140 * After the dialog has been shown, this is set to the directory | 140 * After the dialog has been shown, this is set to the folder |
141 * the user was last looking at. | 141 * the user was last looking at. |
142 */ | 142 */ |
143 void directory(string str) { | 143 void folder(string str) { |
144 _directory = str; | 144 _folder = str; |
145 } | 145 } |
146 /// TODO: Should this be selectedDirectory ? | 146 /// TODO: Should this be selectedFolder ? |
147 string directory() { | 147 string folder() { |
148 return _directory; | 148 return _folder; |
149 } | 149 } |
150 | 150 |
151 /** | 151 /** |
152 * Gets the files selected by the user. | 152 * Gets the files selected by the user. |
153 * If the user did not type a file name extension, the correct one | 153 * If the user did not type a file name extension, the correct one |