2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: html/helpdlg.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of wxHtmlHelpDialog
|
2008-03-08 08:52:38 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxHtmlHelpDialog
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-10-23 09:55:07 -04:00
|
|
|
This class is used by wxHtmlHelpController to display help.
|
2008-03-08 08:52:38 -05:00
|
|
|
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}
|
2008-10-23 09:55:07 -04:00
|
|
|
@category{help,html}
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
class wxHtmlHelpDialog : public wxFrame
|
|
|
|
{
|
|
|
|
public:
|
2008-10-23 09:55:07 -04:00
|
|
|
wxHtmlHelpDialog(wxHtmlHelpData* data = NULL);
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2008-10-23 09:55:07 -04:00
|
|
|
Constructor.
|
|
|
|
|
|
|
|
For the possible values of @a style, please see wxHtmlHelpController.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-08 09:43:31 -05:00
|
|
|
wxHtmlHelpDialog(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-10-23 09:55:07 -04:00
|
|
|
flag as passed to the Create() method.
|
|
|
|
|
2008-03-08 08:52:38 -05:00
|
|
|
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
|
|
|
|
|
|
|
/**
|
2008-10-23 09:55:07 -04:00
|
|
|
Creates the dialog. See @ref wxHtmlHelpDialog() "the constructor"
|
2008-03-08 08:52:38 -05:00
|
|
|
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 dialog.
|
|
|
|
*/
|
2008-03-09 12:24:26 -04:00
|
|
|
wxHtmlHelpController* GetController() const;
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Sets the help controller associated with the dialog.
|
|
|
|
*/
|
|
|
|
void SetController(wxHtmlHelpController* contoller);
|
|
|
|
|
|
|
|
/**
|
2008-10-23 09:55:07 -04:00
|
|
|
Sets the dialog's title format.
|
|
|
|
|
|
|
|
@a format must contain exactly one "%s" (it will be replaced by the page title).
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
void SetTitleFormat(const wxString& format);
|
|
|
|
};
|
2008-03-10 11:24:38 -04:00
|
|
|
|