-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
textreader: Initial implementation of a text reader for reading logs/…
…configs (eventually leading to an editor)
- Loading branch information
Joel16
committed
Sep 6, 2020
1 parent
8da8375
commit 73c8348
Showing
6 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "config.h" | ||
#include "gui.h" | ||
#include "imgui.h" | ||
#include "windows.h" | ||
|
||
TextReader text_reader; | ||
|
||
namespace Windows { | ||
void TextReaderWindow(void) { | ||
Windows::SetupWindow(); | ||
|
||
if (ImGui::Begin(item.selected_filename.c_str(), nullptr, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse)) { | ||
ImGui::SetNextWindowFocus(); | ||
ImGui::InputTextMultiline(item.selected_filename.c_str(), text_reader.buf, text_reader.buf_size, ImVec2(1270.0f, 660.0f)); | ||
} | ||
|
||
Windows::ExitWindow(); | ||
} | ||
} |