/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Tools/Libs/GuiFoundation/Action/DocumentActions.h
58 строк
1 KB
Jan Krassnigg
Added asset specific help buttons (#1540)
20 апр 2025, 14:17
Не верифицирован
20 апр 2025, 14:17
ba2f80c
Код
Авторство
О чём код?
#pragma once #include <GuiFoundation/Action/BaseActions.h> #include <GuiFoundation/GuiFoundationDLL.h> /// class EZ_GUIFOUNDATION_DLL ezDocumentActions { public: static void RegisterActions(); static void UnregisterActions(); static void MapMenuActions(ezStringView sMapping, ezStringView sTargetMenu); static void MapToolbarActions(ezStringView sMapping); static void MapToolsActions(ezStringView sMapping); static ezActionDescriptorHandle s_hSaveCategory; static ezActionDescriptorHandle s_hSave; static ezActionDescriptorHandle s_hSaveAs; static ezActionDescriptorHandle s_hSaveAll; static ezActionDescriptorHandle s_hClose; static ezActionDescriptorHandle s_hCloseAll; static ezActionDescriptorHandle s_hCloseAllButThis; static ezActionDescriptorHandle s_hOpenContainingFolder; static ezActionDescriptorHandle s_hUpdatePrefabs; }; /// \brief Standard document actions. class EZ_GUIFOUNDATION_DLL ezDocumentAction : public ezButtonAction { EZ_ADD_DYNAMIC_REFLECTION(ezDocumentAction, ezButtonAction); public: enum class ButtonType { Save, SaveAs, SaveAll, Close, CloseAll, CloseAllButThis, OpenContainingFolder, UpdatePrefabs, }; ezDocumentAction(const ezActionContext& context, const char* szName, ButtonType button); ~ezDocumentAction(); virtual void Execute(const ezVariant& value) override; private: void DocumentEventHandler(const ezDocumentEvent& e); ButtonType m_ButtonType; };