00001 // @(#)root/eve:$Id: TEveTextEditor.h 27157 2009-01-15 14:05:12Z brun $ 00002 // Authors: Alja & Matevz Tadel 2008 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2007, 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_TEveTextEditor 00013 #define ROOT_TEveTextEditor 00014 00015 #include "TGedFrame.h" 00016 00017 class TGComboBox; 00018 class TGTextEntry; 00019 class TGCheckButton; 00020 class TEveGValuator; 00021 00022 class TEveText; 00023 00024 class TEveTextEditor : public TGedFrame 00025 { 00026 private: 00027 TEveTextEditor(const TEveTextEditor&); // Not implemented 00028 TEveTextEditor& operator=(const TEveTextEditor&); // Not implemented 00029 00030 TGComboBox* MakeLabeledCombo(const char* name); 00031 00032 protected: 00033 TEveText *fM; // Model object. 00034 00035 TGTextEntry *fText; 00036 TGComboBox *fSize; 00037 TGComboBox *fFile; 00038 TGComboBox *fMode; 00039 TEveGValuator *fExtrude; 00040 00041 TGCheckButton *fLighting; 00042 TGCheckButton *fAutoLighting; 00043 00044 public: 00045 TEveTextEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, 00046 UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground()); 00047 virtual ~TEveTextEditor() {} 00048 00049 virtual void SetModel(TObject* obj); 00050 00051 void DoText(const char*); 00052 00053 void DoFontSize(); 00054 void DoFontFile(); 00055 void DoFontMode(); 00056 00057 void DoLighting(); 00058 void DoAutoLighting(); 00059 void DoExtrude(); 00060 00061 ClassDef(TEveTextEditor, 0); // GUI editor for TEveText. 00062 }; 00063 00064 #endif