1 /**
2 A modified version of $(D FileDialog) used by the editor.
3 
4 Copyright:
5 Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.  
6 Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)  
7 Copyright (c) 2017-2018 Godot-D contributors  
8 
9 License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
10 
11 
12 */
13 module godot.editorfiledialog;
14 import std.meta : AliasSeq, staticIndexOf;
15 import std.traits : Unqual;
16 import godot.d.traits;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.globalenums;
22 import godot.object;
23 import godot.confirmationdialog;
24 import godot.acceptdialog;
25 import godot.windowdialog;
26 import godot.texture;
27 import godot.inputevent;
28 import godot.vboxcontainer;
29 /**
30 A modified version of $(D FileDialog) used by the editor.
31 */
32 @GodotBaseClass struct EditorFileDialog
33 {
34 	package(godot) enum string _GODOT_internal_name = "EditorFileDialog";
35 public:
36 @nogc nothrow:
37 	union { /** */ godot_object _godot_object; /** */ ConfirmationDialog _GODOT_base; }
38 	alias _GODOT_base this;
39 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
40 	package(godot) __gshared bool _classBindingInitialized = false;
41 	package(godot) static struct GDNativeClassBinding
42 	{
43 		__gshared:
44 		@GodotName("_action_pressed") GodotMethod!(void) _actionPressed;
45 		@GodotName("_cancel_pressed") GodotMethod!(void) _cancelPressed;
46 		@GodotName("_dir_entered") GodotMethod!(void, String) _dirEntered;
47 		@GodotName("_favorite_move_down") GodotMethod!(void) _favoriteMoveDown;
48 		@GodotName("_favorite_move_up") GodotMethod!(void) _favoriteMoveUp;
49 		@GodotName("_favorite_pressed") GodotMethod!(void) _favoritePressed;
50 		@GodotName("_favorite_selected") GodotMethod!(void, long) _favoriteSelected;
51 		@GodotName("_file_entered") GodotMethod!(void, String) _fileEntered;
52 		@GodotName("_filter_selected") GodotMethod!(void, long) _filterSelected;
53 		@GodotName("_go_back") GodotMethod!(void) _goBack;
54 		@GodotName("_go_forward") GodotMethod!(void) _goForward;
55 		@GodotName("_go_up") GodotMethod!(void) _goUp;
56 		@GodotName("_item_db_selected") GodotMethod!(void, long) _itemDbSelected;
57 		@GodotName("_item_list_item_rmb_selected") GodotMethod!(void, long, Vector2) _itemListItemRmbSelected;
58 		@GodotName("_item_list_rmb_clicked") GodotMethod!(void, Vector2) _itemListRmbClicked;
59 		@GodotName("_item_menu_id_pressed") GodotMethod!(void, long) _itemMenuIdPressed;
60 		@GodotName("_item_selected") GodotMethod!(void, long) _itemSelected;
61 		@GodotName("_items_clear_selection") GodotMethod!(void) _itemsClearSelection;
62 		@GodotName("_make_dir") GodotMethod!(void) _makeDir;
63 		@GodotName("_make_dir_confirm") GodotMethod!(void) _makeDirConfirm;
64 		@GodotName("_multi_selected") GodotMethod!(void, long, bool) _multiSelected;
65 		@GodotName("_recent_selected") GodotMethod!(void, long) _recentSelected;
66 		@GodotName("_save_confirm_pressed") GodotMethod!(void) _saveConfirmPressed;
67 		@GodotName("_select_drive") GodotMethod!(void, long) _selectDrive;
68 		@GodotName("_thumbnail_done") GodotMethod!(void, String, Texture, Texture, Variant) _thumbnailDone;
69 		@GodotName("_thumbnail_result") GodotMethod!(void, String, Texture, Texture, Variant) _thumbnailResult;
70 		@GodotName("_unhandled_input") GodotMethod!(void, InputEvent) _unhandledInput;
71 		@GodotName("_update_dir") GodotMethod!(void) _updateDir;
72 		@GodotName("_update_file_list") GodotMethod!(void) _updateFileList;
73 		@GodotName("_update_file_name") GodotMethod!(void) _updateFileName;
74 		@GodotName("add_filter") GodotMethod!(void, String) addFilter;
75 		@GodotName("clear_filters") GodotMethod!(void) clearFilters;
76 		@GodotName("get_access") GodotMethod!(EditorFileDialog.Access) getAccess;
77 		@GodotName("get_current_dir") GodotMethod!(String) getCurrentDir;
78 		@GodotName("get_current_file") GodotMethod!(String) getCurrentFile;
79 		@GodotName("get_current_path") GodotMethod!(String) getCurrentPath;
80 		@GodotName("get_display_mode") GodotMethod!(EditorFileDialog.DisplayMode) getDisplayMode;
81 		@GodotName("get_mode") GodotMethod!(EditorFileDialog.Mode) getMode;
82 		@GodotName("get_vbox") GodotMethod!(VBoxContainer) getVbox;
83 		@GodotName("invalidate") GodotMethod!(void) invalidate;
84 		@GodotName("is_overwrite_warning_disabled") GodotMethod!(bool) isOverwriteWarningDisabled;
85 		@GodotName("is_showing_hidden_files") GodotMethod!(bool) isShowingHiddenFiles;
86 		@GodotName("set_access") GodotMethod!(void, long) setAccess;
87 		@GodotName("set_current_dir") GodotMethod!(void, String) setCurrentDir;
88 		@GodotName("set_current_file") GodotMethod!(void, String) setCurrentFile;
89 		@GodotName("set_current_path") GodotMethod!(void, String) setCurrentPath;
90 		@GodotName("set_disable_overwrite_warning") GodotMethod!(void, bool) setDisableOverwriteWarning;
91 		@GodotName("set_display_mode") GodotMethod!(void, long) setDisplayMode;
92 		@GodotName("set_mode") GodotMethod!(void, long) setMode;
93 		@GodotName("set_show_hidden_files") GodotMethod!(void, bool) setShowHiddenFiles;
94 	}
95 	/// 
96 	pragma(inline, true) bool opEquals(in EditorFileDialog other) const
97 	{ return _godot_object.ptr is other._godot_object.ptr; }
98 	/// 
99 	pragma(inline, true) typeof(null) opAssign(typeof(null) n)
100 	{ _godot_object.ptr = n; return null; }
101 	/// 
102 	pragma(inline, true) bool opEquals(typeof(null) n) const
103 	{ return _godot_object.ptr is n; }
104 	/// 
105 	size_t toHash() const @trusted { return cast(size_t)_godot_object.ptr; }
106 	mixin baseCasts;
107 	/// Construct a new instance of EditorFileDialog.
108 	/// Note: use `memnew!EditorFileDialog` instead.
109 	static EditorFileDialog _new()
110 	{
111 		static godot_class_constructor constructor;
112 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("EditorFileDialog");
113 		if(constructor is null) return typeof(this).init;
114 		return cast(EditorFileDialog)(constructor());
115 	}
116 	@disable new(size_t s);
117 	/// 
118 	enum DisplayMode : int
119 	{
120 		/**
121 		The $(D EditorFileDialog) displays resources as thumbnails.
122 		*/
123 		displayThumbnails = 0,
124 		/**
125 		The $(D EditorFileDialog) displays resources as a list of filenames.
126 		*/
127 		displayList = 1,
128 	}
129 	/// 
130 	enum Mode : int
131 	{
132 		/**
133 		The $(D EditorFileDialog) can select only one file. Accepting the window will open the file.
134 		*/
135 		modeOpenFile = 0,
136 		/**
137 		The $(D EditorFileDialog) can select multiple files. Accepting the window will open all files.
138 		*/
139 		modeOpenFiles = 1,
140 		/**
141 		The $(D EditorFileDialog) can select only one directory. Accepting the window will open the directory.
142 		*/
143 		modeOpenDir = 2,
144 		/**
145 		The $(D EditorFileDialog) can select a file or directory. Accepting the window will open it.
146 		*/
147 		modeOpenAny = 3,
148 		/**
149 		The $(D EditorFileDialog) can select only one file. Accepting the window will save the file.
150 		*/
151 		modeSaveFile = 4,
152 	}
153 	/// 
154 	enum Access : int
155 	{
156 		/**
157 		The $(D EditorFileDialog) can only view `res://` directory contents.
158 		*/
159 		accessResources = 0,
160 		/**
161 		The $(D EditorFileDialog) can only view `user://` directory contents.
162 		*/
163 		accessUserdata = 1,
164 		/**
165 		The $(D EditorFileDialog) can view the entire local file system.
166 		*/
167 		accessFilesystem = 2,
168 	}
169 	/// 
170 	enum Constants : int
171 	{
172 		displayThumbnails = 0,
173 		accessResources = 0,
174 		modeOpenFile = 0,
175 		accessUserdata = 1,
176 		modeOpenFiles = 1,
177 		displayList = 1,
178 		accessFilesystem = 2,
179 		modeOpenDir = 2,
180 		modeOpenAny = 3,
181 		modeSaveFile = 4,
182 	}
183 	/**
184 	
185 	*/
186 	void _actionPressed()
187 	{
188 		Array _GODOT_args = Array.make();
189 		String _GODOT_method_name = String("_action_pressed");
190 		this.callv(_GODOT_method_name, _GODOT_args);
191 	}
192 	/**
193 	
194 	*/
195 	void _cancelPressed()
196 	{
197 		Array _GODOT_args = Array.make();
198 		String _GODOT_method_name = String("_cancel_pressed");
199 		this.callv(_GODOT_method_name, _GODOT_args);
200 	}
201 	/**
202 	
203 	*/
204 	void _dirEntered(in String arg0)
205 	{
206 		Array _GODOT_args = Array.make();
207 		_GODOT_args.append(arg0);
208 		String _GODOT_method_name = String("_dir_entered");
209 		this.callv(_GODOT_method_name, _GODOT_args);
210 	}
211 	/**
212 	
213 	*/
214 	void _favoriteMoveDown()
215 	{
216 		Array _GODOT_args = Array.make();
217 		String _GODOT_method_name = String("_favorite_move_down");
218 		this.callv(_GODOT_method_name, _GODOT_args);
219 	}
220 	/**
221 	
222 	*/
223 	void _favoriteMoveUp()
224 	{
225 		Array _GODOT_args = Array.make();
226 		String _GODOT_method_name = String("_favorite_move_up");
227 		this.callv(_GODOT_method_name, _GODOT_args);
228 	}
229 	/**
230 	
231 	*/
232 	void _favoritePressed()
233 	{
234 		Array _GODOT_args = Array.make();
235 		String _GODOT_method_name = String("_favorite_pressed");
236 		this.callv(_GODOT_method_name, _GODOT_args);
237 	}
238 	/**
239 	
240 	*/
241 	void _favoriteSelected(in long arg0)
242 	{
243 		Array _GODOT_args = Array.make();
244 		_GODOT_args.append(arg0);
245 		String _GODOT_method_name = String("_favorite_selected");
246 		this.callv(_GODOT_method_name, _GODOT_args);
247 	}
248 	/**
249 	
250 	*/
251 	void _fileEntered(in String arg0)
252 	{
253 		Array _GODOT_args = Array.make();
254 		_GODOT_args.append(arg0);
255 		String _GODOT_method_name = String("_file_entered");
256 		this.callv(_GODOT_method_name, _GODOT_args);
257 	}
258 	/**
259 	
260 	*/
261 	void _filterSelected(in long arg0)
262 	{
263 		Array _GODOT_args = Array.make();
264 		_GODOT_args.append(arg0);
265 		String _GODOT_method_name = String("_filter_selected");
266 		this.callv(_GODOT_method_name, _GODOT_args);
267 	}
268 	/**
269 	
270 	*/
271 	void _goBack()
272 	{
273 		Array _GODOT_args = Array.make();
274 		String _GODOT_method_name = String("_go_back");
275 		this.callv(_GODOT_method_name, _GODOT_args);
276 	}
277 	/**
278 	
279 	*/
280 	void _goForward()
281 	{
282 		Array _GODOT_args = Array.make();
283 		String _GODOT_method_name = String("_go_forward");
284 		this.callv(_GODOT_method_name, _GODOT_args);
285 	}
286 	/**
287 	
288 	*/
289 	void _goUp()
290 	{
291 		Array _GODOT_args = Array.make();
292 		String _GODOT_method_name = String("_go_up");
293 		this.callv(_GODOT_method_name, _GODOT_args);
294 	}
295 	/**
296 	
297 	*/
298 	void _itemDbSelected(in long arg0)
299 	{
300 		Array _GODOT_args = Array.make();
301 		_GODOT_args.append(arg0);
302 		String _GODOT_method_name = String("_item_db_selected");
303 		this.callv(_GODOT_method_name, _GODOT_args);
304 	}
305 	/**
306 	
307 	*/
308 	void _itemListItemRmbSelected(in long arg0, in Vector2 arg1)
309 	{
310 		Array _GODOT_args = Array.make();
311 		_GODOT_args.append(arg0);
312 		_GODOT_args.append(arg1);
313 		String _GODOT_method_name = String("_item_list_item_rmb_selected");
314 		this.callv(_GODOT_method_name, _GODOT_args);
315 	}
316 	/**
317 	
318 	*/
319 	void _itemListRmbClicked(in Vector2 arg0)
320 	{
321 		Array _GODOT_args = Array.make();
322 		_GODOT_args.append(arg0);
323 		String _GODOT_method_name = String("_item_list_rmb_clicked");
324 		this.callv(_GODOT_method_name, _GODOT_args);
325 	}
326 	/**
327 	
328 	*/
329 	void _itemMenuIdPressed(in long arg0)
330 	{
331 		Array _GODOT_args = Array.make();
332 		_GODOT_args.append(arg0);
333 		String _GODOT_method_name = String("_item_menu_id_pressed");
334 		this.callv(_GODOT_method_name, _GODOT_args);
335 	}
336 	/**
337 	
338 	*/
339 	void _itemSelected(in long arg0)
340 	{
341 		Array _GODOT_args = Array.make();
342 		_GODOT_args.append(arg0);
343 		String _GODOT_method_name = String("_item_selected");
344 		this.callv(_GODOT_method_name, _GODOT_args);
345 	}
346 	/**
347 	
348 	*/
349 	void _itemsClearSelection()
350 	{
351 		Array _GODOT_args = Array.make();
352 		String _GODOT_method_name = String("_items_clear_selection");
353 		this.callv(_GODOT_method_name, _GODOT_args);
354 	}
355 	/**
356 	
357 	*/
358 	void _makeDir()
359 	{
360 		Array _GODOT_args = Array.make();
361 		String _GODOT_method_name = String("_make_dir");
362 		this.callv(_GODOT_method_name, _GODOT_args);
363 	}
364 	/**
365 	
366 	*/
367 	void _makeDirConfirm()
368 	{
369 		Array _GODOT_args = Array.make();
370 		String _GODOT_method_name = String("_make_dir_confirm");
371 		this.callv(_GODOT_method_name, _GODOT_args);
372 	}
373 	/**
374 	
375 	*/
376 	void _multiSelected(in long arg0, in bool arg1)
377 	{
378 		Array _GODOT_args = Array.make();
379 		_GODOT_args.append(arg0);
380 		_GODOT_args.append(arg1);
381 		String _GODOT_method_name = String("_multi_selected");
382 		this.callv(_GODOT_method_name, _GODOT_args);
383 	}
384 	/**
385 	
386 	*/
387 	void _recentSelected(in long arg0)
388 	{
389 		Array _GODOT_args = Array.make();
390 		_GODOT_args.append(arg0);
391 		String _GODOT_method_name = String("_recent_selected");
392 		this.callv(_GODOT_method_name, _GODOT_args);
393 	}
394 	/**
395 	
396 	*/
397 	void _saveConfirmPressed()
398 	{
399 		Array _GODOT_args = Array.make();
400 		String _GODOT_method_name = String("_save_confirm_pressed");
401 		this.callv(_GODOT_method_name, _GODOT_args);
402 	}
403 	/**
404 	
405 	*/
406 	void _selectDrive(in long arg0)
407 	{
408 		Array _GODOT_args = Array.make();
409 		_GODOT_args.append(arg0);
410 		String _GODOT_method_name = String("_select_drive");
411 		this.callv(_GODOT_method_name, _GODOT_args);
412 	}
413 	/**
414 	
415 	*/
416 	void _thumbnailDone(VariantArg3)(in String arg0, Texture arg1, Texture arg2, in VariantArg3 arg3)
417 	{
418 		Array _GODOT_args = Array.make();
419 		_GODOT_args.append(arg0);
420 		_GODOT_args.append(arg1);
421 		_GODOT_args.append(arg2);
422 		_GODOT_args.append(arg3);
423 		String _GODOT_method_name = String("_thumbnail_done");
424 		this.callv(_GODOT_method_name, _GODOT_args);
425 	}
426 	/**
427 	
428 	*/
429 	void _thumbnailResult(VariantArg3)(in String arg0, Texture arg1, Texture arg2, in VariantArg3 arg3)
430 	{
431 		Array _GODOT_args = Array.make();
432 		_GODOT_args.append(arg0);
433 		_GODOT_args.append(arg1);
434 		_GODOT_args.append(arg2);
435 		_GODOT_args.append(arg3);
436 		String _GODOT_method_name = String("_thumbnail_result");
437 		this.callv(_GODOT_method_name, _GODOT_args);
438 	}
439 	/**
440 	
441 	*/
442 	void _unhandledInput(InputEvent arg0)
443 	{
444 		Array _GODOT_args = Array.make();
445 		_GODOT_args.append(arg0);
446 		String _GODOT_method_name = String("_unhandled_input");
447 		this.callv(_GODOT_method_name, _GODOT_args);
448 	}
449 	/**
450 	
451 	*/
452 	void _updateDir()
453 	{
454 		Array _GODOT_args = Array.make();
455 		String _GODOT_method_name = String("_update_dir");
456 		this.callv(_GODOT_method_name, _GODOT_args);
457 	}
458 	/**
459 	
460 	*/
461 	void _updateFileList()
462 	{
463 		Array _GODOT_args = Array.make();
464 		String _GODOT_method_name = String("_update_file_list");
465 		this.callv(_GODOT_method_name, _GODOT_args);
466 	}
467 	/**
468 	
469 	*/
470 	void _updateFileName()
471 	{
472 		Array _GODOT_args = Array.make();
473 		String _GODOT_method_name = String("_update_file_name");
474 		this.callv(_GODOT_method_name, _GODOT_args);
475 	}
476 	/**
477 	Adds a comma-delimited file extension filter option to the $(D EditorFileDialog) with an optional semi-colon-delimited label.
478 	For example, `"*.tscn, *.scn; Scenes"` results in filter text "Scenes (*.tscn, *.scn)".
479 	*/
480 	void addFilter(in String filter)
481 	{
482 		checkClassBinding!(typeof(this))();
483 		ptrcall!(void)(GDNativeClassBinding.addFilter, _godot_object, filter);
484 	}
485 	/**
486 	Removes all filters except for "All Files (*)".
487 	*/
488 	void clearFilters()
489 	{
490 		checkClassBinding!(typeof(this))();
491 		ptrcall!(void)(GDNativeClassBinding.clearFilters, _godot_object);
492 	}
493 	/**
494 	
495 	*/
496 	EditorFileDialog.Access getAccess() const
497 	{
498 		checkClassBinding!(typeof(this))();
499 		return ptrcall!(EditorFileDialog.Access)(GDNativeClassBinding.getAccess, _godot_object);
500 	}
501 	/**
502 	
503 	*/
504 	String getCurrentDir() const
505 	{
506 		checkClassBinding!(typeof(this))();
507 		return ptrcall!(String)(GDNativeClassBinding.getCurrentDir, _godot_object);
508 	}
509 	/**
510 	
511 	*/
512 	String getCurrentFile() const
513 	{
514 		checkClassBinding!(typeof(this))();
515 		return ptrcall!(String)(GDNativeClassBinding.getCurrentFile, _godot_object);
516 	}
517 	/**
518 	
519 	*/
520 	String getCurrentPath() const
521 	{
522 		checkClassBinding!(typeof(this))();
523 		return ptrcall!(String)(GDNativeClassBinding.getCurrentPath, _godot_object);
524 	}
525 	/**
526 	
527 	*/
528 	EditorFileDialog.DisplayMode getDisplayMode() const
529 	{
530 		checkClassBinding!(typeof(this))();
531 		return ptrcall!(EditorFileDialog.DisplayMode)(GDNativeClassBinding.getDisplayMode, _godot_object);
532 	}
533 	/**
534 	
535 	*/
536 	EditorFileDialog.Mode getMode() const
537 	{
538 		checkClassBinding!(typeof(this))();
539 		return ptrcall!(EditorFileDialog.Mode)(GDNativeClassBinding.getMode, _godot_object);
540 	}
541 	/**
542 	Returns the `VBoxContainer` used to display the file system.
543 	*/
544 	VBoxContainer getVbox()
545 	{
546 		checkClassBinding!(typeof(this))();
547 		return ptrcall!(VBoxContainer)(GDNativeClassBinding.getVbox, _godot_object);
548 	}
549 	/**
550 	Notify the $(D EditorFileDialog) that its view of the data is no longer accurate. Updates the view contents on next view update.
551 	*/
552 	void invalidate()
553 	{
554 		checkClassBinding!(typeof(this))();
555 		ptrcall!(void)(GDNativeClassBinding.invalidate, _godot_object);
556 	}
557 	/**
558 	
559 	*/
560 	bool isOverwriteWarningDisabled() const
561 	{
562 		checkClassBinding!(typeof(this))();
563 		return ptrcall!(bool)(GDNativeClassBinding.isOverwriteWarningDisabled, _godot_object);
564 	}
565 	/**
566 	
567 	*/
568 	bool isShowingHiddenFiles() const
569 	{
570 		checkClassBinding!(typeof(this))();
571 		return ptrcall!(bool)(GDNativeClassBinding.isShowingHiddenFiles, _godot_object);
572 	}
573 	/**
574 	
575 	*/
576 	void setAccess(in long access)
577 	{
578 		checkClassBinding!(typeof(this))();
579 		ptrcall!(void)(GDNativeClassBinding.setAccess, _godot_object, access);
580 	}
581 	/**
582 	
583 	*/
584 	void setCurrentDir(in String dir)
585 	{
586 		checkClassBinding!(typeof(this))();
587 		ptrcall!(void)(GDNativeClassBinding.setCurrentDir, _godot_object, dir);
588 	}
589 	/**
590 	
591 	*/
592 	void setCurrentFile(in String file)
593 	{
594 		checkClassBinding!(typeof(this))();
595 		ptrcall!(void)(GDNativeClassBinding.setCurrentFile, _godot_object, file);
596 	}
597 	/**
598 	
599 	*/
600 	void setCurrentPath(in String path)
601 	{
602 		checkClassBinding!(typeof(this))();
603 		ptrcall!(void)(GDNativeClassBinding.setCurrentPath, _godot_object, path);
604 	}
605 	/**
606 	
607 	*/
608 	void setDisableOverwriteWarning(in bool disable)
609 	{
610 		checkClassBinding!(typeof(this))();
611 		ptrcall!(void)(GDNativeClassBinding.setDisableOverwriteWarning, _godot_object, disable);
612 	}
613 	/**
614 	
615 	*/
616 	void setDisplayMode(in long mode)
617 	{
618 		checkClassBinding!(typeof(this))();
619 		ptrcall!(void)(GDNativeClassBinding.setDisplayMode, _godot_object, mode);
620 	}
621 	/**
622 	
623 	*/
624 	void setMode(in long mode)
625 	{
626 		checkClassBinding!(typeof(this))();
627 		ptrcall!(void)(GDNativeClassBinding.setMode, _godot_object, mode);
628 	}
629 	/**
630 	
631 	*/
632 	void setShowHiddenFiles(in bool show)
633 	{
634 		checkClassBinding!(typeof(this))();
635 		ptrcall!(void)(GDNativeClassBinding.setShowHiddenFiles, _godot_object, show);
636 	}
637 	/**
638 	The location from which the user may select a file, including `res://`, `user://`, and the local file system.
639 	*/
640 	@property EditorFileDialog.Access access()
641 	{
642 		return getAccess();
643 	}
644 	/// ditto
645 	@property void access(long v)
646 	{
647 		setAccess(v);
648 	}
649 	/**
650 	The currently occupied directory.
651 	*/
652 	@property String currentDir()
653 	{
654 		return getCurrentDir();
655 	}
656 	/// ditto
657 	@property void currentDir(String v)
658 	{
659 		setCurrentDir(v);
660 	}
661 	/**
662 	The currently selected file.
663 	*/
664 	@property String currentFile()
665 	{
666 		return getCurrentFile();
667 	}
668 	/// ditto
669 	@property void currentFile(String v)
670 	{
671 		setCurrentFile(v);
672 	}
673 	/**
674 	The file system path in the address bar.
675 	*/
676 	@property String currentPath()
677 	{
678 		return getCurrentPath();
679 	}
680 	/// ditto
681 	@property void currentPath(String v)
682 	{
683 		setCurrentPath(v);
684 	}
685 	/**
686 	If `true`, the $(D EditorFileDialog) will not warn the user before overwriting files.
687 	*/
688 	@property bool disableOverwriteWarning()
689 	{
690 		return isOverwriteWarningDisabled();
691 	}
692 	/// ditto
693 	@property void disableOverwriteWarning(bool v)
694 	{
695 		setDisableOverwriteWarning(v);
696 	}
697 	/**
698 	The view format in which the $(D EditorFileDialog) displays resources to the user.
699 	*/
700 	@property EditorFileDialog.DisplayMode displayMode()
701 	{
702 		return getDisplayMode();
703 	}
704 	/// ditto
705 	@property void displayMode(long v)
706 	{
707 		setDisplayMode(v);
708 	}
709 	/**
710 	The purpose of the $(D EditorFileDialog), which defines the allowed behaviors.
711 	*/
712 	@property EditorFileDialog.Mode mode()
713 	{
714 		return getMode();
715 	}
716 	/// ditto
717 	@property void mode(long v)
718 	{
719 		setMode(v);
720 	}
721 	/**
722 	If `true`, hidden files and directories will be visible in the $(D EditorFileDialog).
723 	*/
724 	@property bool showHiddenFiles()
725 	{
726 		return isShowingHiddenFiles();
727 	}
728 	/// ditto
729 	@property void showHiddenFiles(bool v)
730 	{
731 		setShowHiddenFiles(v);
732 	}
733 }