00001 // @(#)root/ged:$Id: TAttTextEditor.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Ilka Antcheva 11/05/04 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TGedTextEditor 00013 #define ROOT_TGedTextEditor 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TAttTextEditor // 00018 // // 00019 // Implements GUI for editing text attributes. // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TGedFrame 00024 #include "TGedFrame.h" 00025 #endif 00026 00027 class TGComboBox; 00028 class TGFontTypeComboBox; 00029 class TGColorSelect; 00030 class TAttText; 00031 00032 class TAttTextEditor : public TGedFrame { 00033 00034 protected: 00035 TAttText *fAttText; // text attribute object 00036 TGFontTypeComboBox *fTypeCombo; // font style combo box 00037 TGComboBox *fSizeCombo; // font size combo box 00038 TGComboBox *fAlignCombo; // font aligh combo box 00039 TGColorSelect *fColorSelect; // color selection widget 00040 00041 static TGComboBox *BuildFontSizeComboBox(TGFrame *parent, Int_t id); 00042 static TGComboBox *BuildTextAlignComboBox(TGFrame *parent, Int_t id); 00043 00044 public: 00045 TAttTextEditor(const TGWindow *p = 0, 00046 Int_t width = 140, Int_t height = 30, 00047 UInt_t options = kChildFrame, 00048 Pixel_t back = GetDefaultFrameBackground()); 00049 virtual ~TAttTextEditor(); 00050 00051 virtual void SetModel(TObject* obj); 00052 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2); 00053 00054 ClassDef(TAttTextEditor,0) //GUI for editing text attributes 00055 }; 00056 00057 #endif