xCHM  1.23
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CHMFontDialog Class Reference

Custom font chooser dialog class. More...

#include <chmfontdialog.h>

Inheritance diagram for CHMFontDialog:
wxDialog

Public Member Functions

 CHMFontDialog (wxWindow *parent, wxArrayString *normalFonts, wxArrayString *fixedFonts, const wxString &normalFont, const wxString &fixedFont, const int fontSize)
 Constructs a CHMFontDialog. More...
 
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
parentThe parent window.
normalFontsArray of strings denoting all the normal font faces' names available on the system. Managed by the caller.
fixedFontsArray of strings denoting all the fixes fonts faces' names available on the system. Managed by the caller.
normalFontThe normal font currently in use by the caller.
fixedFontThe fixed font currently in use by the caller.
fontSizeThe size of the font currently selected.

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