You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ModernFileDialogs/ModernFileDialogs.h
+42-12Lines changed: 42 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -28,42 +28,72 @@ SOFTWARE.
28
28
#include<string>
29
29
#include<vector>
30
30
31
-
//TODO Document
32
-
//TODO Multiple filters under the same name should be splitted by ';'s
33
-
//TODO Example: {"SomeFile", "*.SF;*.SomeFile}
31
+
/// <summary>
32
+
/// Open a Save File Dialog.
33
+
/// </summary>
34
+
/// <param name="title">Title for the Dialog.</param>
35
+
/// <param name="defaultPathAndFile">Sets a default path and file.</param>
36
+
/// <param name="filterPatterns">File filters (Separate multiple extensions for the same filter with a ';'. Example: {"Test File", "*.Test;*.TS"}.</param>
37
+
/// <param name="allFiles">Whether to add a filter for "All Files (*.*)" or not.</param>
38
+
/// <returns>Path of the Dialog or empty string.</returns>
//TODO Multiple filters under the same name should be splitted by ';'s
43
-
//TODO Example: {"SomeFile", "*.SF;*.SomeFile}
45
+
46
+
/// <summary>
47
+
/// Opens an Open File Dialog.
48
+
/// </summary>
49
+
/// <param name="title">Title for the Dialog.</param>
50
+
/// <param name="defaultPathAndFile">Sets a default path and file.</param>
51
+
/// <param name="filterPatterns">File filters (Separate multiple extensions for the same filter with a ';'. Example: {"Test File", "*.Test;*.TS"}.</param>
52
+
/// <param name="allowMultipleSelects">Whether to allow multiple file selections or not.</param>
53
+
/// <param name="allFiles">Whether to add a filter for "All Files (*.*)" or not.</param>
54
+
/// <returns>Path(s) of the Dialog or empty string or vector.</returns>
/// Opens an Open File Dialog for a single file.<br>
63
+
/// Alias for OpenFile();
64
+
/// </summary>
65
+
/// <param name="title">Title for the Dialog.</param>
66
+
/// <param name="defaultPathAndFile">Sets a default path and file.</param>
67
+
/// <param name="filterPatterns">File filters (Separate multiple extensions for the same filter with a ';'. Example: {"Test File", "*.Test;*.TS"}.</param>
68
+
/// <param name="allFiles">Whether to add a filter for "All Files (*.*)" or not.</param>
69
+
/// <returns>Path of the Dialog or empty string.</returns>
/// Opens an Open File Dialog for multiple files.<br>
77
+
/// Alias for OpenFile();
78
+
/// </summary>
79
+
/// <param name="title">Title for the Dialog.</param>
80
+
/// <param name="defaultPathAndFile">Sets a default path and file.</param>
81
+
/// <param name="filterPatterns">File filters (Separate multiple extensions for the same filter with a ';'. Example: {"Test File", "*.Test;*.TS"}.</param>
82
+
/// <param name="allFiles">Whether to add a filter for "All Files (*.*)" or not.</param>
83
+
/// <returns>Paths of the Dialog or empty vector.</returns>
0 commit comments