Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

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.


The documentation for this class was generated from the following files:
Generated on Fri Jan 23 11:06:47 2004 for xCHM by doxygen 1.3.3