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.
|
#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< CanvasSizePresets > | ComboBoxOptions |
Protected Member Functions inherited from CanvasSizeToolbarSection | |
void | ToggleLineEditBoxes () |
Updates the state of the custom canvas size fields based on the currently selected index. More... | |
virtual void | AddSpecialPresets () |
Add any special entries in the combo box. | |
bool | ParseCanvasSizePresetsJson (const QJsonDocument &jsonDoc) |
Attempts to parse the canvas size presets JSON. More... | |
void | InitCanvasSizePresets () |
Initializes canvas size presets options via JSON file. More... | |
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 | |
EditorWindow * | m_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 |
ReferenceCanvasSizeToolbarSection provides controls to configure the reference canvas size (a.k.a. authored canvas size) or the canvas being edited