Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveTextEditor.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Alja & Matevz Tadel 2008
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEveTextEditor
13 #define ROOT_TEveTextEditor
14 
15 #include "TGedFrame.h"
16 
17 class TGComboBox;
18 class TGTextEntry;
19 class TGCheckButton;
20 class TEveGValuator;
21 
22 class TEveText;
23 
24 class TEveTextEditor : public TGedFrame
25 {
26 private:
27  TEveTextEditor(const TEveTextEditor&); // Not implemented
28  TEveTextEditor& operator=(const TEveTextEditor&); // Not implemented
29 
30  TGComboBox* MakeLabeledCombo(const char* name);
31 
32 protected:
33  TEveText *fM; // Model object.
34 
35  TGTextEntry *fText;
36  TGComboBox *fSize;
37  TGComboBox *fFile;
38  TGComboBox *fMode;
39  TEveGValuator *fExtrude;
40 
41  TGCheckButton *fLighting;
42  TGCheckButton *fAutoLighting;
43 
44 public:
45  TEveTextEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
46  UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
47  virtual ~TEveTextEditor() {}
48 
49  virtual void SetModel(TObject* obj);
50 
51  void DoText(const char*);
52 
53  void DoFontSize();
54  void DoFontFile();
55  void DoFontMode();
56 
57  void DoLighting();
58  void DoAutoLighting();
59  void DoExtrude();
60 
61  ClassDef(TEveTextEditor, 0); // GUI editor for TEveText.
62 };
63 
64 #endif