Added parent window parameter to wxHelpController constructor
and added SetParentWindow/GetParentWindow. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
class WXDLLIMPEXP_HTML wxBestHelpController: public wxHelpControllerBase
|
||||
{
|
||||
public:
|
||||
wxBestHelpController()
|
||||
: m_helpControllerType( wxUseNone ),
|
||||
wxBestHelpController(wxWindow* parentWindow = NULL)
|
||||
: wxHelpControllerBase( parentWindow ), m_helpControllerType( wxUseNone ),
|
||||
m_helpController( NULL )
|
||||
{
|
||||
}
|
||||
@@ -98,6 +98,12 @@ public:
|
||||
newFrameEachTime );
|
||||
}
|
||||
|
||||
/// Set the window that can optionally be used for the help window's parent.
|
||||
virtual void SetParentWindow(wxWindow* win) { m_helpController->SetParentWindow(win); }
|
||||
|
||||
/// Get the window that can optionally be used for the help window's parent.
|
||||
virtual wxWindow* GetParentWindow() const { return m_helpController->GetParentWindow(); }
|
||||
|
||||
protected:
|
||||
// Append/change extension if necessary.
|
||||
wxString GetValidFilename(const wxString& file) const;
|
||||
|
Reference in New Issue
Block a user