You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: classes/class_acceptdialog.rst
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ A base dialog used for user notification.
21
21
Description
22
22
-----------
23
23
24
-
The default use of **AcceptDialog** is to allow it to only be accepted or closed, with the same result. However, the :ref:`confirmed<class_AcceptDialog_signal_confirmed>` and :ref:`canceled<class_AcceptDialog_signal_canceled>` signals allow to make the two actions different, and the :ref:`add_button<class_AcceptDialog_method_add_button>` method allows to add custom buttons and actions.
24
+
The default use of **AcceptDialog** is to allow it to only be accepted or closed, with the same result. However, the :ref:`confirmed<class_AcceptDialog_signal_confirmed>` and :ref:`canceled<class_AcceptDialog_signal_canceled>` signals allow to make the two actions different, and the :ref:`add_button()<class_AcceptDialog_method_add_button>` method allows to add custom buttons and actions.
If ``true``, the dialog will be hidden when the escape key (:ref:`@GlobalScope.KEY_ESCAPE<class_@GlobalScope_constant_KEY_ESCAPE>`) is pressed.
180
+
If ``true``, the dialog will be hidden when the ``ui_cancel`` action is pressed (by default, this action is bound to :ref:`@GlobalScope.KEY_ESCAPE<class_@GlobalScope_constant_KEY_ESCAPE>`).
177
181
178
182
.. rst-class:: classref-item-separator
179
183
@@ -219,14 +223,14 @@ The text displayed by the dialog.
Adds a button with label ``text`` and a custom ``action`` to the dialog and returns the created button. ``action`` will be passed to the :ref:`custom_action<class_AcceptDialog_signal_custom_action>` signal when pressed.
250
+
Adds a button with label ``text`` and a custom ``action`` to the dialog and returns the created button.
251
+
252
+
If ``action`` is not empty, pressing the button will emit the :ref:`custom_action<class_AcceptDialog_signal_custom_action>` signal with the specified action string.
247
253
248
254
If ``true``, ``right`` will place the button to the right of any sibling buttons.
249
255
250
-
You can use :ref:`remove_button<class_AcceptDialog_method_remove_button>` method to remove a button created with this method from the dialog.
256
+
You can use :ref:`remove_button()<class_AcceptDialog_method_remove_button>` method to remove a button created with this method from the dialog.
251
257
252
258
.. rst-class:: classref-item-separator
253
259
@@ -261,7 +267,7 @@ You can use :ref:`remove_button<class_AcceptDialog_method_remove_button>` method
261
267
262
268
Adds a button with label ``name`` and a cancel action to the dialog and returns the created button.
263
269
264
-
You can use :ref:`remove_button<class_AcceptDialog_method_remove_button>` method to remove a button created with this method from the dialog.
270
+
You can use :ref:`remove_button()<class_AcceptDialog_method_remove_button>` method to remove a button created with this method from the dialog.
265
271
266
272
.. rst-class:: classref-item-separator
267
273
@@ -313,7 +319,7 @@ Registers a :ref:`LineEdit<class_LineEdit>` in the dialog. When the enter key is
Removes the ``button`` from the dialog. Does NOT free the ``button``. The ``button`` must be a :ref:`Button<class_Button>` added with :ref:`add_button<class_AcceptDialog_method_add_button>` or :ref:`add_cancel_button<class_AcceptDialog_method_add_cancel_button>` method. After removal, pressing the ``button`` will no longer emit this dialog's :ref:`custom_action<class_AcceptDialog_signal_custom_action>` or :ref:`canceled<class_AcceptDialog_signal_canceled>` signals.
322
+
Removes the ``button`` from the dialog. Does NOT free the ``button``. The ``button`` must be a :ref:`Button<class_Button>` added with :ref:`add_button()<class_AcceptDialog_method_add_button>` or :ref:`add_cancel_button()<class_AcceptDialog_method_add_cancel_button>` method. After removal, pressing the ``button`` will no longer emit this dialog's :ref:`custom_action<class_AcceptDialog_signal_custom_action>` or :ref:`canceled<class_AcceptDialog_signal_canceled>` signals.
317
323
318
324
.. rst-class:: classref-section-separator
319
325
@@ -369,6 +375,7 @@ The size of the vertical space between the dialog's content and the button row.
369
375
The panel that fills the background of the window.
370
376
371
377
.. |virtual| replace:::abbr:`virtual(This method should typically be overridden by the user to have any effect.)`
378
+
.. |required| replace:::abbr:`required(This method is required to be overridden when extending its base class.)`
372
379
.. |const| replace:::abbr:`const(This method has no side effects. It doesn't modify any of the instance's member variables.)`
373
380
.. |vararg| replace:::abbr:`vararg(This method accepts any number of arguments after the ones described here.)`
374
381
.. |constructor| replace:::abbr:`constructor(This method is used to construct a type.)`
Get the current IV state for this context (IV gets updated when calling :ref:`update<class_AESContext_method_update>`). You normally don't need this function.
199
+
Get the current IV state for this context (IV gets updated when calling :ref:`update()<class_AESContext_method_update>`). You normally don't need this function.
200
200
201
201
\ **Note:** This function only makes sense when the context is started with :ref:`MODE_CBC_ENCRYPT<class_AESContext_constant_MODE_CBC_ENCRYPT>` or :ref:`MODE_CBC_DECRYPT<class_AESContext_constant_MODE_CBC_DECRYPT>`.
202
202
@@ -222,11 +222,12 @@ Start the AES context in the given ``mode``. A ``key`` of either 16 or 32 bytes
Run the desired operation for this AES context. Will return a :ref:`PackedByteArray<class_PackedByteArray>` containing the result of encrypting (or decrypting) the given ``src``. See :ref:`start<class_AESContext_method_start>` for mode of operation.
225
+
Run the desired operation for this AES context. Will return a :ref:`PackedByteArray<class_PackedByteArray>` containing the result of encrypting (or decrypting) the given ``src``. See :ref:`start()<class_AESContext_method_start>` for mode of operation.
226
226
227
227
\ **Note:** The size of ``src`` must be a multiple of 16. Apply some padding if needed.
228
228
229
229
.. |virtual| replace:::abbr:`virtual(This method should typically be overridden by the user to have any effect.)`
230
+
.. |required| replace:::abbr:`required(This method is required to be overridden when extending its base class.)`
230
231
.. |const| replace:::abbr:`const(This method has no side effects. It doesn't modify any of the instance's member variables.)`
231
232
.. |vararg| replace:::abbr:`vararg(This method accepts any number of arguments after the ones described here.)`
232
233
.. |constructor| replace:::abbr:`constructor(This method is used to construct a type.)`
0 commit comments