SpiecsEngine
 
Loading...
Searching...
No Matches
ImguiFile.cpp
Go to the documentation of this file.
1/**
2* @file ImguiFile.cpp.
3* @brief The ImguiFile Class Implementation.
4* @author Spices.
5*/
6
7#include "Pchheader.h"
8#include "ImguiFile.h"
9
10namespace Spices {
11
13 const std::string& panelName,
14 FrameInfo& frameInfo
15 )
16 : ImguiSlate(panelName, frameInfo)
17 {
19 }
20
22 {
24
25 /**
26 * @brief Begin render ImguiFileMenu.
27 */
28 if (ImGui::BeginMenu(m_PanelName.c_str()))
29 {
31
32 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_NEW_LABEL, New), "Ctrl+N")) {}
33 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_FOLDER_OPEN, Open), "Ctrl+O")) {}
34 if (ImGui::BeginMenu(ICON_TEXT(ICON_EMPTY, Open Rencent)))
35 {
36 ImGui::EndMenu();
37 }
38 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Import))) {}
39 if (ImGui::BeginMenu(ICON_TEXT(ICON_MD_NEW_LABEL, New From Stage Template)))
40 {
41 ImGui::EndMenu();
42 }
43 ImGui::Separator();
44 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_OPEN_IN_NEW, Re-open with New Edit Layer))) {}
45 ImGui::Separator();
46 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_SHARE, Share), false, false)) {}
47 ImGui::Separator();
48 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_SAVE, Save), "Ctrl+S")) {}
49 if (ImGui::MenuItem(ICON_TEXT(ICON_MD_SAVE, Save With Options), "Ctrl+Alt+S")) {}
50 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Save As...), "Shift+Ctrl+S")) {}
51 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Save Flattened As...))) {}
52 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Export), false, false)) {}
53 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Collect As...), false, false)) {}
54 ImGui::Separator();
55 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Add Reference))) {}
56 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Add Payload))) {}
57 ImGui::Separator();
58 if (ImGui::MenuItem(ICON_TEXT(ICON_EMPTY, Exit))) {}
59
60 /**
61 * @brief End ImguiFileMenu.
62 */
63 ImGui::EndMenu();
64 }
65 }
66}
#define ICON_TEXT(icon, text)
Definition ImguiHelper.h:24
#define ICON_EMPTY
Definition ImguiHelper.h:26
#define SPICES_PROFILE_ZONE
FrameInfo Class. This class defines the FrameInfo data.
Definition FrameInfo.h:32
static void MainMenuTitleSeparator()
Draw main menu titile separator.
The ImGuiH Class. This class defines helper function for slate render.
Definition ImguiHelper.h:61
virtual void OnRender() override
This interface is called On SlateRenderer Render.
Definition ImguiFile.cpp:21
ImguiFile(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function.
Definition ImguiFile.cpp:12
The ImguiFile Class. This class defines how to render a file menu.
Definition ImguiFile.h:18
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
Definition ImguiUtils.h:35
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
Definition ImguiUtils.h:27