| 1 |
#pragma once |
| 2 |
|
| 3 |
// uncomment and modify defines under for customize ImGuiFileDialog |
| 4 |
|
| 5 |
//#define MAX_FILE_DIALOG_NAME_BUFFER 1024 |
| 6 |
//#define MAX_PATH_BUFFER_SIZE 1024 |
| 7 |
|
| 8 |
//#define USE_THUMBNAILS |
| 9 |
//the thumbnail generation use the stb_image and stb_resize lib who need to define the implementation |
| 10 |
//btw if you already use them in your app, you can have compiler error due to "implemntation found in double" |
| 11 |
//so uncomment these line for prevent the creation of implementation of these libs again |
| 12 |
//#define DONT_DEFINE_AGAIN__STB_IMAGE_IMPLEMENTATION |
| 13 |
//#define DONT_DEFINE_AGAIN__STB_IMAGE_RESIZE_IMPLEMENTATION |
| 14 |
//#define IMGUI_RADIO_BUTTON RadioButton |
| 15 |
//#define DisplayMode_ThumbailsList_ImageHeight 32.0f |
| 16 |
//#define tableHeaderFileThumbnailsString "Thumbnails" |
| 17 |
//#define DisplayMode_FilesList_ButtonString "FL" |
| 18 |
//#define DisplayMode_FilesList_ButtonHelp "File List" |
| 19 |
//#define DisplayMode_ThumbailsList_ButtonString "TL" |
| 20 |
//#define DisplayMode_ThumbailsList_ButtonHelp "Thumbnails List" |
| 21 |
// todo |
| 22 |
//#define DisplayMode_ThumbailsGrid_ButtonString "TG" |
| 23 |
//#define DisplayMode_ThumbailsGrid_ButtonHelp "Thumbnails Grid" |
| 24 |
|
| 25 |
|
| 26 |
//#define USE_EXPLORATION_BY_KEYS |
| 27 |
// this mapping by default is for GLFW but you can use another |
| 28 |
//#include <GLFW/glfw3.h> |
| 29 |
// Up key for explore to the top |
| 30 |
//#define IGFD_KEY_UP GLFW_KEY_UP |
| 31 |
// Down key for explore to the bottom |
| 32 |
//#define IGFD_KEY_DOWN GLFW_KEY_DOWN |
| 33 |
// Enter key for open directory |
| 34 |
//#define IGFD_KEY_ENTER GLFW_KEY_ENTER |
| 35 |
// BackSpace for comming back to the last directory |
| 36 |
//#define IGFD_KEY_BACKSPACE GLFW_KEY_BACKSPACE |
| 37 |
|
| 38 |
// by ex you can quit the dialog by pressing the key excape |
| 39 |
#define USE_DIALOG_EXIT_WITH_KEY |
| 40 |
#define IGFD_EXIT_KEY ImGuiKey_Escape |
| 41 |
|
| 42 |
// widget |
| 43 |
// filter combobox width |
| 44 |
//#define FILTER_COMBO_WIDTH 120.0f |
| 45 |
// button widget use for compose path |
| 46 |
//#define IMGUI_PATH_BUTTON ImGui::Button |
| 47 |
// standard button |
| 48 |
//#define IMGUI_BUTTON ImGui::Button |
| 49 |
|
| 50 |
// locales string |
| 51 |
//#define createDirButtonString "+" |
| 52 |
//#define okButtonString " OK" |
| 53 |
//#define cancelButtonString " Cancel" |
| 54 |
//#define resetButtonString "R" |
| 55 |
//#define drivesButtonString "Drives" |
| 56 |
//#define editPathButtonString "E" |
| 57 |
//#define searchString "Search" |
| 58 |
//#define dirEntryString "[DIR] " |
| 59 |
//#define linkEntryString "[LINK] " |
| 60 |
//#define fileEntryString "[FILE] " |
| 61 |
//#define fileNameString "File Name : " |
| 62 |
//#define dirNameString "Directory Path :" |
| 63 |
//#define buttonResetSearchString "Reset search" |
| 64 |
//#define buttonDriveString "Drives" |
| 65 |
//#define buttonEditPathString "Edit path\nYou can also right click on path buttons" |
| 66 |
//#define buttonResetPathString "Reset to current directory" |
| 67 |
//#define buttonCreateDirString "Create Directory" |
| 68 |
//#define OverWriteDialogTitleString "The file Already Exist !" |
| 69 |
//#define OverWriteDialogMessageString "Would you like to OverWrite it ?" |
| 70 |
//#define OverWriteDialogConfirmButtonString "Confirm" |
| 71 |
//#define OverWriteDialogCancelButtonString "Cancel" |
| 72 |
|
| 73 |
// DateTimeFormat |
| 74 |
// see strftime functionin <ctime> for customize |
| 75 |
// "%Y/%m/%d %H:%M" give 2021:01:22 11:47 |
| 76 |
// "%Y/%m/%d %i:%M%p" give 2021:01:22 11:45PM |
| 77 |
//#define DateTimeFormat "%Y/%m/%d %i:%M%p" |
| 78 |
|
| 79 |
// theses icons will appear in table headers |
| 80 |
#define USE_CUSTOM_SORTING_ICON |
| 81 |
#define tableHeaderAscendingIcon ICON_FA_CHEVRON_UP " " |
| 82 |
#define tableHeaderDescendingIcon ICON_FA_CHEVRON_DOWN " " |
| 83 |
//#define tableHeaderFileNameString " File name" |
| 84 |
//#define tableHeaderFileTypeString " Type" |
| 85 |
//#define tableHeaderFileSizeString " Size" |
| 86 |
//#define tableHeaderFileDateTimeString " Date" |
| 87 |
|
| 88 |
//#define USE_BOOKMARK |
| 89 |
//#define bookmarkPaneWith 150.0f |
| 90 |
//#define IMGUI_TOGGLE_BUTTON ToggleButton |
| 91 |
//#define bookmarksButtonString "Bookmark" |
| 92 |
//#define bookmarksButtonHelpString "Bookmark" |
| 93 |
//#define addBookmarkButtonString "+" |
| 94 |
//#define removeBookmarkButtonString "-" |