summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_win32.bat2
-rw-r--r--src/definitions.h3
-rw-r--r--src/main.cpp11
3 files changed, 13 insertions, 3 deletions
diff --git a/build_win32.bat b/build_win32.bat
index b6ef27b..f088e43 100644
--- a/build_win32.bat
+++ b/build_win32.bat
@@ -7,7 +7,7 @@ call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary
@set SOURCES=imgui/imgui*.cpp src/*.cpp imfiledialog/*.cpp
@set LIBS=opengl32.lib Advapi32.lib Shell32.lib bin/debug/data.obj bin/debug/icon.res
windres misc/icon.rc -O coff -o bin/debug/icon.res
-ld -r -b binary -o bin/debug/data.obj LICENSE misc/logo_64.png imgui/LICENSE imspinner/LICENSE misc/search.png misc/folder.png
+ld -r -b binary -o bin/debug/data.obj LICENSE misc/logo_64.png imgui/LICENSE imspinner/LICENSE imfiledialog/LICENSE misc/search.png misc/folder.png
mkdir %OUT_DIR%
cl /std:c++17 /nologo /Zi /MD /EHsc /utf-8 %INCLUDES% /D UNICODE /D _UNICODE %SOURCES% /Fe%OUT_DIR%/%OUT_EXE%.exe /Fd%OUT_DIR%/vc140.pdb /Fo%OUT_DIR%/ /link %LIBS%
if "%1"=="-r" call "bin/debug/text-search.exe"
diff --git a/src/definitions.h b/src/definitions.h
index ede3d3f..f023e84 100644
--- a/src/definitions.h
+++ b/src/definitions.h
@@ -15,6 +15,9 @@ extern unsigned char _binary_imgui_LICENSE_end[];
extern unsigned char _binary_imspinner_LICENSE_start[];
extern unsigned char _binary_imspinner_LICENSE_end[];
+extern unsigned char _binary_imfiledialog_LICENSE_start[];
+extern unsigned char _binary_imfiledialog_LICENSE_end[];
+
extern unsigned char _binary_misc_logo_64_png_start[];
extern unsigned char _binary_misc_logo_64_png_end[];
diff --git a/src/main.cpp b/src/main.cpp
index a709ef4..3b23ad0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -60,7 +60,7 @@ static void _ts_create_popups() {
// About window
if (ImGui::BeginPopupModal("About Text-Search", NULL, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) {
- ImGui::SetWindowSize({600, 400});
+ ImGui::SetWindowSize({600, 420});
char* name = "Text-Search";
char* link = "created by Aldrik Ramaekers <aldrik.ramaekers@gmail.com>";
@@ -97,6 +97,13 @@ static void _ts_create_popups() {
ImGui::TreePop();
}
+ if (ImGui::TreeNode("https://github.com/dfranx/ImFileDialog")) {
+ char* license = (char*)_binary_imfiledialog_LICENSE_start;
+ int license_length = _binary_imfiledialog_LICENSE_end - _binary_imfiledialog_LICENSE_start;
+ ImGui::Text("%.*s", license_length, license);
+ ImGui::TreePop();
+ }
+
if (ImGui::TreeNode("https://github.com/nothings/stb/blob/master/stb_image.h")) {
ImGui::Text("public domain");
ImGui::TreePop();
@@ -105,7 +112,7 @@ static void _ts_create_popups() {
if (ImGui::TreeNode("https://github.com/sheredom/utf8.h")) {
ImGui::Text("public domain");
ImGui::TreePop();
- }
+ }
}
ImGui::Dummy({0, 10});