TGFontDialog Class Reference

#include <TGFontDialog.h>

Inheritance diagram for TGFontDialog:

TGTransientFrame TGTransientFrame TGMainFrame TGMainFrame TGMainFrame TGMainFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame List of all members.

Public Member Functions

 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 ()
virtual void SetFont (TGFont *font)
virtual void SetColor (Pixel_t color)
virtual void SetAlign (Int_t align)
virtual void EnableAlign (Bool_t on=kTRUE)
virtual void UpdateStyleSize (const char *family)
virtual void FontSelected (char *font)
virtual void AlignSelected (Int_t a)
virtual void ColorSelected (Pixel_t c)
 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 ()
virtual void SetFont (TGFont *font)
virtual void SetColor (Pixel_t color)
virtual void SetAlign (Int_t align)
virtual void EnableAlign (Bool_t on=kTRUE)
virtual void UpdateStyleSize (const char *family)
virtual void FontSelected (char *font)
virtual void AlignSelected (Int_t a)
virtual void ColorSelected (Pixel_t c)

Protected Member Functions

Bool_t Build (char **fontList, Int_t cnt)
void GetFontName ()
virtual void CloseWindow ()
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
Bool_t Build (char **fontList, Int_t cnt)
void GetFontName ()
virtual void CloseWindow ()
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)

Protected Attributes

TGListBoxfFontNames
TGListBoxfFontSizes
TGListBoxfFontStyles
TGComboBoxfTextAligns
TGLabelfSample
TGColorSelectfColorSelect
TString fName
TString fLName
FontProp_tfFontProp
Bool_t fItalic
Bool_t fBold
Int_t fSize
Int_t fTextAlign
Pixel_t fTextColor
Pixel_t fInitColor
Int_t fInitAlign
TGFontfInitFont
TString fSampleText
TGGCfSampleTextGC
TGFontfLabelFont
Bool_t fHitOK
Int_t fNumberOfFonts
Bool_t fWaitFor
TGListBoxfFontNames
TGListBoxfFontSizes
TGListBoxfFontStyles
TGComboBoxfTextAligns
TGLabelfSample
TGColorSelectfColorSelect
FontProp_tfFontProp
TGFontfInitFont
TGGCfSampleTextGC
TGFontfLabelFont

Classes

struct  FontProp_t

Detailed Description

Definition at line 38 of file TGFontDialog.h.


Constructor & Destructor Documentation

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]


Member Function Documentation

Bool_t TGFontDialog::Build ( char **  fontList,
Int_t  cnt 
) [protected]

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().

Bool_t TGFontDialog::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [protected, virtual]

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().

void TGFontDialog::EnableAlign ( Bool_t  on = kTRUE  )  [virtual]

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().

Bool_t TGFontDialog::Build ( char **  fontList,
Int_t  cnt 
) [protected]

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::EnableAlign ( Bool_t  on = kTRUE  )  [virtual]

virtual void TGFontDialog::UpdateStyleSize ( const char *  family  )  [virtual]

virtual void TGFontDialog::FontSelected ( char *  font  )  [inline, virtual]

Definition at line 92 of file TGFontDialog.h.

References TQObject::Emit().

virtual void TGFontDialog::AlignSelected ( Int_t  a  )  [inline, virtual]

Definition at line 94 of file TGFontDialog.h.

References TQObject::Emit().

virtual void TGFontDialog::ColorSelected ( Pixel_t  c  )  [inline, virtual]

Definition at line 96 of file TGFontDialog.h.

References TQObject::Emit().


Member Data Documentation

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]

Definition at line 56 of file TGFontDialog.h.

Referenced by GetFontName(), and SetColor().

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]

Definition at line 58 of file TGFontDialog.h.

Referenced by GetFontName().

FontProp_t* TGFontDialog::fFontProp [protected]

Definition at line 59 of file TGFontDialog.h.

Referenced by CloseWindow(), and ProcessMessage().

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]

Definition at line 65 of file TGFontDialog.h.

Referenced by CloseWindow(), and SetColor().

Int_t TGFontDialog::fInitAlign [protected]

Definition at line 66 of file TGFontDialog.h.

Referenced by CloseWindow(), and SetAlign().

TGFont* TGFontDialog::fInitFont [protected]

Definition at line 67 of file TGFontDialog.h.

Referenced by CloseWindow(), and SetFont().

TString TGFontDialog::fSampleText [protected]

Definition at line 68 of file TGFontDialog.h.

TGGC* TGFontDialog::fSampleTextGC [protected]

Definition at line 69 of file TGFontDialog.h.

Referenced by ~TGFontDialog().

TGFont* TGFontDialog::fLabelFont [protected]

Definition at line 70 of file TGFontDialog.h.

Referenced by GetFontName(), and SetFont().

Bool_t TGFontDialog::fHitOK [protected]

Definition at line 71 of file TGFontDialog.h.

Referenced by CloseWindow(), and ProcessMessage().

Int_t TGFontDialog::fNumberOfFonts [protected]

Definition at line 72 of file TGFontDialog.h.

Referenced by Build().

Bool_t TGFontDialog::fWaitFor [protected]

Definition at line 73 of file TGFontDialog.h.

Referenced by CloseWindow().

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.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:39:16 2011 for ROOT_528-00b_version by  doxygen 1.5.1