made FindWindow() member functions const (this makes it possible to use XRCCTRL() in const methods)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -570,11 +570,11 @@ Note that this is a static function, so it can be called without needing a wxWin
|
|||||||
|
|
||||||
\membersection{wxWindow::FindWindow}\label{wxwindowfindwindow}
|
\membersection{wxWindow::FindWindow}\label{wxwindowfindwindow}
|
||||||
|
|
||||||
\func{wxWindow*}{FindWindow}{\param{long}{ id}}
|
\constfunc{wxWindow*}{FindWindow}{\param{long}{ id}}
|
||||||
|
|
||||||
Find a child of this window, by identifier.
|
Find a child of this window, by identifier.
|
||||||
|
|
||||||
\func{wxWindow*}{FindWindow}{\param{const wxString\&}{ name}}
|
\constfunc{wxWindow*}{FindWindow}{\param{const wxString\&}{ name}}
|
||||||
|
|
||||||
Find a child of this window, by name.
|
Find a child of this window, by name.
|
||||||
|
|
||||||
|
@@ -570,8 +570,8 @@ public:
|
|||||||
|
|
||||||
// find window among the descendants of this one either by id or by
|
// find window among the descendants of this one either by id or by
|
||||||
// name (return NULL if not found)
|
// name (return NULL if not found)
|
||||||
wxWindow *FindWindow( long winid );
|
wxWindow *FindWindow(long winid) const;
|
||||||
wxWindow *FindWindow( const wxString& name );
|
wxWindow *FindWindow(const wxString& name) const;
|
||||||
|
|
||||||
// Find a window among any window (all return NULL if not found)
|
// Find a window among any window (all return NULL if not found)
|
||||||
static wxWindow *FindWindowById( long winid, const wxWindow *parent = NULL );
|
static wxWindow *FindWindowById( long winid, const wxWindow *parent = NULL );
|
||||||
|
@@ -1226,7 +1226,7 @@ void wxWindowBase::ClearBackground()
|
|||||||
// find child window by id or name
|
// find child window by id or name
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
wxWindow *wxWindowBase::FindWindow( long id )
|
wxWindow *wxWindowBase::FindWindow(long id) const
|
||||||
{
|
{
|
||||||
if ( id == m_windowId )
|
if ( id == m_windowId )
|
||||||
return (wxWindow *)this;
|
return (wxWindow *)this;
|
||||||
@@ -1242,7 +1242,7 @@ wxWindow *wxWindowBase::FindWindow( long id )
|
|||||||
return (wxWindow *)res;
|
return (wxWindow *)res;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxWindow *wxWindowBase::FindWindow( const wxString& name )
|
wxWindow *wxWindowBase::FindWindow(const wxString& name) const
|
||||||
{
|
{
|
||||||
if ( name == m_windowName )
|
if ( name == m_windowName )
|
||||||
return (wxWindow *)this;
|
return (wxWindow *)this;
|
||||||
|
Reference in New Issue
Block a user