aboutsummaryrefslogtreecommitdiffstats
path: root/source/main.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-10-03 08:27:08 -0400
committerClyne Sullivan <clyne@bitgloo.com>2021-10-03 08:27:08 -0400
commit1cf4908a23dc5537be0bab1089ffcaa7079d5434 (patch)
treea78dfd5c527baeaf1cfe1397012b82d710bddbb3 /source/main.cpp
parent1c5a7e71cecb86a9682f825f6c20ecaeb445f32c (diff)
implement most of device features
Diffstat (limited to 'source/main.cpp')
-rw-r--r--source/main.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/main.cpp b/source/main.cpp
index 8c87081..ce1ea20 100644
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -37,11 +37,12 @@ extern void codeRenderMenu();
extern void codeRenderToolbar();
extern void codeRenderWidgets();
+extern void deviceRenderDraw();
extern void deviceRenderMenu();
extern void deviceRenderToolbar();
+extern void deviceRenderWidgets();
// Globals that live here
-std::string tempFileName;
bool done = false;
stmdsp::device *m_device = nullptr;
@@ -79,25 +80,29 @@ int main(int, char **)
ImGui::SetNextWindowPos({0, 22});
ImGui::SetNextWindowSize({WINDOW_WIDTH, WINDOW_HEIGHT - 22 - 200});
ImGui::Begin("main", nullptr,
- ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoDecoration);
+ ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoDecoration |
+ ImGuiWindowFlags_NoBringToFrontOnFocus);
// Render main controls (order is important).
ImGui::PushFont(fontSans);
codeRenderToolbar();
deviceRenderToolbar();
fileRenderDialog();
+ deviceRenderWidgets();
ImGui::PopFont();
ImGui::PushFont(fontMono);
codeRenderWidgets();
ImGui::SetNextWindowPos({0, WINDOW_HEIGHT - 200});
ImGui::SetNextWindowSize({WINDOW_WIDTH, 200});
- logView.Draw("log", nullptr, ImGuiWindowFlags_NoDecoration);
+ logView.Draw("log", nullptr, ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoBringToFrontOnFocus);
ImGui::PopFont();
// Finish main view rendering.
ImGui::End();
+ deviceRenderDraw();
+
// Draw everything to the screen.
ImGui::Render();
guiRender([] {