A menu that provides options for configuring ruler visibility, grid display, and camera locking for a viewport.
More...
|
|
void | init () |
| | Initializes the menu actions and connects signals.
|
|
|
DynamicPointer< Camera > | m_camera |
| | The camera whose settings are controlled.
|
|
Button * | m_combo |
| | The button that opens this menu.
|
|
Toggle * | m_horz_toggle |
| | The horizontal ruler visibility toggle.
|
|
bool | m_is_locked |
| | Whether the camera is currently locked.
|
|
bool | m_is_shown |
| | Whether the ruler is currently shown.
|
|
QWidgetAction * | m_lock_act |
| | The action for the camera lock toggle.
|
|
const void * | m_lock_ptr |
| | The pointer identifying the lock owner.
|
|
Toggle * | m_lock_toggle |
| | The camera lock toggle.
|
|
QMenu * | m_menu |
| | The popup menu containing ruler options.
|
|
TranslatedString | m_ruler_name |
| | The display name for the ruler.
|
|
QWidgetAction * | m_show_grid_act |
| | The action for the grid display toggle.
|
|
Toggle * | m_show_grid_toggle |
| | The grid display toggle.
|
|
QWidgetAction * | m_show_horz_act |
| | The action for the horizontal ruler toggle.
|
|
bool | m_show_lockable |
| | Whether the lock toggle option is available.
|
|
QWidgetAction * | m_show_vert_act |
| | The action for the vertical ruler toggle.
|
|
Toggle * | m_vert_toggle |
| | The vertical ruler visibility toggle.
|
|
QActionGroup * | m_view_mode_group |
| | The action group for mutually exclusive view modes.
|
A menu that provides options for configuring ruler visibility, grid display, and camera locking for a viewport.
Definition at line 243 of file Ruler.h.
◆ CameraRulerMenu() [1/2]
Constructs a CameraRulerMenu for the given camera and button.
- Parameters
-
| [in] | camera | The camera whose ruler settings are controlled. |
| [in] | combo | The button that opens this menu. |
| [in] | lock_ptr | A pointer used to identify the lock owner. |
◆ CameraRulerMenu() [2/2]
| CameraRulerMenu::CameraRulerMenu |
( |
Button * | combo, |
|
|
const void * | lock_ptr ) |
Constructs a CameraRulerMenu without an initial camera.
- Parameters
-
| [in] | combo | The button that opens this menu. |
| [in] | lock_ptr | A pointer used to identify the lock owner. |
◆ requestShowRuler()
| void CameraRulerMenu::requestShowRuler |
( |
bool | show_vertical, |
|
|
bool | show_horizontal ) |
Emitted when the user requests to change ruler visibility.
- Parameters
-
| [in] | show_vertical | Whether to show the vertical ruler. |
| [in] | show_horizontal | Whether to show the horizontal ruler. |
◆ setCamera()
Sets the camera whose ruler settings are controlled.
- Parameters
-
| [in] | camera | The camera to configure. |
◆ setLockPointer()
| void CameraRulerMenu::setLockPointer |
( |
const void * | lock_ptr | ) |
|
Sets the pointer used to identify the lock owner for the camera.
- Parameters
-
| [in] | lock_ptr | The lock owner pointer. |
◆ setShowRuler()
| void CameraRulerMenu::setShowRuler |
( |
const TranslatedString & | ruler_name, |
|
|
bool | show_vertical, |
|
|
bool | show_horizontal, |
|
|
bool | show_lockable ) |
Configures which ruler options are available in the menu.
- Parameters
-
| [in] | ruler_name | The display name for the ruler. |
| [in] | show_vertical | Whether the vertical ruler toggle is shown. |
| [in] | show_horizontal | Whether the horizontal ruler toggle is shown. |
| [in] | show_lockable | Whether the camera lock toggle is shown. |
The documentation for this class was generated from the following file: