Capture/ReleaseMouse() prefixed with Do for the other ports (OS/2, MGL, Motif, Mac)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -81,8 +81,6 @@ public:
|
|||||||
virtual void SetFocus();
|
virtual void SetFocus();
|
||||||
|
|
||||||
virtual void WarpPointer(int x, int y);
|
virtual void WarpPointer(int x, int y);
|
||||||
virtual void CaptureMouse();
|
|
||||||
virtual void ReleaseMouse();
|
|
||||||
|
|
||||||
virtual void Refresh( bool eraseBackground = TRUE,
|
virtual void Refresh( bool eraseBackground = TRUE,
|
||||||
const wxRect *rect = (const wxRect *) NULL );
|
const wxRect *rect = (const wxRect *) NULL );
|
||||||
@@ -290,6 +288,9 @@ protected:
|
|||||||
int sizeFlags = wxSIZE_AUTO);
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
virtual void DoSetClientSize(int width, int height);
|
virtual void DoSetClientSize(int width, int height);
|
||||||
|
|
||||||
|
virtual void DoCaptureMouse();
|
||||||
|
virtual void DoReleaseMouse();
|
||||||
|
|
||||||
// move the window to the specified location and resize it: this is called
|
// move the window to the specified location and resize it: this is called
|
||||||
// from both DoSetSize() and DoSetClientSize() and would usually just call
|
// from both DoSetSize() and DoSetClientSize() and would usually just call
|
||||||
// ::MoveWindow() except for composite controls which will want to arrange
|
// ::MoveWindow() except for composite controls which will want to arrange
|
||||||
|
@@ -62,8 +62,6 @@ public:
|
|||||||
virtual bool Reparent(wxWindowBase *newParent);
|
virtual bool Reparent(wxWindowBase *newParent);
|
||||||
|
|
||||||
virtual void WarpPointer(int x, int y);
|
virtual void WarpPointer(int x, int y);
|
||||||
virtual void CaptureMouse();
|
|
||||||
virtual void ReleaseMouse();
|
|
||||||
|
|
||||||
virtual void Refresh(bool eraseBackground = TRUE,
|
virtual void Refresh(bool eraseBackground = TRUE,
|
||||||
const wxRect *rect = (const wxRect *) NULL);
|
const wxRect *rect = (const wxRect *) NULL);
|
||||||
@@ -128,6 +126,9 @@ protected:
|
|||||||
int sizeFlags = wxSIZE_AUTO);
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
virtual void DoSetClientSize(int width, int height);
|
virtual void DoSetClientSize(int width, int height);
|
||||||
|
|
||||||
|
virtual void DoCaptureMouse();
|
||||||
|
virtual void DoReleaseMouse();
|
||||||
|
|
||||||
// move the window to the specified location and resize it: this is called
|
// move the window to the specified location and resize it: this is called
|
||||||
// from both DoSetSize() and DoSetClientSize() and would usually just call
|
// from both DoSetSize() and DoSetClientSize() and would usually just call
|
||||||
// ::MoveWindow() except for composite controls which will want to arrange
|
// ::MoveWindow() except for composite controls which will want to arrange
|
||||||
|
@@ -63,8 +63,6 @@ public:
|
|||||||
virtual void SetFocus();
|
virtual void SetFocus();
|
||||||
|
|
||||||
virtual void WarpPointer(int x, int y);
|
virtual void WarpPointer(int x, int y);
|
||||||
virtual void CaptureMouse();
|
|
||||||
virtual void ReleaseMouse();
|
|
||||||
|
|
||||||
virtual void Refresh( bool eraseBackground = TRUE,
|
virtual void Refresh( bool eraseBackground = TRUE,
|
||||||
const wxRect *rect = (const wxRect *) NULL );
|
const wxRect *rect = (const wxRect *) NULL );
|
||||||
@@ -317,6 +315,9 @@ protected:
|
|||||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
virtual bool DoPopupMenu(wxMenu *menu, int x, int y);
|
virtual bool DoPopupMenu(wxMenu *menu, int x, int y);
|
||||||
|
|
||||||
|
virtual void DoCaptureMouse();
|
||||||
|
virtual void DoReleaseMouse();
|
||||||
|
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
virtual void DoSetToolTip( wxToolTip *tip );
|
virtual void DoSetToolTip( wxToolTip *tip );
|
||||||
#endif // wxUSE_TOOLTIPS
|
#endif // wxUSE_TOOLTIPS
|
||||||
|
@@ -99,8 +99,6 @@ public:
|
|||||||
virtual void WarpPointer( int x
|
virtual void WarpPointer( int x
|
||||||
,int y
|
,int y
|
||||||
);
|
);
|
||||||
virtual void CaptureMouse(void);
|
|
||||||
virtual void ReleaseMouse(void);
|
|
||||||
virtual void Refresh( bool bEraseBackground = TRUE
|
virtual void Refresh( bool bEraseBackground = TRUE
|
||||||
,const wxRect* pRect = (const wxRect *)NULL
|
,const wxRect* pRect = (const wxRect *)NULL
|
||||||
);
|
);
|
||||||
@@ -522,6 +520,9 @@ protected:
|
|||||||
,int nHeight
|
,int nHeight
|
||||||
);
|
);
|
||||||
|
|
||||||
|
virtual void DoCaptureMouse(void);
|
||||||
|
virtual void DoReleaseMouse(void);
|
||||||
|
|
||||||
// move the window to the specified location and resize it: this is called
|
// move the window to the specified location and resize it: this is called
|
||||||
// from both DoSetSize() and DoSetClientSize() and would usually just call
|
// from both DoSetSize() and DoSetClientSize() and would usually just call
|
||||||
// ::WinSetWindowPos() except for composite controls which will want to arrange
|
// ::WinSetWindowPos() except for composite controls which will want to arrange
|
||||||
|
@@ -254,7 +254,7 @@ bool wxWindowMac::Enable(bool enable)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowMac::CaptureMouse()
|
void wxWindowMac::DoCaptureMouse()
|
||||||
{
|
{
|
||||||
wxTheApp->s_captureWindow = this ;
|
wxTheApp->s_captureWindow = this ;
|
||||||
}
|
}
|
||||||
@@ -264,7 +264,7 @@ wxWindow* wxWindowBase::GetCapture()
|
|||||||
return wxTheApp->s_captureWindow ;
|
return wxTheApp->s_captureWindow ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowMac::ReleaseMouse()
|
void wxWindowMac::DoReleaseMouse()
|
||||||
{
|
{
|
||||||
wxTheApp->s_captureWindow = NULL ;
|
wxTheApp->s_captureWindow = NULL ;
|
||||||
}
|
}
|
||||||
|
@@ -254,7 +254,7 @@ bool wxWindowMac::Enable(bool enable)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowMac::CaptureMouse()
|
void wxWindowMac::DoCaptureMouse()
|
||||||
{
|
{
|
||||||
wxTheApp->s_captureWindow = this ;
|
wxTheApp->s_captureWindow = this ;
|
||||||
}
|
}
|
||||||
@@ -264,7 +264,7 @@ wxWindow* wxWindowBase::GetCapture()
|
|||||||
return wxTheApp->s_captureWindow ;
|
return wxTheApp->s_captureWindow ;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowMac::ReleaseMouse()
|
void wxWindowMac::DoReleaseMouse()
|
||||||
{
|
{
|
||||||
wxTheApp->s_captureWindow = NULL ;
|
wxTheApp->s_captureWindow = NULL ;
|
||||||
}
|
}
|
||||||
|
@@ -709,7 +709,7 @@ void wxWindowMGL::Lower()
|
|||||||
MGL_wmLowerWindow(m_wnd);
|
MGL_wmLowerWindow(m_wnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowMGL::CaptureMouse()
|
void wxWindowMGL::DoCaptureMouse()
|
||||||
{
|
{
|
||||||
if ( gs_mouseCapture )
|
if ( gs_mouseCapture )
|
||||||
MGL_wmUncaptureEvents(gs_mouseCapture->m_wnd, wxMGL_CAPTURE_MOUSE);
|
MGL_wmUncaptureEvents(gs_mouseCapture->m_wnd, wxMGL_CAPTURE_MOUSE);
|
||||||
@@ -718,7 +718,7 @@ void wxWindowMGL::CaptureMouse()
|
|||||||
MGL_wmCaptureEvents(m_wnd, EVT_MOUSEEVT, wxMGL_CAPTURE_MOUSE);
|
MGL_wmCaptureEvents(m_wnd, EVT_MOUSEEVT, wxMGL_CAPTURE_MOUSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindowMGL::ReleaseMouse()
|
void wxWindowMGL::DoReleaseMouse()
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( gs_mouseCapture == this, wxT("attempt to release mouse, but this window hasn't captured it") )
|
wxASSERT_MSG( gs_mouseCapture == this, wxT("attempt to release mouse, but this window hasn't captured it") )
|
||||||
|
|
||||||
|
@@ -713,7 +713,7 @@ wxString wxWindow::GetTitle() const
|
|||||||
return wxString(title);
|
return wxString(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindow::CaptureMouse()
|
void wxWindow::DoCaptureMouse()
|
||||||
{
|
{
|
||||||
g_captureWindow = this;
|
g_captureWindow = this;
|
||||||
if ( m_winCaptured )
|
if ( m_winCaptured )
|
||||||
@@ -726,7 +726,7 @@ void wxWindow::CaptureMouse()
|
|||||||
m_winCaptured = TRUE;
|
m_winCaptured = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWindow::ReleaseMouse()
|
void wxWindow::DoReleaseMouse()
|
||||||
{
|
{
|
||||||
g_captureWindow = NULL;
|
g_captureWindow = NULL;
|
||||||
if ( !m_winCaptured )
|
if ( !m_winCaptured )
|
||||||
|
@@ -541,7 +541,7 @@ wxString wxWindowOS2::GetTitle() const
|
|||||||
return wxGetWindowText(GetHWND());
|
return wxGetWindowText(GetHWND());
|
||||||
} // end of wxWindowOS2::GetTitle
|
} // end of wxWindowOS2::GetTitle
|
||||||
|
|
||||||
void wxWindowOS2::CaptureMouse()
|
void wxWindowOS2::DoCaptureMouse()
|
||||||
{
|
{
|
||||||
HWND hWnd = GetHwnd();
|
HWND hWnd = GetHwnd();
|
||||||
|
|
||||||
@@ -552,7 +552,7 @@ void wxWindowOS2::CaptureMouse()
|
|||||||
}
|
}
|
||||||
} // end of wxWindowOS2::GetTitle
|
} // end of wxWindowOS2::GetTitle
|
||||||
|
|
||||||
void wxWindowOS2::ReleaseMouse()
|
void wxWindowOS2::DoReleaseMouse()
|
||||||
{
|
{
|
||||||
if (m_bWinCaptured)
|
if (m_bWinCaptured)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user