diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2022-01-09 12:28:19 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2022-01-09 12:28:19 -0500 |
commit | 1b176cf6cd75c8031a140961655cdd3c16589a68 (patch) | |
tree | 8415664e40a9a768d8c3a35fd81252bfdefb72f9 /source/file.cpp | |
parent | fde531e7c44ea917f745a9f800178fbe83fa19b5 (diff) |
small changes; sig gen square(), triangle(), pulse()
Diffstat (limited to 'source/file.cpp')
-rw-r--r-- | source/file.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/file.cpp b/source/file.cpp index a5ef1d8..fe5dafb 100644 --- a/source/file.cpp +++ b/source/file.cpp @@ -40,7 +40,7 @@ enum class FileAction { static FileAction fileAction = FileAction::None; static std::string fileCurrentPath; -static std::vector<std::filesystem::path> fileTemplateList; +static std::vector<std::filesystem::path> fileExampleList; static void saveCurrentFile() { @@ -66,9 +66,9 @@ static void openNewFile() editor.SetText(stmdsp::file_content); } -static std::vector<std::filesystem::path> fileScanTemplates() +static std::vector<std::filesystem::path> fileScanExamples() { - const auto path = std::filesystem::current_path() / "templates"; + const auto path = std::filesystem::current_path() / "examples"; const std::filesystem::recursive_directory_iterator rdi (path); std::vector<std::filesystem::path> list; @@ -83,7 +83,7 @@ static std::vector<std::filesystem::path> fileScanTemplates() void fileInit() { - fileTemplateList = fileScanTemplates(); + fileExampleList = fileScanExamples(); openNewFile(); } @@ -102,8 +102,8 @@ void fileRenderMenu() "ChooseFileOpenSave", "Choose File", ".cpp", "."); } - if (ImGui::BeginMenu("Open Template")) { - for (const auto& file : fileTemplateList) { + if (ImGui::BeginMenu("Open Example")) { + for (const auto& file : fileExampleList) { if (ImGui::MenuItem(file.filename().c_str())) { fileCurrentPath = file.string(); openCurrentFile(); |