X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8539643021f737aa840adaf59b642b8339020624..6012f61212b67d510e4a6393272e867a4ceb58c1:/include/wx/gtk/textctrl.h?ds=sidebyside diff --git a/include/wx/gtk/textctrl.h b/include/wx/gtk/textctrl.h index b801780273..b9b793eb19 100644 --- a/include/wx/gtk/textctrl.h +++ b/include/wx/gtk/textctrl.h @@ -144,8 +144,6 @@ public: void SetUpdateFont(bool WXUNUSED(update)) { } - void SetModified() { m_modified = true; } - // GTK+ textctrl is so dumb that you need to freeze/thaw it manually to // avoid horrible flicker/scrolling back and forth virtual void Freeze(); @@ -159,11 +157,19 @@ public: virtual void OnParentEnable( bool enable ) ; // tell the control to ignore next text changed signal - void IgnoreNextTextUpdate(); + void IgnoreNextTextUpdate() { m_ignoreNextUpdate = true; } // should we ignore the changed signal? always resets the flag bool IgnoreTextUpdate(); + // call this to indicate that the control is about to be changed + // programmatically and so m_modified flag shouldn't be set + void DontMarkDirtyOnNextChange() { m_dontMarkDirty = true; } + + // should we mark the control as dirty? always resets the flag + bool MarkDirtyOnChange(); + + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); @@ -189,6 +195,7 @@ private: bool m_modified:1; bool m_ignoreNextUpdate:1; + bool m_dontMarkDirty:1; // Our text buffer. Convenient, and holds the buffer while using // a dummy one when m_frozenness > 0