Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TEveTextEditor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/eve:$Id$
0002 // Authors: Alja & Matevz Tadel 2008
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TEveTextEditor
0013 #define ROOT_TEveTextEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TGComboBox;
0018 class TGTextEntry;
0019 class TGCheckButton;
0020 class TEveGValuator;
0021 
0022 class TEveText;
0023 
0024 class TEveTextEditor : public TGedFrame
0025 {
0026 private:
0027    TEveTextEditor(const TEveTextEditor&);            // Not implemented
0028    TEveTextEditor& operator=(const TEveTextEditor&); // Not implemented
0029 
0030    TGComboBox* MakeLabeledCombo(const char* name);
0031 
0032 protected:
0033    TEveText            *fM;     // Model object.
0034 
0035    TGTextEntry         *fText;
0036    TGComboBox          *fSize;
0037    TGComboBox          *fFile;
0038    TGComboBox          *fMode;
0039    TEveGValuator       *fExtrude;
0040 
0041    TGCheckButton       *fLighting;
0042    TGCheckButton       *fAutoLighting;
0043 
0044 public:
0045    TEveTextEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30,
0046                   UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0047    ~TEveTextEditor() override {}
0048 
0049    void SetModel(TObject* obj) override;
0050 
0051    void DoText(const char*);
0052 
0053    void DoFontSize();
0054    void DoFontFile();
0055    void DoFontMode();
0056 
0057    void DoLighting();
0058    void DoAutoLighting();
0059    void DoExtrude();
0060 
0061    ClassDefOverride(TEveTextEditor, 0); // GUI editor for TEveText.
0062 };
0063 
0064 #endif