wxUniv: wxWindow: rename SetCurrent() to WXMakeCurrent()
avoid name conflicts between port-specific function and wxVListBox::SetCurrent()
This commit is contained in:
parent
89e78831f7
commit
a3951b6863
7 changed files with 9 additions and 14 deletions
|
|
@ -258,11 +258,6 @@ public:
|
|||
// as a parameter
|
||||
wxGLContextAttrs& GetGLCTXAttrs() { return m_GLCTXAttrs; }
|
||||
|
||||
#ifdef __WXUNIVERSAL__
|
||||
// resolve the conflict with wxWindowUniv::SetCurrent()
|
||||
virtual bool SetCurrent(bool doit) { return wxWindow::SetCurrent(doit); }
|
||||
#endif
|
||||
|
||||
protected:
|
||||
// override this to implement SetColour() in GL_INDEX_MODE
|
||||
// (currently only implemented in wxX11)
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public:
|
|||
|
||||
virtual bool Enable(bool enable = true) override;
|
||||
|
||||
virtual bool SetCurrent(bool doit = true) override;
|
||||
virtual bool WXMakeCurrent(bool doit = true) override;
|
||||
|
||||
virtual void Press() override;
|
||||
virtual void Release() override;
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public:
|
|||
int GetStateFlags() const;
|
||||
|
||||
// set the "highlighted" flag and return true if it changed
|
||||
virtual bool SetCurrent(bool doit = true);
|
||||
virtual bool WXMakeCurrent(bool doit = true);
|
||||
|
||||
#if wxUSE_SCROLLBAR
|
||||
// get the scrollbar (may be null) for the given orientation
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ bool wxStdAnyButtonInputHandler::HandleMouseMove(wxInputConsumer *consumer,
|
|||
m_winHasMouse = false;
|
||||
|
||||
// we do have a pressed button, so release it
|
||||
consumer->GetInputWindow()->SetCurrent(false);
|
||||
consumer->GetInputWindow()->WXMakeCurrent(false);
|
||||
consumer->PerformAction(wxACTION_BUTTON_RELEASE);
|
||||
|
||||
return true;
|
||||
|
|
@ -263,7 +263,7 @@ bool wxStdAnyButtonInputHandler::HandleMouseMove(wxInputConsumer *consumer,
|
|||
|
||||
// we did have a pressed button which we released when leaving the
|
||||
// window, press it again
|
||||
consumer->GetInputWindow()->SetCurrent(true);
|
||||
consumer->GetInputWindow()->WXMakeCurrent(true);
|
||||
consumer->PerformAction(wxACTION_BUTTON_PRESS);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -106,11 +106,11 @@ bool wxBitmapButton::Enable(bool enable)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool wxBitmapButton::SetCurrent(bool doit)
|
||||
bool wxBitmapButton::WXMakeCurrent(bool doit)
|
||||
{
|
||||
ChangeBitmap(doit ? GetBitmapFocus() : GetBitmapLabel());
|
||||
|
||||
return wxButton::SetCurrent(doit);
|
||||
return wxButton::WXMakeCurrent(doit);
|
||||
}
|
||||
|
||||
void wxBitmapButton::OnSetFocus(wxFocusEvent& event)
|
||||
|
|
|
|||
|
|
@ -2587,11 +2587,11 @@ bool wxGTKInputHandler::HandleMouseMove(wxInputConsumer *control,
|
|||
{
|
||||
if ( event.Entering() )
|
||||
{
|
||||
control->GetInputWindow()->SetCurrent(true);
|
||||
control->GetInputWindow()->WXMakeCurrent(true);
|
||||
}
|
||||
else if ( event.Leaving() )
|
||||
{
|
||||
control->GetInputWindow()->SetCurrent(false);
|
||||
control->GetInputWindow()->WXMakeCurrent(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -557,7 +557,7 @@ bool wxWindow::IsCurrent() const
|
|||
return m_isCurrent;
|
||||
}
|
||||
|
||||
bool wxWindow::SetCurrent(bool doit)
|
||||
bool wxWindow::WXMakeCurrent(bool doit)
|
||||
{
|
||||
if ( doit == m_isCurrent )
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue