|
9 | 9 | // this options need c++17 |
10 | 10 | // #define USE_STD_FILESYSTEM |
11 | 11 |
|
12 | | -//#define MAX_FILE_DIALOG_NAME_BUFFER 1024 |
13 | | -//#define MAX_PATH_BUFFER_SIZE 1024 |
| 12 | +// #define MAX_FILE_DIALOG_NAME_BUFFER 1024 |
| 13 | +// #define MAX_PATH_BUFFER_SIZE 1024 |
14 | 14 |
|
15 | 15 | // the slash's buttons in path cna be used for quick select parallles directories |
16 | | -//#define USE_QUICK_PATH_SELECT |
| 16 | +// #define USE_QUICK_PATH_SELECT |
17 | 17 |
|
18 | | -// the spacing between button path's can be customized. |
| 18 | +// the spacing between button path's can be customized. |
19 | 19 | // if disabled the spacing is defined by the imgui theme |
20 | | -// define the space between path buttons |
21 | | -//#define CUSTOM_PATH_SPACING 2 |
22 | | - |
23 | | -//#define USE_THUMBNAILS |
24 | | -//the thumbnail generation use the stb_image and stb_resize lib who need to define the implementation |
25 | | -//btw if you already use them in your app, you can have compiler error due to "implemntation found in double" |
26 | | -//so uncomment these line for prevent the creation of implementation of these libs again |
27 | | -//#define DONT_DEFINE_AGAIN__STB_IMAGE_IMPLEMENTATION |
28 | | -//#define DONT_DEFINE_AGAIN__STB_IMAGE_RESIZE_IMPLEMENTATION |
29 | | -//#define IMGUI_RADIO_BUTTON RadioButton |
30 | | -//#define DisplayMode_ThumbailsList_ImageHeight 32.0f |
31 | | -//#define tableHeaderFileThumbnailsString "Thumbnails" |
32 | | -//#define DisplayMode_FilesList_ButtonString "FL" |
33 | | -//#define DisplayMode_FilesList_ButtonHelp "File List" |
34 | | -//#define DisplayMode_ThumbailsList_ButtonString "TL" |
35 | | -//#define DisplayMode_ThumbailsList_ButtonHelp "Thumbnails List" |
| 20 | +// define the space between path buttons |
| 21 | +// #define CUSTOM_PATH_SPACING 2 |
| 22 | + |
| 23 | +// #define USE_THUMBNAILS |
| 24 | +// the thumbnail generation use the stb_image and stb_resize lib who need to define the implementation |
| 25 | +// btw if you already use them in your app, you can have compiler error due to "implemntation found in double" |
| 26 | +// so uncomment these line for prevent the creation of implementation of these libs again |
| 27 | +// #define DONT_DEFINE_AGAIN__STB_IMAGE_IMPLEMENTATION |
| 28 | +// #define DONT_DEFINE_AGAIN__STB_IMAGE_RESIZE_IMPLEMENTATION |
| 29 | +// #define IMGUI_RADIO_BUTTON RadioButton |
| 30 | +// #define DisplayMode_ThumbailsList_ImageHeight 32.0f |
| 31 | +// #define tableHeaderFileThumbnailsString "Thumbnails" |
| 32 | +// #define DisplayMode_FilesList_ButtonString "FL" |
| 33 | +// #define DisplayMode_FilesList_ButtonHelp "File List" |
| 34 | +// #define DisplayMode_ThumbailsList_ButtonString "TL" |
| 35 | +// #define DisplayMode_ThumbailsList_ButtonHelp "Thumbnails List" |
36 | 36 | // todo |
37 | | -//#define DisplayMode_ThumbailsGrid_ButtonString "TG" |
38 | | -//#define DisplayMode_ThumbailsGrid_ButtonHelp "Thumbnails Grid" |
| 37 | +// #define DisplayMode_ThumbailsGrid_ButtonString "TG" |
| 38 | +// #define DisplayMode_ThumbailsGrid_ButtonHelp "Thumbnails Grid" |
39 | 39 |
|
40 | | -//#define USE_EXPLORATION_BY_KEYS |
| 40 | +// #define USE_EXPLORATION_BY_KEYS |
41 | 41 | // this mapping by default is for GLFW but you can use another |
42 | | -//#include <GLFW/glfw3.h> |
| 42 | +// #include <GLFW/glfw3.h> |
43 | 43 | // Up key for explore to the top |
44 | | -//#define IGFD_KEY_UP ImGuiKey_UpArrow |
| 44 | +// #define IGFD_KEY_UP ImGuiKey_UpArrow |
45 | 45 | // Down key for explore to the bottom |
46 | | -//#define IGFD_KEY_DOWN ImGuiKey_DownArrow |
| 46 | +// #define IGFD_KEY_DOWN ImGuiKey_DownArrow |
47 | 47 | // Enter key for open directory |
48 | | -//#define IGFD_KEY_ENTER ImGuiKey_Enter |
| 48 | +// #define IGFD_KEY_ENTER ImGuiKey_Enter |
49 | 49 | // BackSpace for comming back to the last directory |
50 | | -//#define IGFD_KEY_BACKSPACE ImGuiKey_Backspace |
| 50 | +// #define IGFD_KEY_BACKSPACE ImGuiKey_Backspace |
51 | 51 |
|
52 | 52 | // by ex you can quit the dialog by pressing the key excape |
53 | | -//#define USE_DIALOG_EXIT_WITH_KEY |
54 | | -//#define IGFD_EXIT_KEY ImGuiKey_Escape |
| 53 | +// #define USE_DIALOG_EXIT_WITH_KEY |
| 54 | +// #define IGFD_EXIT_KEY ImGuiKey_Escape |
55 | 55 |
|
56 | 56 | // widget |
57 | 57 | // begin combo widget |
58 | | -//#define IMGUI_BEGIN_COMBO ImGui::BeginCombo |
| 58 | +// #define IMGUI_BEGIN_COMBO ImGui::BeginCombo |
59 | 59 | // when auto resized, FILTER_COMBO_MIN_WIDTH will be considered has minimum width |
60 | 60 | // FILTER_COMBO_AUTO_SIZE is enabled by default now to 1 |
61 | 61 | // uncomment if you want disable |
62 | | -//#define FILTER_COMBO_AUTO_SIZE 0 |
| 62 | +// #define FILTER_COMBO_AUTO_SIZE 0 |
63 | 63 | // filter combobox width |
64 | | -//#define FILTER_COMBO_MIN_WIDTH 120.0f |
| 64 | +// #define FILTER_COMBO_MIN_WIDTH 120.0f |
65 | 65 | // button widget use for compose path |
66 | | -//#define IMGUI_PATH_BUTTON ImGui::Button |
| 66 | +// #define IMGUI_PATH_BUTTON ImGui::Button |
67 | 67 | // standard button |
68 | | -//#define IMGUI_BUTTON ImGui::Button |
| 68 | +// #define IMGUI_BUTTON ImGui::Button |
69 | 69 |
|
70 | 70 | // locales string |
71 | | -//#define createDirButtonString "+" |
72 | | -//#define resetButtonString "R" |
73 | | -//#define drivesButtonString "Drives" |
74 | | -//#define editPathButtonString "E" |
75 | | -//#define searchString "Search" |
76 | | -//#define dirEntryString "[DIR] " |
77 | | -//#define linkEntryString "[LINK] " |
78 | | -//#define fileEntryString "[FILE] " |
79 | | -//#define fileNameString "File Name : " |
80 | | -//#define dirNameString "Directory Path :" |
81 | | -//#define buttonResetSearchString "Reset search" |
82 | | -//#define buttonDriveString "Drives" |
83 | | -//#define buttonEditPathString "Edit path\nYou can also right click on path buttons" |
84 | | -//#define buttonResetPathString "Reset to current directory" |
85 | | -//#define buttonCreateDirString "Create Directory" |
86 | | -//#define OverWriteDialogTitleString "The file Already Exist !" |
87 | | -//#define OverWriteDialogMessageString "Would you like to OverWrite it ?" |
88 | | -//#define OverWriteDialogConfirmButtonString "Confirm" |
89 | | -//#define OverWriteDialogCancelButtonString "Cancel" |
90 | | - |
91 | | -//Validation buttons |
92 | | -//#define okButtonString " OK" |
93 | | -//#define okButtonWidth 0.0f |
94 | | -//#define cancelButtonString " Cancel" |
95 | | -//#define cancelButtonWidth 0.0f |
96 | | -//alignement [0:1], 0.0 is left, 0.5 middle, 1.0 right, and other ratios |
97 | | -//#define okCancelButtonAlignement 0.0f |
98 | | -//#define invertOkAndCancelButtons 0 |
| 71 | +// #define createDirButtonString "+" |
| 72 | +// #define resetButtonString "R" |
| 73 | +// #define drivesButtonString "Drives" |
| 74 | +// #define editPathButtonString "E" |
| 75 | +// #define searchString "Search" |
| 76 | +// #define dirEntryString "[DIR] " |
| 77 | +// #define linkEntryString "[LINK] " |
| 78 | +// #define fileEntryString "[FILE] " |
| 79 | +// #define fileNameString "File Name : " |
| 80 | +// #define dirNameString "Directory Path :" |
| 81 | +// #define buttonResetSearchString "Reset search" |
| 82 | +// #define buttonDriveString "Drives" |
| 83 | +// #define buttonEditPathString "Edit path\nYou can also right click on path buttons" |
| 84 | +// #define buttonResetPathString "Reset to current directory" |
| 85 | +// #define buttonCreateDirString "Create Directory" |
| 86 | +// #define OverWriteDialogTitleString "The file Already Exist !" |
| 87 | +// #define OverWriteDialogMessageString "Would you like to OverWrite it ?" |
| 88 | +// #define OverWriteDialogConfirmButtonString "Confirm" |
| 89 | +// #define OverWriteDialogCancelButtonString "Cancel" |
| 90 | + |
| 91 | +// Validation buttons |
| 92 | +// #define okButtonString " OK" |
| 93 | +// #define okButtonWidth 0.0f |
| 94 | +// #define cancelButtonString " Cancel" |
| 95 | +// #define cancelButtonWidth 0.0f |
| 96 | +// alignement [0:1], 0.0 is left, 0.5 middle, 1.0 right, and other ratios |
| 97 | +// #define okCancelButtonAlignement 0.0f |
| 98 | +// #define invertOkAndCancelButtons 0 |
99 | 99 |
|
100 | 100 | // DateTimeFormat |
101 | 101 | // see strftime functionin <ctime> for customize |
102 | 102 | // "%Y/%m/%d %H:%M" give 2021:01:22 11:47 |
103 | 103 | // "%Y/%m/%d %i:%M%p" give 2021:01:22 11:45PM |
104 | | -//#define DateTimeFormat "%Y/%m/%d %i:%M%p" |
| 104 | +// #define DateTimeFormat "%Y/%m/%d %i:%M%p" |
105 | 105 |
|
106 | 106 | // theses icons will appear in table headers |
107 | | -//#define USE_CUSTOM_SORTING_ICON |
108 | | -//#define tableHeaderAscendingIcon "A|" |
109 | | -//#define tableHeaderDescendingIcon "D|" |
110 | | -//#define tableHeaderFileNameString " File name" |
111 | | -//#define tableHeaderFileTypeString " Type" |
112 | | -//#define tableHeaderFileSizeString " Size" |
113 | | -//#define tableHeaderFileDateTimeString " Date" |
114 | | -//#define fileSizeBytes "o" |
115 | | -//#define fileSizeKiloBytes "Ko" |
116 | | -//#define fileSizeMegaBytes "Mo" |
117 | | -//#define fileSizeGigaBytes "Go" |
| 107 | +// #define USE_CUSTOM_SORTING_ICON |
| 108 | +// #define tableHeaderAscendingIcon "A|" |
| 109 | +// #define tableHeaderDescendingIcon "D|" |
| 110 | +// #define tableHeaderFileNameString " File name" |
| 111 | +// #define tableHeaderFileTypeString " Type" |
| 112 | +// #define tableHeaderFileSizeString " Size" |
| 113 | +// #define tableHeaderFileDateTimeString " Date" |
| 114 | +// #define fileSizeBytes "o" |
| 115 | +// #define fileSizeKiloBytes "Ko" |
| 116 | +// #define fileSizeMegaBytes "Mo" |
| 117 | +// #define fileSizeGigaBytes "Go" |
118 | 118 |
|
119 | 119 | // default table sort field (must be FIELD_FILENAME, FIELD_TYPE, FIELD_SIZE, FIELD_DATE or FIELD_THUMBNAILS) |
120 | | -//#define defaultSortField FIELD_FILENAME |
| 120 | +// #define defaultSortField FIELD_FILENAME |
121 | 121 |
|
122 | 122 | // default table sort order for each field (true => Descending, false => Ascending) |
123 | | -//#define defaultSortOrderFilename true |
124 | | -//#define defaultSortOrderType true |
125 | | -//#define defaultSortOrderSize true |
126 | | -//#define defaultSortOrderDate true |
127 | | -//#define defaultSortOrderThumbnails true |
128 | | - |
129 | | -//#define USE_PLACES_FEATURE |
130 | | -//#define placesPaneWith 150.0f |
131 | | -//#define IMGUI_TOGGLE_BUTTON ToggleButton |
132 | | -//#define placesButtonString "Place" |
133 | | -//#define placesButtonHelpString "Places" |
134 | | -//#define addPlaceButtonString "+" |
135 | | -//#define removePlaceButtonString "-" |
| 123 | +// #define defaultSortOrderFilename true |
| 124 | +// #define defaultSortOrderType true |
| 125 | +// #define defaultSortOrderSize true |
| 126 | +// #define defaultSortOrderDate true |
| 127 | +// #define defaultSortOrderThumbnails true |
| 128 | + |
| 129 | +// #define USE_PLACES_FEATURE |
| 130 | +// #define PLACES_PANE_DEFAULT_SHOWN false |
| 131 | +// #define placesPaneWith 150.0f |
| 132 | +// #define IMGUI_TOGGLE_BUTTON ToggleButton |
| 133 | +// #define placesButtonString "Place" |
| 134 | +// #define placesButtonHelpString "Places" |
| 135 | +// #define addPlaceButtonString "+" |
| 136 | +// #define removePlaceButtonString "-" |
| 137 | +// #define validatePlaceButtonString "ok" |
| 138 | +// #define editPlaceButtonString "E" |
136 | 139 |
|
137 | 140 | // a group for bookmarks will be added by default, but you can also create it yourself and many more |
138 | 141 | // #define USE_PLACES_BOOKMARKS |
139 | | -// #define PLACE_BOOKMARKS_NAME "Bookmarks" |
140 | | -// #define PLACE_BOOKMARKS_DISPLAY_ORDER 0 // to the first |
| 142 | +// #define placesBookmarksGroupName "Bookmarks" |
| 143 | +// #define placesBookmarksDisplayOrder 0 // to the first |
141 | 144 |
|
142 | 145 | // a group for system devices (returned by IFileSystem), but you can also add yours |
| 146 | +// by ex if you would like to display a specific icon for some devices |
143 | 147 | // #define USE_PLACES_DEVICES |
144 | | -// #define PLACE_DEVICES_NAME "Devices" |
145 | | -// #define PLACE_DEVICES_DISPLAY_ORDER 10 // to the end |
146 | | -// #define PLACE_DEVICES_ICON "" |
| 148 | +// #define placesDevicesGroupName "Devices" |
| 149 | +// #define placesDevicesDisplayOrder 10 // to the end |
0 commit comments