ROOT logo
// @(#)root/eve:$Id: TEveTextEditor.h 27157 2009-01-15 14:05:12Z brun $
// Authors: Alja & Matevz Tadel 2008

/*************************************************************************
 * Copyright (C) 1995-2007, 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_TEveTextEditor
#define ROOT_TEveTextEditor

#include "TGedFrame.h"

class TGComboBox;
class TGTextEntry;
class TGCheckButton;
class TEveGValuator;

class TEveText;

class TEveTextEditor : public TGedFrame
{
private:
   TEveTextEditor(const TEveTextEditor&);            // Not implemented
   TEveTextEditor& operator=(const TEveTextEditor&); // Not implemented

   TGComboBox* MakeLabeledCombo(const char* name);

protected:
   TEveText            *fM;     // Model object.

   TGTextEntry         *fText;
   TGComboBox          *fSize;
   TGComboBox          *fFile;
   TGComboBox          *fMode;
   TEveGValuator       *fExtrude;

   TGCheckButton       *fLighting;
   TGCheckButton       *fAutoLighting;

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

   virtual void SetModel(TObject* obj);

   void DoText(const char*);

   void DoFontSize();
   void DoFontFile();
   void DoFontMode();

   void DoLighting();
   void DoAutoLighting();
   void DoExtrude();

   ClassDef(TEveTextEditor, 0); // GUI editor for TEveText.
};

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