Logo ROOT   6.08/07
Reference Guide
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 
40 
43 
44 public:
45  TEveTextEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
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
TEveText * fM
void DoExtrude()
Slot for setting an extrude depth.
int Int_t
Definition: RtypesCore.h:41
void DoText(const char *)
Slot for setting text.
TGComboBox * MakeLabeledCombo(const char *name)
Helper function. Creates TGComboBox with fixed size TGLabel.
virtual void SetModel(TObject *obj)
Set model object.
void DoLighting()
Slot for enabling/disabling GL lighting.
Composite GUI element for single value selection (supports label, number-entry and slider)...
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
void DoAutoLighting()
Slot for enabling/disabling defaults.
void DoFontMode()
Slot for setting FTGL attributes.
TEveGValuator * fExtrude
TEveTextEditor & operator=(const TEveTextEditor &)
GUI editor for TEveText.
TGCheckButton * fLighting
TEveTextEditor(const TEveTextEditor &)
unsigned int UInt_t
Definition: RtypesCore.h:42
TGComboBox * fMode
TEveElement class used for displaying FreeType GL fonts.
Definition: TEveText.h:21
Mother of all ROOT objects.
Definition: TObject.h:37
TGComboBox * fSize
virtual ~TEveTextEditor()
void DoFontFile()
Slot for setting FTGL attributes.
void DoFontSize()
Slot for setting FTGL attributes.
TGComboBox * fFile
TGCheckButton * fAutoLighting
char name[80]
Definition: TGX11.cxx:109
TGTextEntry * fText