12#include <imgui_node_editor.h>
23 if (ImGui::MenuItem(
"New Flow",
"Ctrl+N"))
36 if (ImGui::MenuItem(
"Open Flow",
"Ctrl+O"))
40 if (ImGui::BeginMenu(
"Open Recent",
false))
42 ImGui::MenuItem(
"fish_hat.c");
43 ImGui::MenuItem(
"fish_hat.inl");
44 ImGui::MenuItem(
"fish_hat.h");
45 ImGui::MenuItem(
"fish_hat.h");
48 ImGui::MenuItem(
"More...");
51 if (ImGui::MenuItem(
"Save",
"Ctrl+S"))
55 if (ImGui::MenuItem(
"Save As..",
"Ctrl+Shift+S"))
62 if (ImGui::MenuItem(
"Quit",
"Ctrl+Q"))
GlobalActions
Possible Global Actions to perform in the GUI.
@ SaveAs
Save the flow as filename.
void DeleteAllNodes()
Delete all nodes.
void SetCurrentFilename(const std::string &newFilename)
Set the current filename of the open flow.
void DiscardChanges()
Discards the unsaved changes flag. Does not really discard the changes.
bool HasUnsavedChanges()
Checks if the currently open flow has unsaved changes.
void SaveFlow(GlobalActions &globalAction)
Saves the current flow into a file.