editor: apply pending updates

This commit is contained in:
2026-04-29 18:49:07 +08:00
parent fd6dc4ee4f
commit 626fe236bc
13 changed files with 844 additions and 872 deletions

View File

@@ -11,7 +11,7 @@
#include <XCEditor/Collections/UIEditorTreeDragDrop.h>
#include <XCEditor/Collections/UIEditorTreeViewInteraction.h>
#include <XCEditor/Foundation/UIEditorTextMeasurement.h>
#include <XCEditor/Menu/UIEditorMenuPopup.h>
#include <XCEditor/Menu/UIEditorMenuPopupInteraction.h>
#include <XCEditor/Panels/UIEditorHostedPanelDispatch.h>
#include <XCEngine/UI/DrawData.h>
@@ -137,6 +137,7 @@ private:
std::vector<Widgets::UIEditorMenuPopupItem> items = {};
Widgets::UIEditorMenuPopupLayout layout = {};
Widgets::UIEditorMenuPopupState widgetState = {};
UIEditorMenuPopupInteractionState interactionState = {};
};
struct BreadcrumbItemLayout {
@@ -213,7 +214,10 @@ private:
void CloseContextMenu();
void RebuildContextMenu();
bool HandleContextMenuEvent(const ::XCEngine::UI::UIInputEvent& event);
bool DispatchContextMenuItem(std::string_view itemId);
bool DispatchContextMenuItem(
std::string_view itemId,
std::string_view targetItemId,
bool forceCurrentFolder);
void AppendContextMenu(::XCEngine::UI::UIDrawList& drawList) const;
void ClearRenameState();
void SyncSelectionsFromRuntime();