ROOT logo
// @(#)root/ged:$Id: TAttTextEditor.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Ilka  Antcheva 11/05/04

/*************************************************************************
 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGedTextEditor
#define ROOT_TGedTextEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TAttTextEditor                                                      //
//                                                                      //
//  Implements GUI for editing text attributes.                         //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TGComboBox;
class TGFontTypeComboBox;
class TGColorSelect;
class TAttText;
 
class TAttTextEditor : public TGedFrame {

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

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

public:
   TAttTextEditor(const TGWindow *p = 0,
                  Int_t width = 140, Int_t height = 30,
                  UInt_t options = kChildFrame,
                  Pixel_t back = GetDefaultFrameBackground());
   virtual ~TAttTextEditor();

   virtual void   SetModel(TObject* obj);
   virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);

   ClassDef(TAttTextEditor,0)  //GUI for editing text attributes
};

#endif
 TAttTextEditor.h:1
 TAttTextEditor.h:2
 TAttTextEditor.h:3
 TAttTextEditor.h:4
 TAttTextEditor.h:5
 TAttTextEditor.h:6
 TAttTextEditor.h:7
 TAttTextEditor.h:8
 TAttTextEditor.h:9
 TAttTextEditor.h:10
 TAttTextEditor.h:11
 TAttTextEditor.h:12
 TAttTextEditor.h:13
 TAttTextEditor.h:14
 TAttTextEditor.h:15
 TAttTextEditor.h:16
 TAttTextEditor.h:17
 TAttTextEditor.h:18
 TAttTextEditor.h:19
 TAttTextEditor.h:20
 TAttTextEditor.h:21
 TAttTextEditor.h:22
 TAttTextEditor.h:23
 TAttTextEditor.h:24
 TAttTextEditor.h:25
 TAttTextEditor.h:26
 TAttTextEditor.h:27
 TAttTextEditor.h:28
 TAttTextEditor.h:29
 TAttTextEditor.h:30
 TAttTextEditor.h:31
 TAttTextEditor.h:32
 TAttTextEditor.h:33
 TAttTextEditor.h:34
 TAttTextEditor.h:35
 TAttTextEditor.h:36
 TAttTextEditor.h:37
 TAttTextEditor.h:38
 TAttTextEditor.h:39
 TAttTextEditor.h:40
 TAttTextEditor.h:41
 TAttTextEditor.h:42
 TAttTextEditor.h:43
 TAttTextEditor.h:44
 TAttTextEditor.h:45
 TAttTextEditor.h:46
 TAttTextEditor.h:47
 TAttTextEditor.h:48
 TAttTextEditor.h:49
 TAttTextEditor.h:50
 TAttTextEditor.h:51
 TAttTextEditor.h:52
 TAttTextEditor.h:53
 TAttTextEditor.h:54
 TAttTextEditor.h:55
 TAttTextEditor.h:56
 TAttTextEditor.h:57