Implement freeze/thaw in Do/Undo to considerably speed up commands with a large number of actions

This commit is contained in:
JulianSmart
2015-11-14 18:44:45 +00:00
parent f2bc1f5e1d
commit 1675e641e6

View File

@@ -6375,9 +6375,16 @@ public:
*/
wxList& GetActions() { return m_actions; }
/**
Indicate whether the control should be frozen when performing Do/Undo
*/
bool GetFreeze() const { return m_freeze; }
void SetFreeze(bool freeze) { m_freeze = freeze; }
protected:
wxList m_actions;
bool m_freeze;
};
/**
@@ -6448,6 +6455,11 @@ public:
*/
wxRichTextObject* GetObject() const { return m_object; }
/**
Returns the associated rich text control.
*/
wxRichTextCtrl* GetRichTextCtrl() const { return m_ctrl; }
/**
Stores the object to replace the one at the position defined by the container address
without making an address for it (cf SetObject() and MakeObject()).