X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/813edf09b3457f4b3298c8353cb623cb7e49bc89..1de1196ab3ad5c0f143870b1bf5568adcf383424:/include/wx/univ/inphand.h diff --git a/include/wx/univ/inphand.h b/include/wx/univ/inphand.h index d26a6e9ea4..6ddd55fcf6 100644 --- a/include/wx/univ/inphand.h +++ b/include/wx/univ/inphand.h @@ -7,13 +7,13 @@ // Created: 18.08.00 // RCS-ID: $Id$ // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com) -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #ifndef _WX_UNIV_INPHAND_H_ #define _WX_UNIV_INPHAND_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "inphand.h" #endif @@ -35,7 +35,9 @@ #define wxINP_HANDLER_SCROLLBAR _T("scrollbar") #define wxINP_HANDLER_SLIDER _T("slider") #define wxINP_HANDLER_SPINBTN _T("spinbtn") +#define wxINP_HANDLER_STATUSBAR _T("statusbar") #define wxINP_HANDLER_TEXTCTRL _T("textctrl") +#define wxINP_HANDLER_TOOLBAR _T("toolbar") #define wxINP_HANDLER_TOPLEVEL _T("toplevel") // ---------------------------------------------------------------------------- @@ -45,8 +47,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; @@ -65,12 +67,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 @@ -92,23 +94,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: