]>
git.saurik.com Git - wxWidgets.git/blob - interface/html/helpdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: html/helpdlg.h
3 // Purpose: interface of wxHtmlHelpDialog
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 @class wxHtmlHelpDialog
11 @headerfile helpdlg.h wx/html/helpdlg.h
13 This class is used by wxHtmlHelpController
15 It is an internal class and should not be used directly - except for the case
16 when you're writing your own HTML help controller.
21 class wxHtmlHelpDialog
: public wxFrame
26 Constructor. For the values of @e style, please see the documentation for
29 wxHtmlHelpDialog(wxHtmlHelpData
* data
= NULL
);
30 wxHtmlHelpDialog(wxWindow
* parent
, int wxWindowID
,
31 const wxString
& title
= wxEmptyString
,
32 int style
= wxHF_DEFAULT_STYLE
,
33 wxHtmlHelpData
* data
= NULL
);
37 You may override this virtual method to add more buttons to the help window's
38 toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
39 flag as passed to the Create method.
40 wxToolBar::Realize is called immediately after returning from this function.
42 virtual void AddToolbarButtons(wxToolBar
* toolBar
, int style
);
45 Creates the dialog. See @ref wxhtmlhelpdialog() "the constructor"
46 for a description of the parameters.
48 bool Create(wxWindow
* parent
, wxWindowID id
,
49 const wxString
& title
= wxEmptyString
,
50 int style
= wxHF_DEFAULT_STYLE
);
53 Returns the help controller associated with the dialog.
55 wxHtmlHelpController
* GetController() const;
58 Reads the user's settings for this dialog see
59 wxHtmlHelpController::ReadCustomization)
61 void ReadCustomization(wxConfigBase
* cfg
,
62 const wxString
& path
= wxEmptyString
);
65 Sets the help controller associated with the dialog.
67 void SetController(wxHtmlHelpController
* contoller
);
70 Sets the dialog's title format. @a format must contain exactly one "%s"
71 (it will be replaced by the page title).
73 void SetTitleFormat(const wxString
& format
);
76 Saves the user's settings for this dialog (see
77 wxHtmlHelpController::WriteCustomization).
79 void WriteCustomization(wxConfigBase
* cfg
,
80 const wxString
& path
= wxEmptyString
);