summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorAlexander Holland <alexander.holland@live.de>2019-02-14 00:52:51 +0100
committerAlexander Holland <alexander.holland@live.de>2019-06-26 16:32:34 +0200
commit8f23f4b44e043c6a7f69e96369e6c26fe9fd205b (patch)
treeda0490bd73cd1f90b48ab5b4544d77f673d35b9b /doc/classes
parentcb8d95dd4bc16fa014af7446abf7855255a7bf15 (diff)
UndoRedo add version changed signal
added some functions to manage undo buttons
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/UndoRedo.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/classes/UndoRedo.xml b/doc/classes/UndoRedo.xml
index c0b73cd8e3..b6e458b43f 100644
--- a/doc/classes/UndoRedo.xml
+++ b/doc/classes/UndoRedo.xml
@@ -141,6 +141,20 @@
This is useful mostly to check if something changed from a saved version.
</description>
</method>
+ <method name="has_redo">
+ <return type="bool">
+ </return>
+ <description>
+ Returns [code]true[/code] if an 'redo' action is available.
+ </description>
+ </method>
+ <method name="has_undo">
+ <return type="bool">
+ </return>
+ <description>
+ Returns [code]true[/code] if an 'undo' action is available.
+ </description>
+ </method>
<method name="is_commiting_action" qualifiers="const">
<return type="bool">
</return>
@@ -162,6 +176,13 @@
</description>
</method>
</methods>
+ <signals>
+ <signal name="version_changed">
+ <description>
+ Called when [method undo] or [method redo] was called.
+ </description>
+ </signal>
+ </signals>
<constants>
<constant name="MERGE_DISABLE" value="0" enum="MergeMode">
Makes [code]do[/code]/[code]undo[/code] operations stay in separate actions.