INSTINCT Code Coverage Report


Directory: src/
File: internal/gui/menus/EditMenu.cpp
Date: 2025-11-25 23:34:18
Exec Total Coverage
Lines: 0 14 0.0%
Functions: 0 1 0.0%
Branches: 0 6 0.0%

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 "EditMenu.hpp"
10
11 #include <imgui.h>
12 #include "internal/gui/GlobalActions.hpp"
13 #include "internal/gui/windows/Global.hpp"
14
15 ✗ void NAV::gui::menus::ShowEditMenu()
16 {
17 ✗ if (ImGui::MenuItem("Cut", "CTRL+X", false, canCutOrCopyFlowElements()))
18 {
19 ✗ cutFlowElements();
20 }
21 ✗ if (ImGui::MenuItem("Copy", "CTRL+C", false, canCutOrCopyFlowElements()))
22 {
23 ✗ copyFlowElements();
24 }
25 ✗ if (ImGui::MenuItem("Paste", "CTRL+V", false, canPasteFlowElements()))
26 {
27 ✗ pasteFlowElements();
28 }
29 ✗ ImGui::Separator();
30 ✗ ImGui::MenuItem("Node Editor Style", nullptr, &gui::windows::showNodeEditorStyleEditor);
31 ✗ ImGui::MenuItem("ImPlot Style", nullptr, &gui::windows::showImPlotStyleEditor);
32 ✗ ImGui::MenuItem("Font Size", nullptr, &gui::windows::showFontSizeEditor);
33 ✗ ImGui::MenuItem("Colormap Editor", nullptr, &gui::windows::showColormapEditor);
34 #ifdef IMGUI_IMPL_OPENGL_LOADER_GL3W
35 ✗ ImGui::MenuItem("Screenshots", nullptr, &gui::windows::showScreenshotter);
36 #endif
37 ✗ }
38