move Freeze() and Thaw() to wxWindowBase to ensure that they behave consistently (i.e. recursively, as described in the docs) in all ports; removed different duplications of freeze count from derived classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -263,15 +263,6 @@ public:
|
||||
virtual void SelectAll();
|
||||
virtual void SetEditable(bool editable);
|
||||
|
||||
/// Call Freeze to prevent refresh
|
||||
virtual void Freeze();
|
||||
|
||||
/// Call Thaw to refresh
|
||||
virtual void Thaw();
|
||||
|
||||
/// Call Thaw to refresh
|
||||
virtual bool IsFrozen() const { return m_freezeCount > 0; }
|
||||
|
||||
virtual bool HasSelection() const;
|
||||
|
||||
///// Functionality specific to wxRichTextCtrl
|
||||
@@ -772,13 +763,11 @@ protected:
|
||||
|
||||
virtual void DoSetValue(const wxString& value, int flags = 0);
|
||||
|
||||
virtual void DoThaw();
|
||||
|
||||
|
||||
// Data members
|
||||
private:
|
||||
|
||||
/// Allows nested Freeze/Thaw
|
||||
int m_freezeCount;
|
||||
|
||||
#if wxRICHTEXT_BUFFERED_PAINTING
|
||||
/// Buffer bitmap
|
||||
wxBitmap m_bufferBitmap;
|
||||
|
Reference in New Issue
Block a user