Move EmptyUndoBuffer() from wxTextEntry to wxTextCtrl
It seems unlikely that we're ever going to need this function in any other classes inheriting from wxTextEntry (i.e. wxComboBox) and both existing implementations are for wxTextCtrl only, so define this function there. If really necessary, we can always lower it to wxTextEntry later, while moving it in the other direction wouldn't be easily possible due to compatibility concerns. This commit is best viewed with git --color-moved option.
This commit is contained in:
@@ -165,17 +165,6 @@ public:
|
||||
*/
|
||||
virtual bool CanUndo() const;
|
||||
|
||||
/**
|
||||
Delete the undo history.
|
||||
|
||||
Currently only implemented in wxMSW (for controls using wxTE_RICH2
|
||||
style only) and wxOSX (for multiline text controls only), does nothing
|
||||
in the other ports or for the controls not using the appropriate styles.
|
||||
|
||||
@since 3.1.6
|
||||
*/
|
||||
virtual void EmptyUndoBuffer();
|
||||
|
||||
/**
|
||||
Sets the new text control value.
|
||||
|
||||
|
Reference in New Issue
Block a user