library: libGed #include "TAttTextEditor.h"

# TAttTextEditor

class description - source file - inheritance tree (.ps)

## class TAttTextEditor : public TGedFrame

| Inheritance Chart:

`TObject`

<-

`TGObject`

<-

`TGWindow`

`TQObject`

<-

`TGFrame`

<-

`TGCompositeFrame`

`TGWidget`

<-

`TGedFrame`

<-

`TAttTextEditor`

        protected:

          static TGComboBox* BuildFontSizeComboBox(TGFrame* parent, Int_t id)
          static TGComboBox* BuildTextAlignComboBox(TGFrame* parent, Int_t id)

        public:

                          TAttTextEditor(const TGWindow* p, Int_t id, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground())
                          TAttTextEditor(const TAttTextEditor&)
                  virtual ~TAttTextEditor()
           static TClass* Class()
          virtual TClass* IsA() const
           virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
             virtual void SetModel(TVirtualPad* pad, TObject* obj, Int_t event)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

                    TAttText* fAttText      text attribute object
          TGFontTypeComboBox* fTypeCombo    font style combo box
                  TGComboBox* fSizeCombo    font size combo box
                  TGComboBox* fAlignCombo   font aligh combo box
               TGColorSelect* fColorSelect  color selection widget

## Class Description

      TAttTextEditor

      Implements GUI for editing text attributes.
              color, font, font size and alignment

/* */

TAttTextEditor(const TGWindow *p, Int_t id, Int_t width, Int_t height, UInt_t options, Pixel_t back) : TGedFrame(p, id, width, height, options | kVerticalFrame, back)

     Constructor of text attributes GUI.

~TAttTextEditor()

     Destructor of text editor.

void SetModel(TVirtualPad* pad, TObject* obj, Int_t)

     Pick up the values of used text attributes.

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)

     Process message.

TGComboBox* BuildFontSizeComboBox(TGFrame* parent, Int_t id)

     Create text size combo box.

TGComboBox* BuildTextAlignComboBox(TGFrame* parent, Int_t id)

     Create text align combo box.

### Inline Functions

                   TClass* Class()
                   TClass* IsA() const
                      void ShowMembers(TMemberInspector& insp, char* parent)
                      void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
            TAttTextEditor TAttTextEditor(const TAttTextEditor&)

Author: Ilka Antcheva 11/05/04
Last update: root/ged:$Name: $:$Id: TAttTextEditor.cxx,v 1.5 2004/07/05 06:42:05 brun Exp $
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *