new wxWindow::FindWindowByXXX() methods replacing the old global functions
(patches 560214, 559916, 559811, ...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -332,14 +332,6 @@ WXDLLEXPORT wxAcceleratorEntry *wxGetAccelFromString(const wxString& label);
|
||||
// Window search
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Find the window/widget with the given title or label.
|
||||
// Pass a parent to begin the search from, or NULL to look through
|
||||
// all windows.
|
||||
WXDLLEXPORT wxWindow* wxFindWindowByLabel(const wxString& title, wxWindow *parent = (wxWindow *) NULL);
|
||||
|
||||
// Find window by name, and if that fails, by label.
|
||||
WXDLLEXPORT wxWindow* wxFindWindowByName(const wxString& name, wxWindow *parent = (wxWindow *) NULL);
|
||||
|
||||
// Returns menu item id or -1 if none.
|
||||
WXDLLEXPORT int wxFindMenuItemId(wxFrame *frame, const wxString& menuString, const wxString& itemString);
|
||||
|
||||
@@ -348,6 +340,18 @@ WXDLLEXPORT int wxFindMenuItemId(wxFrame *frame, const wxString& menuString, con
|
||||
WXDLLEXPORT wxWindow* wxGenericFindWindowAtPoint(const wxPoint& pt);
|
||||
WXDLLEXPORT wxWindow* wxFindWindowAtPoint(const wxPoint& pt);
|
||||
|
||||
// NB: this function is obsolete, use wxWindow::FindWindowByLabel() instead
|
||||
//
|
||||
// Find the window/widget with the given title or label.
|
||||
// Pass a parent to begin the search from, or NULL to look through
|
||||
// all windows.
|
||||
WXDLLEXPORT wxWindow* wxFindWindowByLabel(const wxString& title, wxWindow *parent = (wxWindow *) NULL);
|
||||
|
||||
// NB: this function is obsolete, use wxWindow::FindWindowByName() instead
|
||||
//
|
||||
// Find window by name, and if that fails, by label.
|
||||
WXDLLEXPORT wxWindow* wxFindWindowByName(const wxString& name, wxWindow *parent = (wxWindow *) NULL);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Message/event queue helpers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -423,14 +423,24 @@ public:
|
||||
// was changed, FALSE otherwise (error or newParent == oldParent)
|
||||
virtual bool Reparent( wxWindowBase *newParent );
|
||||
|
||||
// implementation mostly
|
||||
virtual void AddChild( wxWindowBase *child );
|
||||
virtual void RemoveChild( wxWindowBase *child );
|
||||
|
||||
// looking for windows
|
||||
// -------------------
|
||||
|
||||
// find window among the descendants of this one either by id or by
|
||||
// name (return NULL if not found)
|
||||
wxWindow *FindWindow( long id );
|
||||
wxWindow *FindWindow( const wxString& name );
|
||||
|
||||
// implementation mostly
|
||||
virtual void AddChild( wxWindowBase *child );
|
||||
virtual void RemoveChild( wxWindowBase *child );
|
||||
// Find a window among any window (all return NULL if not found)
|
||||
static wxWindow *FindWindowById( long id, const wxWindow *parent = NULL );
|
||||
static wxWindow *FindWindowByName( const wxString& name,
|
||||
const wxWindow *parent = NULL );
|
||||
static wxWindow *FindWindowByLabel( const wxString& label,
|
||||
const wxWindow *parent = NULL );
|
||||
|
||||
// event handler stuff
|
||||
// -------------------
|
||||
|
Reference in New Issue
Block a user