This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <filesystem> | |
| #include <imgui.h> | |
| #define BIT(x) (1 << x) | |
| std::pair<bool, uint32_t> DirectoryTreeViewRecursive(const std::filesystem::path& path, uint32_t* count, int* selection_mask) | |
| { | |
| ImGuiTreeNodeFlags base_flags = ImGuiTreeNodeFlags_OpenOnArrow | ImGuiTreeNodeFlags_OpenOnDoubleClick | ImGuiTreeNodeFlags_SpanAvailWidth | ImGuiTreeNodeFlags_SpanFullWidth; | |
| bool any_node_clicked = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $userPath = $env:USERPROFILE | |
| $pathExclusions = New-Object System.Collections.ArrayList | |
| $processExclusions = New-Object System.Collections.ArrayList | |
| $pathExclusions.Add('C:\source\repos') > $null | |
| $pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
| $pathExclusions.Add('C:\Windows\assembly') > $null | |
| $pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
| $pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio Services') > $null | |
| $pathExclusions.Add($userPath + '\AppData\Local\GitCredentialManager') > $null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template<typename T> struct complete | |
| { | |
| bool good = true, done = false; | |
| T value; | |
| complete() {} | |
| complete(const T& t, bool g = true, bool d = false) : value(t), good(g), done(d) {} | |
| complete(T&& t, bool g = true, bool d = false) : value(t), good(g), done(d) {} | |
| }; | |
| void windowOpenPath(complete<fs::path>& dir, bool file = true) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "imgui_internal.h" | |
| int rotation_start_index; | |
| void ImRotateStart() | |
| { | |
| rotation_start_index = ImGui::GetWindowDrawList()->VtxBuffer.Size; | |
| } | |
| ImVec2 ImRotationCenter() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "imguitabwindow.h" | |
| #include <imgui_internal.h> | |
| #include <imgui.h> // intellisense | |
| // TODO: Clean this code, it's a mess! | |
| namespace ImGui { |