]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/html/helpfrm.h
use wxEventType coherently with the docs
[wxWidgets.git] / interface / wx / html / helpfrm.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: html/helpfrm.h
e54c96f1 3// Purpose: interface of wxHtmlHelpFrame
23324ae1
FM
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxHtmlHelpFrame
7c913512 11
c87f263e 12 This class is used by wxHtmlHelpController to display help.
23324ae1
FM
13 It is an internal class and should not be used directly - except for the case
14 when you're writing your own HTML help controller.
7c913512 15
23324ae1 16 @library{wxhtml}
c87f263e 17 @category{help,html}
23324ae1
FM
18*/
19class wxHtmlHelpFrame : public wxFrame
20{
21public:
c87f263e
FM
22 wxHtmlHelpFrame(wxHtmlHelpData* data = NULL);
23
23324ae1 24 /**
c87f263e
FM
25 Constructor.
26
27 For the possible values of @a style, please see wxHtmlHelpController.
23324ae1 28 */
7c913512
FM
29 wxHtmlHelpFrame(wxWindow* parent, int wxWindowID,
30 const wxString& title = wxEmptyString,
31 int style = wxHF_DEFAULT_STYLE,
4cc4bfaf 32 wxHtmlHelpData* data = NULL);
23324ae1
FM
33
34 /**
35 You may override this virtual method to add more buttons to the help window's
4cc4bfaf 36 toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
c87f263e
FM
37 flag as passed to the Create() method.
38
23324ae1
FM
39 wxToolBar::Realize is called immediately after returning from this function.
40 */
4cc4bfaf 41 virtual void AddToolbarButtons(wxToolBar* toolBar, int style);
23324ae1
FM
42
43 /**
c87f263e 44 Creates the frame. See @ref wxHtmlHelpFrame() "the constructor"
23324ae1
FM
45 for a description of the parameters.
46 */
47 bool Create(wxWindow* parent, wxWindowID id,
5267aefd
FM
48 const wxString& title = wxEmptyString, int style = wxHF_DEFAULT_STYLE,
49 wxConfigBase* config = NULL,
50 const wxString& rootpath = wxEmptyString);
23324ae1
FM
51
52 /**
53 Returns the help controller associated with the frame.
54 */
328f5751 55 wxHtmlHelpController* GetController() const;
23324ae1
FM
56
57 /**
c87f263e
FM
58 Reads the user's settings for this frame.
59
60 @see wxHtmlHelpController::ReadCustomization
23324ae1
FM
61 */
62 void ReadCustomization(wxConfigBase* cfg,
63 const wxString& path = wxEmptyString);
64
65 /**
66 Sets the help controller associated with the frame.
67 */
68 void SetController(wxHtmlHelpController* contoller);
69
70 /**
c87f263e
FM
71 Sets the frame's title format.
72
73 @a format must contain exactly one "%s" (it will be replaced by the page title).
23324ae1
FM
74 */
75 void SetTitleFormat(const wxString& format);
76
77 /**
c87f263e
FM
78 Saves the user's settings for this frame.
79
80 @see wxHtmlHelpController::WriteCustomization
23324ae1
FM
81 */
82 void WriteCustomization(wxConfigBase* cfg,
83 const wxString& path = wxEmptyString);
84};
e54c96f1 85