2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: html/helpfrm.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxHtmlHelpFrame
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxHtmlHelpFrame
|
2008-03-08 09:43:31 -05:00
|
|
|
|
|
|
|
This class is used by wxHtmlHelpController
|
2008-03-08 08:52:38 -05:00
|
|
|
to display help.
|
|
|
|
It is an internal class and should not be used directly - except for the case
|
|
|
|
when you're writing your own HTML help controller.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
@library{wxhtml}
|
|
|
|
@category{FIXME}
|
|
|
|
*/
|
|
|
|
class wxHtmlHelpFrame : public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//@{
|
|
|
|
/**
|
|
|
|
Constructor. For the values of @e style, please see the documentation for
|
|
|
|
wxHtmlHelpController.
|
|
|
|
*/
|
2008-03-09 08:33:59 -04:00
|
|
|
wxHtmlHelpFrame(wxHtmlHelpData* data = NULL);
|
2008-03-08 09:43:31 -05:00
|
|
|
wxHtmlHelpFrame(wxWindow* parent, int wxWindowID,
|
|
|
|
const wxString& title = wxEmptyString,
|
|
|
|
int style = wxHF_DEFAULT_STYLE,
|
2008-03-09 08:33:59 -04:00
|
|
|
wxHtmlHelpData* data = NULL);
|
2008-03-08 08:52:38 -05:00
|
|
|
//@}
|
|
|
|
|
|
|
|
/**
|
|
|
|
You may override this virtual method to add more buttons to the help window's
|
2008-03-09 08:33:59 -04:00
|
|
|
toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
|
2008-03-08 08:52:38 -05:00
|
|
|
flag as passed to the Create method.
|
|
|
|
wxToolBar::Realize is called immediately after returning from this function.
|
|
|
|
*/
|
2008-03-09 08:33:59 -04:00
|
|
|
virtual void AddToolbarButtons(wxToolBar* toolBar, int style);
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Creates the frame. See @ref wxhtmlhelpframe() "the constructor"
|
|
|
|
for a description of the parameters.
|
|
|
|
*/
|
|
|
|
bool Create(wxWindow* parent, wxWindowID id,
|
|
|
|
const wxString& title = wxEmptyString,
|
|
|
|
int style = wxHF_DEFAULT_STYLE);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the help controller associated with the frame.
|
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
wxHtmlHelpController* GetController() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Reads the user's settings for this frame see
|
|
|
|
wxHtmlHelpController::ReadCustomization)
|
|
|
|
*/
|
|
|
|
void ReadCustomization(wxConfigBase* cfg,
|
|
|
|
const wxString& path = wxEmptyString);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the help controller associated with the frame.
|
|
|
|
*/
|
|
|
|
void SetController(wxHtmlHelpController* contoller);
|
|
|
|
|
|
|
|
/**
|
2008-03-09 08:33:59 -04:00
|
|
|
Sets the frame's title format. @a format must contain exactly one "%s"
|
2008-03-08 08:52:38 -05:00
|
|
|
(it will be replaced by the page title).
|
|
|
|
*/
|
|
|
|
void SetTitleFormat(const wxString& format);
|
|
|
|
|
|
|
|
/**
|
|
|
|
Saves the user's settings for this frame (see
|
|
|
|
wxHtmlHelpController::WriteCustomization).
|
|
|
|
*/
|
|
|
|
void WriteCustomization(wxConfigBase* cfg,
|
|
|
|
const wxString& path = wxEmptyString);
|
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|