a2dFontDialog Class Reference
[Text related classes]

Display a font selection dialog. More...

#include <editor/fontdlg.h>

Collaboration diagram for a2dFontDialog:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 a2dFontDialog (wxWindow *parent=NULL, const a2dFont &currentfont=*a2dDEFAULT_CANVASFONT)
 Constructor.
virtual ~a2dFontDialog ()
 Destructor.
const a2dFontGetFontData () const
 Returns the font.
void OnChangeFont (wxCommandEvent &event)
 User interface event handler.
void OnChangeFontType (wxCommandEvent &event)
 User interface event handler.
void OnChangeFontName (wxCommandEvent &event)
 User interface event handler.
void OnChangeFontStyle (wxCommandEvent &event)
 User interface event handler.
void OnChangeFontSize (wxCommandEvent &event)
 User interface event handler.
void OnChangeFontSizeList (wxCommandEvent &event)
 User interface event handler.
void OnSearchPath (wxCommandEvent &event)
 User interface event handler.
void OnAlignment (wxCommandEvent &event)
 User interface event handler.
void OnSize (wxSizeEvent &event)
 User interface event handler.

Protected Attributes

a2dFont m_font
 Selected font.
a2dFontInfoList m_fonts
 Font enumeration list.
double m_viewscale
 Scale at which the font is viewed.
int m_alignment
 Font alignment.
a2dFontInfo m_currentinfo
wxListBox * m_typelist
 User interface object.
wxListBox * m_fontlist
 User interface object.
wxListBox * m_stylelist
 User interface object.
wxTextCtrl * m_sizeedit
 User interface object.
wxListBox * m_sizelist
 User interface object.
wxCheckBox * m_aligncheck
 User interface object.
a2dCanvasm_canvas
 User interface object.
a2dTextm_canvastext
 Displayed text.
a2dSLinem_canvasline1
 Horizontal line to indicate alignment.
a2dSLinem_canvasline2
 Vertical line to indicate alignment.


Detailed Description

Display a font selection dialog.

Todo:
EW: Font scaling in the selection dialog. Now it is always scaled to fit in the window, but how to handle font sizes (eg. 0.000001 to 100000) in a consistent way? Maybe do the scaling in magnitudes of 10?

Definition at line 66 of file fontdlg.h.


Constructor & Destructor Documentation

a2dFontDialog::a2dFontDialog ( wxWindow *  parent = NULL,
const a2dFont currentfont = *a2dDEFAULT_CANVASFONT 
)

Constructor.

Todo:
alignment

Todo:
alignment m_aligncheck->SetValue( (m_currentinfo.GetAlignment() & wxBBOX) != 0);

Definition at line 180 of file fontdlg.cpp.


Member Function Documentation

void a2dFontDialog::OnChangeFont ( wxCommandEvent &  event  ) 

User interface event handler.

Todo:
alignment

Definition at line 464 of file fontdlg.cpp.


The documentation for this class was generated from the following files:
a2dFontDialog Class Reference -- Tue Aug 31 18:27:30 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation