0.5.1
Loading...
Searching...
No Matches
EditMenu.cpp
Go to the documentation of this file.
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>
14
16{
17 if (ImGui::MenuItem("Cut", "CTRL+X", false, canCutOrCopyFlowElements()))
18 {
20 }
21 if (ImGui::MenuItem("Copy", "CTRL+C", false, canCutOrCopyFlowElements()))
22 {
24 }
25 if (ImGui::MenuItem("Paste", "CTRL+V", false, canPasteFlowElements()))
26 {
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}
Edit Menu.
Global Gui Actions.
Global windows.
void ShowEditMenu()
Show the edit menu dropdown.
Definition EditMenu.cpp:15
bool showNodeEditorStyleEditor
Flag whether the NodeEditor style editor windows should be displayed.
Definition Global.cpp:24
bool showFontSizeEditor
Flag whether the Font size editor window should be displayed.
Definition Global.cpp:26
bool showColormapEditor
Flag whether the Colormap editor window should be displayed.
Definition Global.cpp:27
bool showImPlotStyleEditor
Flag whether the ImPlot style editor windows should be displayed.
Definition Global.cpp:25
bool showScreenshotter
Flag whether the Screenshotter window should be displayed.
Definition Global.cpp:28
bool canPasteFlowElements()
Checks if elements can be pasted.
void copyFlowElements()
Copies the currently selected elements.
bool canCutOrCopyFlowElements()
Checks if elements can be cutted/copied.
void pasteFlowElements()
Pastes the copied/cutted elements.
void cutFlowElements()
Cuts the currently selected elements.