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:
@@ -74,6 +74,8 @@ public:
|
||||
virtual void MarkDirty() wxOVERRIDE;
|
||||
virtual void DiscardEdits() wxOVERRIDE;
|
||||
|
||||
virtual void EmptyUndoBuffer() wxOVERRIDE;
|
||||
|
||||
// text control under some platforms supports the text styles: these
|
||||
// methods apply the given text style to the given selection or to
|
||||
// set/get the style which will be used for all appended text
|
||||
|
@@ -72,8 +72,6 @@ public:
|
||||
virtual bool CanUndo() const wxOVERRIDE;
|
||||
virtual bool CanRedo() const wxOVERRIDE;
|
||||
|
||||
virtual void EmptyUndoBuffer() wxOVERRIDE;
|
||||
|
||||
// Insertion point
|
||||
virtual void SetInsertionPoint(long pos) wxOVERRIDE;
|
||||
virtual void SetInsertionPointEnd() wxOVERRIDE;
|
||||
|
@@ -574,6 +574,8 @@ public:
|
||||
DiscardEdits();
|
||||
}
|
||||
|
||||
virtual void EmptyUndoBuffer() { }
|
||||
|
||||
|
||||
// styles handling
|
||||
// ---------------
|
||||
|
@@ -81,8 +81,6 @@ public:
|
||||
virtual bool CanUndo() const = 0;
|
||||
virtual bool CanRedo() const = 0;
|
||||
|
||||
virtual void EmptyUndoBuffer() { }
|
||||
|
||||
|
||||
// insertion point
|
||||
// ---------------
|
||||
|
Reference in New Issue
Block a user