PreviewCanvasSizeToolbarSection provides controls to configure the preview canvas size. More...
#include <CanvasSizeToolbarSection.h>
Inherits CanvasSizeToolbarSection.
Public Member Functions | |
| PreviewCanvasSizeToolbarSection (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. | |
| 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 | |
| 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 |
PreviewCanvasSizeToolbarSection provides controls to configure the preview canvas size.