// Author: Olivier Couet 22/12/2013

/*************************************************************************
 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/


//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TTextEditor                                                         //
//                                                                      //
//  Editor for changing TText's and TLatex's attributes.                //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TTextEditor
#define ROOT_TTextEditor
#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TText;
class TGTextEntry;
class TGNumberEntry;

class TTextEditor : public TGedFrame {

private:
   TText *fEditedText;

protected:
   TGTextEntry   *fText;  // Text
   TGNumberEntry *fAngle; // Text's angle
   TGNumberEntry *fSize;  // Text's angle
   TGNumberEntry *fXpos;  // Text's X position
   TGNumberEntry *fYpos;  // Text's Y position

   void ConnectSignals2Slots();

public:
   TTextEditor(const TGWindow *p = 0,
                  Int_t width = 140, Int_t height = 30,
                  UInt_t options = kChildFrame,
                  Pixel_t back = GetDefaultFrameBackground());
   ~TTextEditor();

   void SetModel(TObject *);

   void DoAngle();
   void DoSize();
   void DoText(const char*);
   void DoXpos();
   void DoYpos();

   ClassDef(TTextEditor,0)        // text editor
};

#endif // ROOT_TTextEditor

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