]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/textctrl.h
Removed unused files.
[wxWidgets.git] / include / wx / textctrl.h
index 5a0d79ce658b5fb9b19b0f352f0f2a0f49f3056a..65e6b90d54d7863bd44cc1936db7116b22218df8 100644 (file)
@@ -331,6 +331,13 @@ public:
     // sets/clears the dirty flag
     virtual void MarkDirty() = 0;
     virtual void DiscardEdits() = 0;
+    void SetModified(bool modified)
+    {
+        if ( modified )
+            MarkDirty();
+        else
+            DiscardEdits();
+    }
 
     // set the max number of characters which may be entered in a single line
     // text control
@@ -424,6 +431,7 @@ protected:
     wxTextAttr m_defaultStyle;
 
     DECLARE_NO_COPY_CLASS(wxTextCtrlBase)
+    DECLARE_ABSTRACT_CLASS(wxTextCtrlBase)
 };
 
 // ----------------------------------------------------------------------------