Implement undo and redo for wxTextCtrl under Mac
Use the parent undo manager to implement these functions.
This commit is contained in:
@@ -136,12 +136,18 @@ public:
|
||||
|
||||
virtual void controlTextDidChange() wxOVERRIDE;
|
||||
|
||||
virtual bool CanUndo() const wxOVERRIDE;
|
||||
virtual void Undo() wxOVERRIDE;
|
||||
virtual bool CanRedo() const wxOVERRIDE;
|
||||
virtual void Redo() wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
void DoUpdateTextStyle();
|
||||
|
||||
NSScrollView* m_scrollView;
|
||||
NSTextView* m_textView;
|
||||
bool m_useCharWrapping;
|
||||
NSUndoManager* m_undoManager;
|
||||
};
|
||||
|
||||
class wxNSComboBoxControl : public wxNSTextFieldControl, public wxComboWidgetImpl
|
||||
|
Reference in New Issue
Block a user