X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..cb3db09022512bcbb6c6c41dd6859ab9245186a1:/include/wx/univ/inphand.h diff --git a/include/wx/univ/inphand.h b/include/wx/univ/inphand.h index a28e976693..05c9d0e87b 100644 --- a/include/wx/univ/inphand.h +++ b/include/wx/univ/inphand.h @@ -13,10 +13,6 @@ #ifndef _WX_UNIV_INPHAND_H_ #define _WX_UNIV_INPHAND_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "inphand.h" -#endif - #include "wx/univ/inpcons.h" // for wxControlAction(s) // ---------------------------------------------------------------------------- @@ -47,8 +43,8 @@ class WXDLLEXPORT wxInputHandler : public wxObject { public: - // map a keyboard event to one or more actions (pressed == TRUE if the key - // was pressed, FALSE if released), returns TRUE if something was done + // map a keyboard event to one or more actions (pressed == true if the key + // was pressed, false if released), returns true if something was done virtual bool HandleKey(wxInputConsumer *consumer, const wxKeyEvent& event, bool pressed) = 0; @@ -67,12 +63,12 @@ public: // HandleMouseMove() as the mouse maybe over the control without it having // focus // - // return TRUE to refresh the control, FALSE otherwise + // return true to refresh the control, false otherwise virtual bool HandleFocus(wxInputConsumer *consumer, const wxFocusEvent& event); // react to the app getting/losing activation // - // return TRUE to refresh the control, FALSE otherwise + // return true to refresh the control, false otherwise virtual bool HandleActivation(wxInputConsumer *consumer, bool activated); // virtual dtor for any base class @@ -94,23 +90,23 @@ public: bool pressed) { return m_handler ? m_handler->HandleKey(consumer, event, pressed) - : FALSE; + : false; } virtual bool HandleMouse(wxInputConsumer *consumer, const wxMouseEvent& event) { - return m_handler ? m_handler->HandleMouse(consumer, event) : FALSE; + return m_handler ? m_handler->HandleMouse(consumer, event) : false; } virtual bool HandleMouseMove(wxInputConsumer *consumer, const wxMouseEvent& event) { - return m_handler ? m_handler->HandleMouseMove(consumer, event) : FALSE; + return m_handler ? m_handler->HandleMouseMove(consumer, event) : false; } virtual bool HandleFocus(wxInputConsumer *consumer, const wxFocusEvent& event) { - return m_handler ? m_handler->HandleFocus(consumer, event) : FALSE; + return m_handler ? m_handler->HandleFocus(consumer, event) : false; } private: