Documentation wxCommand supplementation
Christoph Borgolte
cb at delta-h.de
Wed Aug 8 06:12:15 PDT 2007
wxCommand::CanUndo
/virtual/* bool* *CanUndo*() /const <- Is missing/
Returns true if the command can be undone, false otherwise.
____________________________________________
/"...canUndo/ tells the command processor whether this command is
undo-able. You can achieve the same functionality by overriding the
CanUndo member function (if for example the criteria for undoability is
context-dependent)..."
Since variable m_canUndo is protected it is sufficient to set m_canUndo
to false in derived classes, but this is a hint to implementation
details of wxCommand. So I'm not sure if this should be mentioned. But
otherwise: if not the variable should be private.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070808/cf0=
a292d/attachment.htm
More information about the wx-users
mailing list