ayon_dialog
Ayon Marvelous Designer tools dialog module.
MDBtnToolsWidget
Bases: QWidget
Widget containing buttons which are clickable.
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
__init__(parent=None)
Ayon Marvelous Designer tools widget.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parent | QMainWindow | Parent widget. Defaults to None. | None |
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
MDToolsDialog
Bases: QDialog
Dialog with tool buttons that will stay opened until user close it.
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
__init__(*args, **kwargs)
Ayon Marvelous Designer tools dialog.
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | |
closeEvent(event)
Handle close event for the dialog.
Cleans up the dialog reference in WindowCache upon closing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event | QCloseEvent | The close event from Qt framework. | required |
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
106 107 108 109 110 111 112 113 114 115 | |
showEvent(event)
Handle show event for the dialog.
Applies stylesheet on first show to ensure proper styling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
event | QShowEvent | The show event from Qt framework. | required |
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
93 94 95 96 97 98 99 100 101 102 103 104 | |
sizeHint()
Override size hint to make dialog wider.
Returns:
| Name | Type | Description |
|---|---|---|
QSize | QSize | Size hint object with modified width. |
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
83 84 85 86 87 88 89 90 91 | |
WindowCache
Cached objects and methods to be used in global scope.
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
show_dialog() classmethod
Show the tools dialog window.
Creates a new dialog instance if none exists, then shows, raises, and activates the dialog window.
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
show_tools_dialog()
Show the Marvelous Designer tools dialog.
Creates and shows the tools dialog if it doesn't exist or isn't visible. The dialog provides access to Ayon tools like loader, publisher, scene inventory, and workfiles management.
Source code in client/ayon_marvelousdesigner/api/ayon_dialog.py
143 144 145 146 147 148 149 150 151 | |