limeoats / l2dfiledialog Goto Github PK
View Code? Open in Web Editor NEWA C++ file dialog using Dear ImGui
License: Apache License 2.0
A C++ file dialog using Dear ImGui
License: Apache License 2.0
i have error " use of undeclared identifier 'strcpy_s' "
Would be hot if L2DFileDialog.h could be in it's own folder.
I could not find a way to switch file system volume (at least in Windows) from the UI, say moving from C: to D:
Did I miss something?
First of all, great work with the library! I'm just adding a listing of it to my Awesome Dear Imgui list and noticed that your license file is missing from the repo. I'll list it as Apache License as you've written in the readme.md file but let me know if that has changed.
Shouldn't this line append the current folder instead of the current file?
Suggested edit:
auto path = file_dialog_current_path + (file_dialog_current_path.back() == '\\' ? "" : "\\") + file_dialog_current_folder;
After all, that variable is the one that is checked in the if clause on line 330.
ImGui::GetWindowContentRegionWidth doesn't exits anymore on the docking branch
From changelog:
- 2021/08/23 (1.85) - removed GetWindowContentRegionWidth() function.
keep inline redirection helper. can use 'GetWindowContentRegionMax().x - GetWindowContentRegionMin().x'
instead for generally 'GetContentRegionAvail().x' is more useful.
Hi!
It seems to me that project doesn't have filepath support, only folder support. Please see this code snippet:
`
if (ImGui::Button("Choose")) {
if (**type == FileDialogType::SelectFolder**) {
if (fileDialogCurrentFolder == "") {
strcpy_s(fileDialogError, "Error: You must select a folder!");
}
else {
strcpy(buffer, (fileDialogCurrentPath + (fileDialogCurrentPath.back() == '\\' ? "" : "\\") + fileDialogCurrentFolder).c_str());
fileDialogFileSelectIndex = 0;
fileDialogFolderSelectIndex = 0;
fileDialogCurrentFile = "";
fileDialogOpen = false;
}
}
}`
You don't have type FileDialogType::OpenFile. I've made nessessary modifications, if you're willing I would like to share.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.