Open 3D Engine LyShine Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
EditorWindow Class Reference

Inherits QMainWindow, IEditorNotifyListener, UiEditorDLLBus::Handler, UiEditorChangeNotificationBus::Handler, UiEditorInternalRequestBus::Handler, UiEditorInternalNotificationBus::Handler, AzToolsFramework::AssetBrowser::AssetBrowserModelNotificationBus::Handler, UiEditorEntityContextNotificationBus::Handler, AzToolsFramework::EditorEvents::Bus::Handler, FontNotificationBus::Handler, and AZ::Debug::TraceMessageBus::Handler.

Classes

struct  UiCanvasTabMetadata
 

Public Slots

void RestoreEditorWindowSettings ()
 

Signals

void EditorModeChanged (UiEditorMode mode)
 
void SignalCoordinateSystemCycle ()
 
void SignalSnapToGridToggle ()
 

Public Member Functions

 EditorWindow (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 
void OnEditorNotifyEvent (EEditorNotifyEvent ev) override
 
LyShine::EntityArray GetSelectedElements () override
 
AZ::EntityId GetActiveCanvasId () override
 
UndoStackGetActiveUndoStack () override
 
void OpenSourceCanvasFile (QString absolutePathToFile) override
 
void OnEditorTransformPropertiesNeedRefresh () override
 
void OnEditorPropertiesRefreshEntireTree () override
 
AzToolsFramework::EntityIdList GetSelectedEntityIds () override
 
AZ::Entity::ComponentArrayType GetSelectedComponents () override
 
AZ::EntityId GetActiveCanvasEntityId () override
 
void OnSelectedEntitiesPropertyChanged () override
 
void OnBeginUndoableEntitiesChange () override
 
void OnEndUndoableEntitiesChange (const AZStd::string &commandText) override
 
void EntryAdded (const AzToolsFramework::AssetBrowser::AssetBrowserEntry *entry) override
 
void EntryRemoved (const AzToolsFramework::AssetBrowser::AssetBrowserEntry *entry) override
 
void OnSliceInstantiated (const AZ::Data::AssetId &sliceAssetId, const AZ::SliceComponent::SliceInstanceAddress &sliceAddress, const AzFramework::SliceInstantiationTicket &ticket) override
 
void OnSliceInstantiationFailed (const AZ::Data::AssetId &sliceAssetId, const AzFramework::SliceInstantiationTicket &ticket) override
 
void OnEscape () override
 
void OnFontsReloaded () override
 
bool OnPreError (const char *, const char *, int, const char *, const char *message) override
 
bool OnPreWarning (const char *, const char *, int, const char *, const char *) override
 
AZ::EntityId GetCanvas ()
 
HierarchyWidgetGetHierarchy ()
 
ViewportWidgetGetViewport ()
 
PropertiesWidgetGetProperties ()
 
MainToolbarGetMainToolbar ()
 
ModeToolbarGetModeToolbar ()
 
EnterPreviewToolbarGetEnterPreviewToolbar ()
 
PreviewToolbarGetPreviewToolbar ()
 
NewElementToolbarSectionGetNewElementToolbarSection ()
 
CoordinateSystemToolbarSectionGetCoordinateSystemToolbarSection ()
 
CanvasSizeToolbarSectionGetCanvasSizeToolbarSection ()
 
const QCursor & GetEntityPickerCursor ()
 
bool CanExitNow ()
 
UndoStackGetActiveStack ()
 
AssetTreeEntryGetSliceLibraryTree ()
 
UiEditorMode GetEditorMode ()
 Returns the current mode of the editor (Edit or Preview)
 
AZ::EntityId GetCanvasForCurrentEditorMode ()
 Returns the UI canvas for the current mode (Edit or Preview)
 
void ToggleEditorMode ()
 Toggle the editor mode between Edit and Preview.
 
AZ::EntityId GetPreviewModeCanvas ()
 Get the copy of the canvas that is used in Preview mode (will return invalid entity ID if not in preview mode)
 
AZ::Vector2 GetPreviewCanvasSize ()
 Get the preview canvas size. (0,0) means use viewport size.
 
void SetPreviewCanvasSize (AZ::Vector2 previewCanvasSize)
 Set the preview canvas size. (0,0) means use viewport size.
 
void SaveEditorWindowSettings ()
 
UiSliceManagerGetSliceManager ()
 
UiEditorEntityContextGetEntityContext ()
 
void ReplaceEntityContext (UiEditorEntityContext *entityContext)
 
QMenu * createPopupMenu () override
 
AZ::EntityId GetCanvasForEntityContext (const AzFramework::EntityContextId &contextId)
 
void EditSliceInNewTab (AZ::Data::AssetId sliceAssetId)
 Open a new tab and instantiate the given slice asset for editing in a special slice editing mode.
 
void UpdateChangedStatusOnAssetChange (const AzFramework::EntityContextId &contextId, const AZ::Data::Asset< AZ::Data::AssetData > &asset)
 Called if an asset has changed and been reloaded (used to detect if slice being edited is different to the one on disk)
 
void EntitiesAddedOrRemoved ()
 Called when any entities have been added to or removed from the active canvas.
 
void FontTextureHasChanged ()
 
void RefreshEditorMenu ()
 
void ShowEntitySearchModal ()
 

Static Public Member Functions

static const GUID & GetClassID ()
 

Protected Member Functions

void paintEvent (QPaintEvent *paintEvent) override
 
void closeEvent (QCloseEvent *closeEvent) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void dropEvent (QDropEvent *event) override
 

Member Function Documentation

◆ FontTextureHasChanged()

void EditorWindow::FontTextureHasChanged ( )

Called when any font texture has changed since the last render. Forces a render graph update for each loaded canvas


The documentation for this class was generated from the following file: