Make wxHelpControllerBase::SetFrameParameters() title more clear.
Describe it as "title format string" and call it "titleFormat" and not just "title" because this is what it is. Closes #14707. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
45df4bb6c2
commit
eae48ea12d
@ -91,7 +91,7 @@ public:
|
|||||||
virtual bool DisplayBlock(long blockNo) { return DisplaySection(blockNo); }
|
virtual bool DisplayBlock(long blockNo) { return DisplaySection(blockNo); }
|
||||||
virtual bool DisplayTextPopup(const wxString& text, const wxPoint& pos);
|
virtual bool DisplayTextPopup(const wxString& text, const wxPoint& pos);
|
||||||
|
|
||||||
virtual void SetFrameParameters(const wxString& title,
|
virtual void SetFrameParameters(const wxString& titleFormat,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
bool newFrameEachTime = false);
|
bool newFrameEachTime = false);
|
||||||
|
@ -140,7 +140,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Allows one to override the default settings for the help frame.
|
Allows one to override the default settings for the help frame.
|
||||||
*/
|
*/
|
||||||
virtual void SetFrameParameters(const wxString& title,
|
virtual void SetFrameParameters(const wxString& titleFormat,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
bool newFrameEachTime = false);
|
bool newFrameEachTime = false);
|
||||||
|
@ -199,15 +199,15 @@ public:
|
|||||||
/**
|
/**
|
||||||
Set the parameters of the frame window.
|
Set the parameters of the frame window.
|
||||||
|
|
||||||
For wxHtmlHelpController, @a title specifies the title string format
|
For wxHtmlHelpController, @a titleFormat specifies the title string
|
||||||
(with @c %s being replaced by the actual page title) and @a size and
|
format (with @c %s being replaced by the actual page title) and @a size
|
||||||
@a position specify the geometry of the frame.
|
and @a position specify the geometry of the frame.
|
||||||
|
|
||||||
For all other help controllers this function has no effect.
|
For all other help controllers this function has no effect.
|
||||||
|
|
||||||
Finally, @a newFrameEachTime is always ignored currently.
|
Finally, @a newFrameEachTime is always ignored currently.
|
||||||
*/
|
*/
|
||||||
virtual void SetFrameParameters(const wxString& title,
|
virtual void SetFrameParameters(const wxString& titleFormat,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
bool newFrameEachTime = false);
|
bool newFrameEachTime = false);
|
||||||
|
@ -341,12 +341,12 @@ void wxHtmlHelpController::SetHelpWindow(wxHtmlHelpWindow* helpWindow)
|
|||||||
helpWindow->SetController(this);
|
helpWindow->SetController(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxHtmlHelpController::SetFrameParameters(const wxString& title,
|
void wxHtmlHelpController::SetFrameParameters(const wxString& titleFormat,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
bool WXUNUSED(newFrameEachTime))
|
bool WXUNUSED(newFrameEachTime))
|
||||||
{
|
{
|
||||||
SetTitleFormat(title);
|
SetTitleFormat(titleFormat);
|
||||||
wxHtmlHelpFrame* frame = wxDynamicCast(FindTopLevelWindow(), wxHtmlHelpFrame);
|
wxHtmlHelpFrame* frame = wxDynamicCast(FindTopLevelWindow(), wxHtmlHelpFrame);
|
||||||
wxHtmlHelpDialog* dialog = wxDynamicCast(FindTopLevelWindow(), wxHtmlHelpDialog);
|
wxHtmlHelpDialog* dialog = wxDynamicCast(FindTopLevelWindow(), wxHtmlHelpDialog);
|
||||||
if (frame)
|
if (frame)
|
||||||
|
Loading…
Reference in New Issue
Block a user