KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FONT_CHOICE Class Reference

#include <font_choice.h>

Inheritance diagram for FONT_CHOICE:

Public Member Functions

 FONT_CHOICE (wxWindow *aParent, int aId, wxPoint aPosition, wxSize aSize, int nChoices, wxString *aChoices, int aStyle)
 
virtual ~FONT_CHOICE ()
 
void SetFontSelection (KIFONT::FONT *aFont, bool aSilentMode=false)
 Set the selection in wxChoice widget.
 
bool HaveFontSelection () const
 
KIFONT::FONTGetFontSelection (bool aBold, bool aItalic, bool aForDrawingSheet=false) const
 

Private Attributes

int m_systemFontCount
 
wxString m_notFound
 

Detailed Description

Definition at line 28 of file font_choice.h.

Constructor & Destructor Documentation

◆ FONT_CHOICE()

FONT_CHOICE::FONT_CHOICE ( wxWindow *  aParent,
int  aId,
wxPoint  aPosition,
wxSize  aSize,
int  nChoices,
wxString *  aChoices,
int  aStyle 
)

◆ ~FONT_CHOICE()

FONT_CHOICE::~FONT_CHOICE ( )
virtual

Definition at line 68 of file font_choice.cpp.

Member Function Documentation

◆ GetFontSelection()

◆ HaveFontSelection()

◆ SetFontSelection()

void FONT_CHOICE::SetFontSelection ( KIFONT::FONT aFont,
bool  aSilentMode = false 
)

Set the selection in wxChoice widget.

Parameters
aFontis the fotn to select
aSilentModeallow or not a wxEVT_CHOICE on selection default = false: the event is sent. if true, just make silently the selection

Definition at line 73 of file font_choice.cpp.

References KIFONT::FONT::GetName(), and m_notFound.

Referenced by PROPERTIES_FRAME::CopyPrmsFromItemToPanel(), DIALOG_FIELD_PROPERTIES::TransferDataToWindow(), DIALOG_LABEL_PROPERTIES::TransferDataToWindow(), DIALOG_SHEET_PIN_PROPERTIES::TransferDataToWindow(), DIALOG_TABLECELL_PROPERTIES::TransferDataToWindow(), DIALOG_TEXT_PROPERTIES::TransferDataToWindow(), DIALOG_DIMENSION_PROPERTIES::TransferDataToWindow(), and DIALOG_TEXTBOX_PROPERTIES::TransferDataToWindow().

Member Data Documentation

◆ m_notFound

wxString FONT_CHOICE::m_notFound
private

Definition at line 51 of file font_choice.h.

Referenced by FONT_CHOICE(), HaveFontSelection(), and SetFontSelection().

◆ m_systemFontCount

int FONT_CHOICE::m_systemFontCount
private

Definition at line 50 of file font_choice.h.

Referenced by FONT_CHOICE(), and GetFontSelection().


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