#include <TGFontDialog.h>
Inheritance diagram for TGFontDialog:
Definition at line 38 of file TGFontDialog.h.
TGFontDialog::TGFontDialog | ( | const TGWindow * | parent = 0 , |
|
const TGWindow * | t = 0 , |
|||
FontProp_t * | fontProp = 0 , |
|||
const TString & | sample = "" , |
|||
char ** | fontList = 0 , |
|||
Bool_t | wait = kTRUE | |||
) |
TGFontDialog::~TGFontDialog | ( | ) | [virtual] |
Definition at line 389 of file TGFontDialog.cxx.
References TGObject::fClient, TGClient::FreeGC(), and fSampleTextGC.
TGFontDialog::TGFontDialog | ( | const TGWindow * | parent = 0 , |
|
const TGWindow * | t = 0 , |
|||
FontProp_t * | fontProp = 0 , |
|||
const TString & | sample = "" , |
|||
char ** | fontList = 0 , |
|||
Bool_t | wait = kTRUE | |||
) |
virtual TGFontDialog::~TGFontDialog | ( | ) | [virtual] |
Definition at line 498 of file TGFontDialog.cxx.
References TGListBox::AddEntry(), TString::BeginsWith(), TString::Data(), TGLBEntry::EntryId(), fFontNames, TGListBox::FindEntry(), fName, fNumberOfFonts, i, TString::Index(), kTRUE, TString::Length(), TGListBox::Select(), TGListBox::SortByName(), and UpdateStyleSize().
void TGFontDialog::GetFontName | ( | ) | [protected] |
Definition at line 718 of file TGFontDialog.cxx.
References AlignSelected(), ColorSelected(), TString::Data(), fBold, TGObject::fClient, fColorSelect, fFontNames, fFontSizes, fFontStyles, fItalic, fLabelFont, fLName, fName, FontSelected(), TString::Format(), fSample, fSize, fTextAlign, fTextAligns, fTextColor, gAlignValues, gErrorIgnoreLevel, TGClient::GetFont(), TGListBox::GetSelected(), TGComboBox::GetSelected(), TGListBox::GetSelectedEntry(), TGString::GetString(), TGTextLBEntry::GetText(), gFontStylesReal, kFALSE, kFatal, kTRUE, name, TGClient::NeedRedraw(), out, sel, TGListBox::Select(), TGColorSelect::SetColor(), TGLabel::SetTextColor(), TGLabel::SetTextFont(), TGLabel::SetTextJustify(), and size.
Referenced by ProcessMessage().
void TGFontDialog::CloseWindow | ( | ) | [protected, virtual] |
Reimplemented from TGMainFrame.
Definition at line 398 of file TGFontDialog.cxx.
References AlignSelected(), ColorSelected(), fFontNames, fFontProp, fFontSizes, fFontStyles, fHitOK, fInitAlign, fInitColor, fInitFont, TGFontDialog::FontProp_t::fName, FontSelected(), fWaitFor, TGListBox::Select(), SetAlign(), SetColor(), SetFont(), and TGFrame::UnmapWindow().
Referenced by ProcessMessage().
Reimplemented from TGCompositeFrame.
Definition at line 434 of file TGFontDialog.cxx.
References CloseWindow(), TGFontDialog::FontProp_t::fAlign, TGFontDialog::FontProp_t::fBold, fBold, TGFontDialog::FontProp_t::fColor, fFontProp, fHitOK, TGFontDialog::FontProp_t::fItalic, fItalic, fName, TGFontDialog::FontProp_t::fName, fSize, TGFontDialog::FontProp_t::fSize, fTextAlign, fTextColor, GET_MSG(), GET_SUBMSG(), GetFontName(), kC_COLORSEL, kC_COMMAND, kCM_BUTTON, kCM_COMBOBOX, kCM_LISTBOX, kCOL_SELCHANGED, kFALSE, kFDLG_CANCEL, kFDLG_OK, and kTRUE.
void TGFontDialog::SetFont | ( | TGFont * | font | ) | [virtual] |
Definition at line 822 of file TGFontDialog.cxx.
References TString::Data(), TGLBEntry::EntryId(), fFontNames, fFontSizes, fFontStyles, TGListBox::FindEntry(), fInitFont, fLabelFont, fSample, TNamed::GetName(), kNPOS, name, and TGListBox::Select().
Referenced by TGuiBldDragManager::ChangeProperties(), TGuiBldDragManager::ChangeTextFont(), and CloseWindow().
void TGFontDialog::SetColor | ( | Pixel_t | color | ) | [virtual] |
Definition at line 908 of file TGFontDialog.cxx.
References TGObject::fClient, fColorSelect, fInitColor, fSample, fTextColor, kFALSE, TGClient::NeedRedraw(), TGColorSelect::SetColor(), and TGLabel::SetTextColor().
Referenced by TGuiBldDragManager::ChangeProperties(), TGuiBldDragManager::ChangeTextFont(), and CloseWindow().
void TGFontDialog::SetAlign | ( | Int_t | align | ) | [virtual] |
Definition at line 922 of file TGFontDialog.cxx.
References TGObject::fClient, fInitAlign, fSample, fTextAlign, fTextAligns, gAlignValues, i, TGClient::NeedRedraw(), TGComboBox::Select(), and TGLabel::SetTextJustify().
Referenced by TGuiBldDragManager::ChangeProperties(), and CloseWindow().
Definition at line 941 of file TGFontDialog.cxx.
References fTextAligns, and TGComboBox::SetEnabled().
Referenced by TGuiBldDragManager::ChangeTextFont().
void TGFontDialog::UpdateStyleSize | ( | const char * | family | ) | [virtual] |
Definition at line 538 of file TGFontDialog.cxx.
References TGListBox::AddEntry(), xmlio::cnt, TString::Data(), fBold, fFontSizes, fFontStyles, TGListBox::FindEntry(), fItalic, TString::Format(), fSize, gFontSizes, gFontStyles, gFontStylesReal, gVirtualX, i, TString::IsDigit(), kFALSE, kNPOS, kTRUE, TGListBox::Layout(), TString::Length(), TGCompositeFrame::MapSubwindows(), name, TGListBox::RemoveEntries(), TGListBox::Select(), TGListBox::SortByName(), and TString::Strip().
Referenced by Build().
virtual void TGFontDialog::FontSelected | ( | char * | font | ) | [inline, virtual] |
Definition at line 92 of file TGFontDialog.h.
References TQObject::Emit().
Referenced by CloseWindow(), and GetFontName().
virtual void TGFontDialog::AlignSelected | ( | Int_t | a | ) | [inline, virtual] |
Definition at line 94 of file TGFontDialog.h.
References TQObject::Emit().
Referenced by CloseWindow(), and GetFontName().
virtual void TGFontDialog::ColorSelected | ( | Pixel_t | c | ) | [inline, virtual] |
Definition at line 96 of file TGFontDialog.h.
References TQObject::Emit().
Referenced by CloseWindow(), and GetFontName().
void TGFontDialog::GetFontName | ( | ) | [protected] |
virtual void TGFontDialog::CloseWindow | ( | ) | [protected, virtual] |
Reimplemented from TGMainFrame.
virtual Bool_t TGFontDialog::ProcessMessage | ( | Long_t | msg, | |
Long_t | parm1, | |||
Long_t | parm2 | |||
) | [protected, virtual] |
Reimplemented from TGCompositeFrame.
virtual void TGFontDialog::SetFont | ( | TGFont * | font | ) | [virtual] |
virtual void TGFontDialog::SetColor | ( | Pixel_t | color | ) | [virtual] |
virtual void TGFontDialog::SetAlign | ( | Int_t | align | ) | [virtual] |
virtual void TGFontDialog::UpdateStyleSize | ( | const char * | family | ) | [virtual] |
virtual void TGFontDialog::FontSelected | ( | char * | font | ) | [inline, virtual] |
virtual void TGFontDialog::AlignSelected | ( | Int_t | a | ) | [inline, virtual] |
virtual void TGFontDialog::ColorSelected | ( | Pixel_t | c | ) | [inline, virtual] |
TGListBox* TGFontDialog::fFontNames [protected] |
Definition at line 51 of file TGFontDialog.h.
Referenced by Build(), CloseWindow(), GetFontName(), and SetFont().
TGListBox* TGFontDialog::fFontSizes [protected] |
Definition at line 52 of file TGFontDialog.h.
Referenced by CloseWindow(), GetFontName(), SetFont(), and UpdateStyleSize().
TGListBox* TGFontDialog::fFontStyles [protected] |
Definition at line 53 of file TGFontDialog.h.
Referenced by CloseWindow(), GetFontName(), SetFont(), and UpdateStyleSize().
TGComboBox* TGFontDialog::fTextAligns [protected] |
Definition at line 54 of file TGFontDialog.h.
Referenced by EnableAlign(), GetFontName(), and SetAlign().
TGLabel* TGFontDialog::fSample [protected] |
Definition at line 55 of file TGFontDialog.h.
Referenced by GetFontName(), SetAlign(), SetColor(), and SetFont().
TGColorSelect* TGFontDialog::fColorSelect [protected] |
TString TGFontDialog::fName [protected] |
Reimplemented from TGWindow.
Definition at line 57 of file TGFontDialog.h.
Referenced by Build(), GetFontName(), and ProcessMessage().
TString TGFontDialog::fLName [protected] |
FontProp_t* TGFontDialog::fFontProp [protected] |
Bool_t TGFontDialog::fItalic [protected] |
Definition at line 60 of file TGFontDialog.h.
Referenced by GetFontName(), ProcessMessage(), and UpdateStyleSize().
Bool_t TGFontDialog::fBold [protected] |
Definition at line 61 of file TGFontDialog.h.
Referenced by GetFontName(), ProcessMessage(), and UpdateStyleSize().
Int_t TGFontDialog::fSize [protected] |
Definition at line 62 of file TGFontDialog.h.
Referenced by GetFontName(), ProcessMessage(), and UpdateStyleSize().
Int_t TGFontDialog::fTextAlign [protected] |
Definition at line 63 of file TGFontDialog.h.
Referenced by GetFontName(), ProcessMessage(), and SetAlign().
Pixel_t TGFontDialog::fTextColor [protected] |
Definition at line 64 of file TGFontDialog.h.
Referenced by GetFontName(), ProcessMessage(), and SetColor().
Pixel_t TGFontDialog::fInitColor [protected] |
Int_t TGFontDialog::fInitAlign [protected] |
TGFont* TGFontDialog::fInitFont [protected] |
TString TGFontDialog::fSampleText [protected] |
Definition at line 68 of file TGFontDialog.h.
TGGC* TGFontDialog::fSampleTextGC [protected] |
TGFont* TGFontDialog::fLabelFont [protected] |
Bool_t TGFontDialog::fHitOK [protected] |
Int_t TGFontDialog::fNumberOfFonts [protected] |
Bool_t TGFontDialog::fWaitFor [protected] |
TGListBox* TGFontDialog::fFontNames [protected] |
Definition at line 51 of file TGFontDialog.h.
TGListBox* TGFontDialog::fFontSizes [protected] |
Definition at line 52 of file TGFontDialog.h.
TGListBox* TGFontDialog::fFontStyles [protected] |
Definition at line 53 of file TGFontDialog.h.
TGComboBox* TGFontDialog::fTextAligns [protected] |
Definition at line 54 of file TGFontDialog.h.
TGLabel* TGFontDialog::fSample [protected] |
Definition at line 55 of file TGFontDialog.h.
TGColorSelect* TGFontDialog::fColorSelect [protected] |
Definition at line 56 of file TGFontDialog.h.
FontProp_t* TGFontDialog::fFontProp [protected] |
Definition at line 59 of file TGFontDialog.h.
TGFont* TGFontDialog::fInitFont [protected] |
Definition at line 67 of file TGFontDialog.h.
TGGC* TGFontDialog::fSampleTextGC [protected] |
Definition at line 69 of file TGFontDialog.h.
TGFont* TGFontDialog::fLabelFont [protected] |
Definition at line 70 of file TGFontDialog.h.