X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e93ca17294b6da0d8cf63bffb0017cdfa0013df..19722331f8f7fb41a778ddf8ed2c66a4ace8b501:/include/wx/menuitem.h diff --git a/include/wx/menuitem.h b/include/wx/menuitem.h index f7f5cc3c72..dd3af54c3b 100644 --- a/include/wx/menuitem.h +++ b/include/wx/menuitem.h @@ -71,6 +71,7 @@ public: // what kind of menu item we are wxItemKind GetKind() const { return m_kind; } + void SetKind(wxItemKind kind) { m_kind = kind; } virtual void SetCheckable(bool checkable) { m_kind = checkable ? wxITEM_CHECK : wxITEM_NORMAL; } bool IsCheckable() const @@ -81,10 +82,10 @@ public: wxMenu *GetSubMenu() const { return m_subMenu; } // state - virtual void Enable(bool enable = TRUE) { m_isEnabled = enable; } + virtual void Enable(bool enable = true) { m_isEnabled = enable; } virtual bool IsEnabled() const { return m_isEnabled; } - virtual void Check(bool check = TRUE) { m_isChecked = check; } + virtual void Check(bool check = true) { m_isChecked = check; } virtual bool IsChecked() const { return m_isChecked; } void Toggle() { Check(!m_isChecked); } @@ -121,7 +122,7 @@ public: } protected: - int m_id; // numeric id of the item >= 0 or -1 + int m_id; // numeric id of the item >= 0 or wxID_ANY or wxID_SEPARATOR wxMenu *m_parentMenu, // the menu we belong to *m_subMenu; // our sub menu or NULL wxString m_text, // label of the item @@ -154,6 +155,8 @@ private: #else // !wxUSE_BASE_CLASSES_ONLY #if defined(__WXUNIVERSAL__) #include "wx/univ/menuitem.h" +#elif defined(__PALMOS__) + #include "wx/palmos/menuitem.h" #elif defined(__WXMSW__) #include "wx/msw/menuitem.h" #elif defined(__WXMOTIF__)