]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/html/helpdlg.h
a42dbd098138cb9600c3f8a3c514ec803632ccf1
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: html/helpdlg.h
3 // Purpose: interface of wxHtmlHelpDialog
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
9 @class wxHtmlHelpDialog
11 This class is used by wxHtmlHelpController to display help.
12 It is an internal class and should not be used directly - except for the case
13 when you're writing your own HTML help controller.
18 class wxHtmlHelpDialog
: public wxDialog
21 wxHtmlHelpDialog(wxHtmlHelpData
* data
= NULL
);
26 For the possible values of @a style, please see wxHtmlHelpController.
28 wxHtmlHelpDialog(wxWindow
* parent
, wxWindowID id
,
29 const wxString
& title
= wxEmptyString
,
30 int style
= wxHF_DEFAULT_STYLE
,
31 wxHtmlHelpData
* data
= NULL
);
34 You may override this virtual method to add more buttons to the help window's
35 toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
36 flag as passed to the Create() method.
38 wxToolBar::Realize is called immediately after returning from this function.
40 virtual void AddToolbarButtons(wxToolBar
* toolBar
, int style
);
43 Creates the dialog. See @ref wxHtmlHelpDialog() "the constructor"
44 for a description of the parameters.
46 bool Create(wxWindow
* parent
, wxWindowID id
,
47 const wxString
& title
= wxEmptyString
,
48 int style
= wxHF_DEFAULT_STYLE
);
51 Returns the help controller associated with the dialog.
53 wxHtmlHelpController
* GetController() const;
56 Sets the help controller associated with the dialog.
58 void SetController(wxHtmlHelpController
* controller
);
61 Sets the dialog's title format.
63 @a format must contain exactly one "%s" (it will be replaced by the page title).
65 void SetTitleFormat(const wxString
& format
);