CHMFontDialog Class Reference

Custom font chooser dialog class. More...

#include <chmfontdialog.h>

Inheritance diagram for CHMFontDialog:

wxDialog

List of all members.

Public Member Functions

 CHMFontDialog (wxWindow *parent, wxArrayString *normalFonts, wxArrayString *fixedFonts, const wxString &normalFont, const wxString &fixedFont, const int fontSize)
 Constructs a CHMFontDialog.
const wxString & FixedFont () const
 Returns the fixed font face name.
const wxString & NormalFont () const
 Returns the normal font face name.
int * Sizes ()
 Return the selected font size.

Protected Member Functions

void OnUpdate (wxCommandEvent &event)
 This is called when a font is selected from the combo box.
void OnUpdateSpin (wxSpinEvent &event)
 This is called when you click on the font size spin control.

Private Member Functions

void UpdatePreview ()
 Helper. Updates the font preview window.
void InitDialog (wxArrayString *normalFonts, wxArrayString *fixedFonts)
 Helper. Initializes the dialog with the passed data.
 DECLARE_EVENT_TABLE ()

Private Attributes

wxHtmlWindow_test
wxSpinCtrl * _fontSizeControl
wxComboBox * _normalFControl
wxComboBox * _fixedFControl
wxString _normalFont
wxString _fixedFont
int _sizes [7]
int _fontSize


Detailed Description

Custom font chooser dialog class.

Constructor & Destructor Documentation

CHMFontDialog::CHMFontDialog ( wxWindow *  parent,
wxArrayString *  normalFonts,
wxArrayString *  fixedFonts,
const wxString &  normalFont,
const wxString &  fixedFont,
const int  fontSize 
)

Constructs a CHMFontDialog.

Parameters:
parent The parent window.
normalFonts Array of strings denoting all the normal font faces' names available on the system. Managed by the caller.
fixedFonts Array of strings denoting all the fixes fonts faces' names available on the system. Managed by the caller.
normalFont The normal font currently in use by the caller.
fixedFont The fixed font currently in use by the caller.
fontSize The size of the font currently selected.

References InitDialog().


The documentation for this class was generated from the following files:

Generated on Wed Oct 28 17:35:58 2009 for xCHM by  doxygen 1.5.8