projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added overloads of ctor/insert/assign/append taking a pair of wxCStrData objects...
[wxWidgets.git]
/
include
/
wx
/
cmdproc.h
diff --git
a/include/wx/cmdproc.h
b/include/wx/cmdproc.h
index a74a3df5bf5eadc1178b100d5459d0dab07a82cf..cc39b0f31f87834e51031cfb9971be435caff4cf 100644
(file)
--- a/
include/wx/cmdproc.h
+++ b/
include/wx/cmdproc.h
@@
-26,7
+26,7
@@
class WXDLLEXPORT wxCommand : public wxObject
{
public:
wxCommand(bool canUndoIt = false, const wxString& name = wxEmptyString);
{
public:
wxCommand(bool canUndoIt = false, const wxString& name = wxEmptyString);
- ~wxCommand(){}
+
virtual
~wxCommand(){}
// Override this to perform a command
virtual bool Do() = 0;
// Override this to perform a command
virtual bool Do() = 0;
@@
-87,7
+87,8
@@
public:
#endif // wxUSE_MENUS
// command list access
#endif // wxUSE_MENUS
// command list access
- wxList& GetCommands() const { return (wxList&) m_commands; }
+ wxList& GetCommands() { return m_commands; }
+ const wxList& GetCommands() const { return m_commands; }
wxCommand *GetCurrentCommand() const
{
return (wxCommand *)(m_currentCommand ? m_currentCommand->GetData() : NULL);
wxCommand *GetCurrentCommand() const
{
return (wxCommand *)(m_currentCommand ? m_currentCommand->GetData() : NULL);