added SetModified() for people who find it easier to understand than MarkDirty/DiscardEdits (patch 1504449)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user