helpdlg.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: html/helpdlg.h
  3. // Purpose: interface of wxHtmlHelpDialog
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /**
  8. @class wxHtmlHelpDialog
  9. This class is used by wxHtmlHelpController to display help.
  10. It is an internal class and should not be used directly - except for the case
  11. when you're writing your own HTML help controller.
  12. @library{wxhtml}
  13. @category{help,html}
  14. */
  15. class wxHtmlHelpDialog : public wxDialog
  16. {
  17. public:
  18. wxHtmlHelpDialog(wxHtmlHelpData* data = NULL);
  19. /**
  20. Constructor.
  21. For the possible values of @a style, please see wxHtmlHelpController.
  22. */
  23. wxHtmlHelpDialog(wxWindow* parent, wxWindowID id,
  24. const wxString& title = wxEmptyString,
  25. int style = wxHF_DEFAULT_STYLE,
  26. wxHtmlHelpData* data = NULL);
  27. /**
  28. You may override this virtual method to add more buttons to the help window's
  29. toolbar. @a toolBar is a pointer to the toolbar and @a style is the style
  30. flag as passed to the Create() method.
  31. wxToolBar::Realize is called immediately after returning from this function.
  32. */
  33. virtual void AddToolbarButtons(wxToolBar* toolBar, int style);
  34. /**
  35. Creates the dialog. See @ref wxHtmlHelpDialog() "the constructor"
  36. for a description of the parameters.
  37. */
  38. bool Create(wxWindow* parent, wxWindowID id,
  39. const wxString& title = wxEmptyString,
  40. int style = wxHF_DEFAULT_STYLE);
  41. /**
  42. Returns the help controller associated with the dialog.
  43. */
  44. wxHtmlHelpController* GetController() const;
  45. /**
  46. Sets the help controller associated with the dialog.
  47. */
  48. void SetController(wxHtmlHelpController* controller);
  49. /**
  50. Sets the dialog's title format.
  51. @a format must contain exactly one "%s" (it will be replaced by the page title).
  52. */
  53. void SetTitleFormat(const wxString& format);
  54. };