Line |
Branch |
Exec |
Source |
1 |
|
|
// This file is part of INSTINCT, the INS Toolkit for Integrated |
2 |
|
|
// Navigation Concepts and Training by the Institute of Navigation of |
3 |
|
|
// the University of Stuttgart, Germany. |
4 |
|
|
// |
5 |
|
|
// This Source Code Form is subject to the terms of the Mozilla Public |
6 |
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this |
7 |
|
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/. |
8 |
|
|
|
9 |
|
|
#include "DebugMenu.hpp" |
10 |
|
|
|
11 |
|
|
#include <imgui.h> |
12 |
|
|
|
13 |
|
|
#include "internal/gui/windows/Global.hpp" |
14 |
|
|
|
15 |
|
|
#include "internal/NodeManager.hpp" |
16 |
|
|
namespace nm = NAV::NodeManager; |
17 |
|
|
#include "internal/gui/NodeEditorApplication.hpp" |
18 |
|
|
|
19 |
|
✗ |
void NAV::gui::menus::ShowDebugMenu() |
20 |
|
|
{ |
21 |
|
✗ |
ImGui::MenuItem("Show ImGui Demo Window", nullptr, &gui::windows::showImGuiDemoWindow); |
22 |
|
✗ |
ImGui::MenuItem("Show ImPlot Demo Window", nullptr, &gui::windows::showImPlotDemoWindow); |
23 |
|
|
|
24 |
|
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) |
25 |
|
|
// TODO: The flow animations currently crash under windows |
26 |
|
|
ImGui::BeginDisabled(); |
27 |
|
|
#endif |
28 |
|
|
|
29 |
|
✗ |
ImGui::Checkbox("Show Callback Flow", &nm::showFlowWhenInvokingCallbacks); |
30 |
|
|
|
31 |
|
✗ |
ImGui::Checkbox("Show Notify Flow", &nm::showFlowWhenNotifyingValueChange); |
32 |
|
|
|
33 |
|
✗ |
ImGui::Checkbox("Show Queue size on pins", &NodeEditorApplication::_showQueueSizeOnPins); |
34 |
|
|
|
35 |
|
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) |
36 |
|
|
ImGui::EndDisabled(); |
37 |
|
|
#endif |
38 |
|
✗ |
} |
39 |
|
|
|