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

#include <CanvasSizeToolbarSection.h>

Inherits CanvasSizeToolbarSection.

Public Member Functions

 ReferenceCanvasSizeToolbarSection (QToolBar *parent, bool addSeparator=false)
 
- Public Member Functions inherited from CanvasSizeToolbarSection
 CanvasSizeToolbarSection (QToolBar *parent)
 
void InitWidgets (QToolBar *parent, bool addSeparator)
 
void SetInitialResolution (const AZ::Vector2 &canvasSize)
 
void SetIndex (int index)
 Change the combo box index. Called by undo/redo commands.
 
void SetCustomCanvasSize (AZ::Vector2 canvasSize, bool findPreset)
 Change the combo box index to that of the specified canvas size. Called by undo/redo commands.
 
const QString & IndexToString (int index)
 

Additional Inherited Members

- Protected Types inherited from CanvasSizeToolbarSection
typedef AZStd::vector< CanvasSizePresetsComboBoxOptions
 
- Protected Member Functions inherited from CanvasSizeToolbarSection
void ToggleLineEditBoxes ()
 Updates the state of the custom canvas size fields based on the currently selected index.
 
virtual void SetCanvasSizeByComboBoxIndex ()=0
 Sets the canvas size based on the current canvas ComboBox selection.
 
virtual void OnComboBoxIndexChanged (int index)=0
 Called when the user has changed the index.
 
virtual void AddSpecialPresets ()
 Add any special entries in the combo box.
 
bool ParseCanvasSizePresetsJson (const QJsonDocument &jsonDoc)
 Attempts to parse the canvas size presets JSON.
 
void InitCanvasSizePresets ()
 Initializes canvas size presets options via JSON file.
 
int GetPresetIndexFromSize (AZ::Vector2 size)
 Return a preset index based on specified canvas size.
 
void LineEditWidthEditingFinished ()
 Called when the user is finished entering text for custom canvas width size.
 
void LineEditHeightEditingFinished ()
 Called when the user is finished entering text for custom canvas height size.
 
void HandleIndexChanged ()
 Handle updates after index has changed.
 
int GetCustomSizeIndex ()
 
- Protected Attributes inherited from CanvasSizeToolbarSection
EditorWindowm_editorWindow
 
int m_comboIndex
 
bool m_isChangeUndoable
 
ComboBoxOptions m_canvasSizePresets
 
QComboBox * m_combobox
 
QLineEdit * m_lineEditCanvasWidth
 
QLabel * m_labelCustomSizeDelimiter
 
QLineEdit * m_lineEditCanvasHeight
 
QMetaObject::Connection m_lineEditCanvasWidthConnection
 
QMetaObject::Connection m_lineEditCanvasHeightConnection
 
QAction * m_canvasWidthAction
 
QAction * m_canvasDelimiterAction
 
QAction * m_canvasHeightAction
 

Detailed Description

ReferenceCanvasSizeToolbarSection provides controls to configure the reference canvas size (a.k.a. authored canvas size) or the canvas being edited


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